drfpasswordless: passwordless 2fa style auth for django rest framework
https://github.com/aaronn/django-rest-framework-passwordless
/r/django
https://redd.it/iaol2r
https://github.com/aaronn/django-rest-framework-passwordless
/r/django
https://redd.it/iaol2r
GitHub
GitHub - aaronn/django-rest-framework-passwordless: Passwordless Auth for Django REST Framework
Passwordless Auth for Django REST Framework. Contribute to aaronn/django-rest-framework-passwordless development by creating an account on GitHub.
[Discussion] PyTorch favors Intel against AMD's rising?
PyTorch packages (both pypi and conda packages) require the Intel MKL library. As you know, Intel MKL uses a slow code path on non-Intel CPUs such as AMD CPUs. There was the MKL\_DEBUG\_CPU\_TYPE=5 workaround to make Intel MKL use a faster code path on AMD CPUs, but it has been disabled since Intel MKL version 2020.1.
PyTorch relies on Intel MKL for BLAS and other features such as FFT computation. Because pypi and conda packages require Intel MKL, the only solution is to build PyTorch from source with a different BLAS library. However, it looks like this isn't really pain-free (e.g. see [https://github.com/pytorch/pytorch/issues/32407](https://github.com/pytorch/pytorch/issues/32407)).
Moreover, if you look at issues like [https://github.com/pytorch/pytorch/issues/37746](https://github.com/pytorch/pytorch/issues/37746) or [https://github.com/pytorch/pytorch/issues/38412](https://github.com/pytorch/pytorch/issues/38412), it seems like they basically don't care about this problem.
Since PyTorch packages are slow by default on AMD CPUs and building PyTorch from source with a different BLAS library is also problematic, it seems like PyTorch is effectively protecting Intel CPUs from the "ryzing" of AMD's CPUs.
What do you think about this?
/r/MachineLearning
https://redd.it/iap6yo
PyTorch packages (both pypi and conda packages) require the Intel MKL library. As you know, Intel MKL uses a slow code path on non-Intel CPUs such as AMD CPUs. There was the MKL\_DEBUG\_CPU\_TYPE=5 workaround to make Intel MKL use a faster code path on AMD CPUs, but it has been disabled since Intel MKL version 2020.1.
PyTorch relies on Intel MKL for BLAS and other features such as FFT computation. Because pypi and conda packages require Intel MKL, the only solution is to build PyTorch from source with a different BLAS library. However, it looks like this isn't really pain-free (e.g. see [https://github.com/pytorch/pytorch/issues/32407](https://github.com/pytorch/pytorch/issues/32407)).
Moreover, if you look at issues like [https://github.com/pytorch/pytorch/issues/37746](https://github.com/pytorch/pytorch/issues/37746) or [https://github.com/pytorch/pytorch/issues/38412](https://github.com/pytorch/pytorch/issues/38412), it seems like they basically don't care about this problem.
Since PyTorch packages are slow by default on AMD CPUs and building PyTorch from source with a different BLAS library is also problematic, it seems like PyTorch is effectively protecting Intel CPUs from the "ryzing" of AMD's CPUs.
What do you think about this?
/r/MachineLearning
https://redd.it/iap6yo
GitHub
Build without MKL is not possible when MKL is installed · Issue #32407 · pytorch/pytorch
Hello, I was planning to make some benchmark with different BLAS implementation on CPU so I built several Pytorch package with BLAS=Eigen/OpenBLAS/ATLAS/MKL. Sadly something unexpected occurred: Al...
How do you choose the thickness of your flasks?
Like, if you have acids, a different thickness, and so on... or do these distinctions even exist?
/r/flask
https://redd.it/iapw6n
Like, if you have acids, a different thickness, and so on... or do these distinctions even exist?
/r/flask
https://redd.it/iapw6n
reddit
How do you choose the thickness of your flasks?
Like, if you have acids, a different thickness, and so on... or do these distinctions even exist?
I finally finished and deployed my own URL shortener
It's been a long learning journey (for me at least), and I am so proud to present to you all this project. It is a custom URL shortener with no ads and not even having to wait before being redirected. Hope you all can use it rather than using the ones that show a 5 sec ad every time. I am hoping to keep the project deployed as long as I can, so please consider donating.
Explanation and everything else: [https://github.com/xemeds/tiny0](https://github.com/xemeds/tiny0)
Deployed version: [https://tiny0.cc/](https://tiny0.cc/)
​
EDIT: I apologize for it being slow to those in the continent of America, the server is hosted it Frankfurt, Germany.
/r/Python
https://redd.it/iav7gk
It's been a long learning journey (for me at least), and I am so proud to present to you all this project. It is a custom URL shortener with no ads and not even having to wait before being redirected. Hope you all can use it rather than using the ones that show a 5 sec ad every time. I am hoping to keep the project deployed as long as I can, so please consider donating.
Explanation and everything else: [https://github.com/xemeds/tiny0](https://github.com/xemeds/tiny0)
Deployed version: [https://tiny0.cc/](https://tiny0.cc/)
​
EDIT: I apologize for it being slow to those in the continent of America, the server is hosted it Frankfurt, Germany.
/r/Python
https://redd.it/iav7gk
GitHub
GitHub - xemeds/tiny0: Custom URL shortener in Flask.
Custom URL shortener in Flask. Contribute to xemeds/tiny0 development by creating an account on GitHub.
Autosave option in Jupyter notebook
How do I customize auto save option in jupyter notebook?Except writing every time %autosave 10
/r/JupyterNotebooks
https://redd.it/iawrcu
How do I customize auto save option in jupyter notebook?Except writing every time %autosave 10
/r/JupyterNotebooks
https://redd.it/iawrcu
reddit
Autosave option in Jupyter notebook
How do I customize auto save option in jupyter notebook?Except writing every time %autosave 10
This media is not supported in your browser
VIEW IN TELEGRAM
I made a web app using Flask that generates a randomized collage from user-submitted images. https://stitchit.app/
/r/flask
https://redd.it/iaszcp
/r/flask
https://redd.it/iaszcp
Complete 2 Hours Training On Django REST Framework
https://www.youtube.com/watch?v=B38aDwUpcFc
/r/django
https://redd.it/iaw09l
https://www.youtube.com/watch?v=B38aDwUpcFc
/r/django
https://redd.it/iaw09l
YouTube
Django REST Framework Full Course For Beginners | Build REST API With Django
19 Hours Full Stack Course with Django REST Framework & React in Udemy
https://www.udemy.com/course/django-django-rest-framework-build-rest-api-in-python/?couponCode=37B02B3E6C35B3CB227B
This is a Django REST Framework Full Course For Beginners, in this…
https://www.udemy.com/course/django-django-rest-framework-build-rest-api-in-python/?couponCode=37B02B3E6C35B3CB227B
This is a Django REST Framework Full Course For Beginners, in this…
Load CSVs or store in DB?
Hi all! I’m working on a small saas using flask with python. I’m importing a couple of CSVs that I use as bases to merge with user uploaded files. The files are small, around 50 to 10,000 observations in each.
My question: is it fine to leave them as CSVs that get loaded directly in the app as dataframes, or should I store them in a DB? Is there an advantage to one decision (like memory?)? Is there a best practice like for file sizes? (I.e. if my flat CSV files are ~1000 rows and not changing).
Thanks in advance— any input is appreciated!
/r/flask
https://redd.it/ib2siv
Hi all! I’m working on a small saas using flask with python. I’m importing a couple of CSVs that I use as bases to merge with user uploaded files. The files are small, around 50 to 10,000 observations in each.
My question: is it fine to leave them as CSVs that get loaded directly in the app as dataframes, or should I store them in a DB? Is there an advantage to one decision (like memory?)? Is there a best practice like for file sizes? (I.e. if my flat CSV files are ~1000 rows and not changing).
Thanks in advance— any input is appreciated!
/r/flask
https://redd.it/ib2siv
reddit
Load CSVs or store in DB?
Hi all! I’m working on a small saas using flask with python. I’m importing a couple of CSVs that I use as bases to merge with user uploaded files....
Just released Starshot, a space rogue-like made completely in pygame!
I've just finished development on my game, and developed it completely in pygame! I found pygame easy to get started with but harder to develop more advanced features on, and would love to answer any questions people have about it. Some of the programming challenges included integration into steam (achievements, overlay etc.), developing enemy AI, randomising the level layouts/enemies and testing.
Link to a playthrough of the game:
[https://www.youtube.com/watch?v=WYydSe9keVk](https://www.youtube.com/watch?v=WYydSe9keVk)
Game on steam store:
[https://store.steampowered.com/app/1364570/Starshot/](https://store.steampowered.com/app/1364570/Starshot/)
/r/Python
https://redd.it/ib34wy
I've just finished development on my game, and developed it completely in pygame! I found pygame easy to get started with but harder to develop more advanced features on, and would love to answer any questions people have about it. Some of the programming challenges included integration into steam (achievements, overlay etc.), developing enemy AI, randomising the level layouts/enemies and testing.
Link to a playthrough of the game:
[https://www.youtube.com/watch?v=WYydSe9keVk](https://www.youtube.com/watch?v=WYydSe9keVk)
Game on steam store:
[https://store.steampowered.com/app/1364570/Starshot/](https://store.steampowered.com/app/1364570/Starshot/)
/r/Python
https://redd.it/ib34wy
YouTube
Starshot Playthrough
Play through of starshot using the ship Swallow. Try to fight your way through the stardust production facility and collect as much as you can, or die trying!
https://store.steampowered.com/app/1364570/Starshot/
https://store.steampowered.com/app/1364570/Starshot/
Elastic Beanstalk with Celery and SQS
I am trying to set up Celery and SQS on Elastic Beanstalk Linux2 Python 3.7.
I got some error when I was deploying my app to EB. The error was "ImportError: The curl client requires the pycurl library.". I already included pycurl==[7.43.0.5](https://7.43.0.5) in my requirements.txt. I also have "yum:libcurl-devel: \[\]" in my config file. I have tried for many hours and still can't figure out how to fix it. Did anyone successfully configure SQS and Celery on EB Linux2 Python 3.7?
******************************celery-worker.log*************************
[2020-08-16 15:35:00,828: INFO/MainProcess] Connected to sqs://xxxxxxxxxxxxxxxx:**@localhost//
[2020-08-16 15:35:00,908: INFO/MainProcess] celery@ip-xxx-xx-xx-xx.us-west-2.compute.internal ready.
[2020-08-16 15:35:00,911: CRITICAL/MainProcess] Unrecoverable error: ImportError('The curl client requires the pycurl library.')
Traceback (most recent call last):
File "/var/app/venv/staging-LQM1lest/lib/python3.7/site-packages/kombu/asynchronous/http/__init__.py", line 20, in get_client
return hub._current_http_client
AttributeError: 'Hub' object has no attribute '_current_http_client'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/app/venv/staging-LQM1lest/lib/python3.7/site-packages/celery/worker/worker.py", line 208,
/r/django
https://redd.it/ib2bqo
I am trying to set up Celery and SQS on Elastic Beanstalk Linux2 Python 3.7.
I got some error when I was deploying my app to EB. The error was "ImportError: The curl client requires the pycurl library.". I already included pycurl==[7.43.0.5](https://7.43.0.5) in my requirements.txt. I also have "yum:libcurl-devel: \[\]" in my config file. I have tried for many hours and still can't figure out how to fix it. Did anyone successfully configure SQS and Celery on EB Linux2 Python 3.7?
******************************celery-worker.log*************************
[2020-08-16 15:35:00,828: INFO/MainProcess] Connected to sqs://xxxxxxxxxxxxxxxx:**@localhost//
[2020-08-16 15:35:00,908: INFO/MainProcess] celery@ip-xxx-xx-xx-xx.us-west-2.compute.internal ready.
[2020-08-16 15:35:00,911: CRITICAL/MainProcess] Unrecoverable error: ImportError('The curl client requires the pycurl library.')
Traceback (most recent call last):
File "/var/app/venv/staging-LQM1lest/lib/python3.7/site-packages/kombu/asynchronous/http/__init__.py", line 20, in get_client
return hub._current_http_client
AttributeError: 'Hub' object has no attribute '_current_http_client'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/app/venv/staging-LQM1lest/lib/python3.7/site-packages/celery/worker/worker.py", line 208,
/r/django
https://redd.it/ib2bqo
reddit
Elastic Beanstalk with Celery and SQS
I am trying to set up Celery and SQS on Elastic Beanstalk Linux2 Python 3.7. I got some error when I was deploying my app to EB. The error was...
SEARCH and ORGANIZE your Outlook mail with Python
In this video, I demonstrate how to search and organize your mail, with both simple single folder and recursive multi-folder searches. #Outlook #Python #Automation
[https://youtu.be/iP1Ko9sFkzs](https://youtu.be/iP1Ko9sFkzs)
/r/Python
https://redd.it/ib3jgi
In this video, I demonstrate how to search and organize your mail, with both simple single folder and recursive multi-folder searches. #Outlook #Python #Automation
[https://youtu.be/iP1Ko9sFkzs](https://youtu.be/iP1Ko9sFkzs)
/r/Python
https://redd.it/ib3jgi
YouTube
How to SEARCH and ORGANIZE your mailbox with Python
If you're interested in Python Outlook Automation, in this video, I’m going to show you how to use Python to your search and organize your mail in Outlook. Also, I’m going to show you a method for recursively searching and collecting every message in your…
Matplotlib Scatterplots, but with Emojis as Markers
I wrote a function to create scatterplots using emojis as markers to support some analysis & visualization I'm doing for a (very silly) side project. After a good bit of research (I was pretty shocked this didn't exist already), I built this based on [this article](https://towardsdatascience.com/how-i-got-matplotlib-to-plot-apple-color-emojis-c983767b39e0), but adapted to produce a scatterplot instead of a bar chart.
#function to create a scatterplot with emojis as markers
#based on https://towardsdatascience.com/how-i-got-matplotlib-to-plot-apple-color-emojis-c983767b39e0
#follow instructions above to install & build mplcairo
#Set the backend to use mplcairo
import matplotlib, mplcairo
print('Default backend: ' + matplotlib.get_backend())
matplotlib.use("module://mplcairo.macosx")
print('Backend is now ' + matplotlib.get_backend())
# IMPORTANT: Import these libraries only AFTER setting the backend
import matplotlib.pyplot as plt, numpy as np
from matplotlib.font_manager import FontProperties
# Load Apple Color Emoji font
prop = FontProperties(fname='/System/Library/Fonts/Apple Color Emoji.ttc')
# Load Apple Color Emoji font
prop =
/r/Python
https://redd.it/iazdqd
I wrote a function to create scatterplots using emojis as markers to support some analysis & visualization I'm doing for a (very silly) side project. After a good bit of research (I was pretty shocked this didn't exist already), I built this based on [this article](https://towardsdatascience.com/how-i-got-matplotlib-to-plot-apple-color-emojis-c983767b39e0), but adapted to produce a scatterplot instead of a bar chart.
#function to create a scatterplot with emojis as markers
#based on https://towardsdatascience.com/how-i-got-matplotlib-to-plot-apple-color-emojis-c983767b39e0
#follow instructions above to install & build mplcairo
#Set the backend to use mplcairo
import matplotlib, mplcairo
print('Default backend: ' + matplotlib.get_backend())
matplotlib.use("module://mplcairo.macosx")
print('Backend is now ' + matplotlib.get_backend())
# IMPORTANT: Import these libraries only AFTER setting the backend
import matplotlib.pyplot as plt, numpy as np
from matplotlib.font_manager import FontProperties
# Load Apple Color Emoji font
prop = FontProperties(fname='/System/Library/Fonts/Apple Color Emoji.ttc')
# Load Apple Color Emoji font
prop =
/r/Python
https://redd.it/iazdqd
Medium
How I got Matplotlib to plot Apple Color Emojis
And why the library currently cannot
Share your experience and journey of becoming python/django developer.
So, I am new in python and djang and I am so confused where and how to learn django.
Reading your experience and journey would give me a roadmap.
If you are beginner or learning, feel free to dm me. Maybe we can help each other in learning.
/r/djangolearning
https://redd.it/ib7eoc
So, I am new in python and djang and I am so confused where and how to learn django.
Reading your experience and journey would give me a roadmap.
If you are beginner or learning, feel free to dm me. Maybe we can help each other in learning.
/r/djangolearning
https://redd.it/ib7eoc
reddit
Share your experience and journey of becoming python/django developer.
So, I am new in python and djang and I am so confused where and how to learn django. Reading your experience and journey would give me a...
[D] Simple Questions Thread August 16, 2020
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the title.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/ib0et8
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!
Thread will stay alive until next one so keep posting after the date in the title.
Thanks to everyone for answering questions in the previous thread!
/r/MachineLearning
https://redd.it/ib0et8
reddit
[D] Simple Questions Thread August 16, 2020
Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here...
Lucy D’Agostino McGowan - JupyterCon 2020 keynote speaker
https://blog.jupyter.org/lucy-dagostino-mcgowan-13adbdedccf0
/r/IPython
https://redd.it/ib76hi
https://blog.jupyter.org/lucy-dagostino-mcgowan-13adbdedccf0
/r/IPython
https://redd.it/ib76hi
Medium
Lucy D’Agostino McGowan
JupyterCon 2020 keynote speaker announcement
Hello r/flask check out this cool book recommendation system using Flask
Arkvl is a web-app we that gives you personalized recommendations based on books that you like!
Check out https://arkvl.space
It was made using Flask backend
Here's a glimpse into the app - https://imgur.com/a/DEF49Gq
/r/flask
https://redd.it/ibbnvj
Arkvl is a web-app we that gives you personalized recommendations based on books that you like!
Check out https://arkvl.space
It was made using Flask backend
Here's a glimpse into the app - https://imgur.com/a/DEF49Gq
/r/flask
https://redd.it/ibbnvj
Imgur
arkvl.space
Post with 5 views. arkvl.space
Passing variable from form into url
I have a flask app which provides certain information based on a public key. It also allows editing of the information for those with the matching private key.
@main.route('/thing/<unique_key>/')
@main.route('/thing/<unique_key>/secret/<secret_key>')
def view_thing(unique_key, secret_key = None):
if secret_key == None:
# render public information page through jinja
if secret_key == the_right_secret_key_I_pull_from_the_database:
# render private information page allowing editing through jinja
These routes all work fine and as expected.
I would like to include a form on the public information page which allows users with a private key to enter it and redirect to the private page (eg "Are you the owner of this information? Enter your private key and click submit to edit")
I know how I can pass the contents of a form to a flask POST method, but I don't want to do that here. How do I get it to instead take the input of the text box and redirect to the
/r/flask
https://redd.it/ibb9kd
I have a flask app which provides certain information based on a public key. It also allows editing of the information for those with the matching private key.
@main.route('/thing/<unique_key>/')
@main.route('/thing/<unique_key>/secret/<secret_key>')
def view_thing(unique_key, secret_key = None):
if secret_key == None:
# render public information page through jinja
if secret_key == the_right_secret_key_I_pull_from_the_database:
# render private information page allowing editing through jinja
These routes all work fine and as expected.
I would like to include a form on the public information page which allows users with a private key to enter it and redirect to the private page (eg "Are you the owner of this information? Enter your private key and click submit to edit")
I know how I can pass the contents of a form to a flask POST method, but I don't want to do that here. How do I get it to instead take the input of the text box and redirect to the
/r/flask
https://redd.it/ibb9kd
reddit
Passing variable from form into url
I have a flask app which provides certain information based on a public key. It also allows editing of the information for those with the matching...
I play Super Mario with my Face
I just wanna know how openCV works on python and decided to make a simple project out of it. I play Super Mario with my face. Please check them out here:
[I play Super Mario with my Face (YouTube link)](https://www.youtube.com/watch?v=mHC6GhL4hNs)
​
Please let me know what you think about the video and what can I improve with it for my next project. Thank you so much!
/r/Python
https://redd.it/ibcma1
I just wanna know how openCV works on python and decided to make a simple project out of it. I play Super Mario with my face. Please check them out here:
[I play Super Mario with my Face (YouTube link)](https://www.youtube.com/watch?v=mHC6GhL4hNs)
​
Please let me know what you think about the video and what can I improve with it for my next project. Thank you so much!
/r/Python
https://redd.it/ibcma1
YouTube
I play Super Mario Bros with my face
i should've picked other part of my body than face
but hey it weeerrrks.
but hey it weeerrrks.
Embracing JAMStack with Python: Generating a Static Website with Flask and Deploying to Netlify
https://github.com/DeadWisdom/flask-static-tutorial
/r/flask
https://redd.it/ibjvaa
https://github.com/DeadWisdom/flask-static-tutorial
/r/flask
https://redd.it/ibjvaa
GitHub
GitHub - DeadWisdom/flask-static-tutorial: Embracing JAMStack with Python: Generating a Static Website with Flask and Deploying…
Embracing JAMStack with Python: Generating a Static Website with Flask and Deploying to Netlify - GitHub - DeadWisdom/flask-static-tutorial: Embracing JAMStack with Python: Generating a Static Webs...
[Beginner] Request for Django workflow suggestions
Hi all,
I'm currently learning Django and programming in general. I've managed to build a website, deploy it to a linux server, and use GCP for my static files. However, I'm not satisfied with my workflow.
I pushed to PROD using scp via the CLI. Then I continued to develop directly in PROD. This feels like a very bad way to continue.
How do development and deployment using GIT work in the context of webdev and Django? Develop locally, push to GIT and clone after logging on the server via ssh? Or do people use Docker to deploy to linux servers?
I would appreciate your advice and tips on how I can learn best-practices from the start. Thanks.
/r/django
https://redd.it/ibk317
Hi all,
I'm currently learning Django and programming in general. I've managed to build a website, deploy it to a linux server, and use GCP for my static files. However, I'm not satisfied with my workflow.
I pushed to PROD using scp via the CLI. Then I continued to develop directly in PROD. This feels like a very bad way to continue.
How do development and deployment using GIT work in the context of webdev and Django? Develop locally, push to GIT and clone after logging on the server via ssh? Or do people use Docker to deploy to linux servers?
I would appreciate your advice and tips on how I can learn best-practices from the start. Thanks.
/r/django
https://redd.it/ibk317
reddit
[Beginner] Request for Django workflow suggestions
Hi all, I'm currently learning Django and programming in general. I've managed to build a website, deploy it to a linux server, and use GCP for...