A list of tutorials for beginners
I have been working on a series of videos to show the basics of Python Programming to beginners. If you are new to the language, programming in general, or would like a quick reference to some basic concepts, this will hopefully be a good resource for you!
[Introduction](https://youtu.be/eJt-leDZqls)
Creating, Using, and Manipulating Variables
[Working with Arrays and Dictionaries](https://youtu.be/BsgfRXaVTik)
Controlling Program Flow with Loops
[Recycling Code with Functions](https://youtu.be/Dwkb2rcoT2U)
Creating Abstract Objects through Classes
[Relating Objects to One Another with Inheritance](https://youtu.be/POkIYB1vlcA)
Replacing Parent Methods by Overriding Functions
[Utilizing Static and Class Variables](https://youtu.be/u55vEYcMWko)
Creating Virtual Environments
The tutorials follow a long-term series where I build bigger projects, so the list will grow over time. I would love to hear suggestions for more videos to make!
/r/Python
https://redd.it/ktqnce
I have been working on a series of videos to show the basics of Python Programming to beginners. If you are new to the language, programming in general, or would like a quick reference to some basic concepts, this will hopefully be a good resource for you!
[Introduction](https://youtu.be/eJt-leDZqls)
Creating, Using, and Manipulating Variables
[Working with Arrays and Dictionaries](https://youtu.be/BsgfRXaVTik)
Controlling Program Flow with Loops
[Recycling Code with Functions](https://youtu.be/Dwkb2rcoT2U)
Creating Abstract Objects through Classes
[Relating Objects to One Another with Inheritance](https://youtu.be/POkIYB1vlcA)
Replacing Parent Methods by Overriding Functions
[Utilizing Static and Class Variables](https://youtu.be/u55vEYcMWko)
Creating Virtual Environments
The tutorials follow a long-term series where I build bigger projects, so the list will grow over time. I would love to hear suggestions for more videos to make!
/r/Python
https://redd.it/ktqnce
YouTube
Learn Python: Ep. 0 - Introduction
Welcome to my series for Learning Python, where I will be teaching fundamental concepts in the Python programming language. These videos will focus on one aspect of Python at a time, but your understanding of the material will be greatly improved through…
How to use Billplz secret key for FPX payment in Flask
Hi there good day, I am new to payment gateway and would like to integrate it with Flask. I am currently using Billplz as my FPX payment gateway. I do not have any examples on using Billplz with flask and hence I am stuck at here currently. They have provided a secret key with a few API references on payment methods. Can I use to call the payment gateway like this http/API/secretkey/bank. Is my understanding wrong? Appreciate if can share any guidelines on how to setup payment gateway with only secret key.
This is their website by the way. https://www.billplz.com/api#introduction
/r/flask
https://redd.it/ku9nnc
Hi there good day, I am new to payment gateway and would like to integrate it with Flask. I am currently using Billplz as my FPX payment gateway. I do not have any examples on using Billplz with flask and hence I am stuck at here currently. They have provided a secret key with a few API references on payment methods. Can I use to call the payment gateway like this http/API/secretkey/bank. Is my understanding wrong? Appreciate if can share any guidelines on how to setup payment gateway with only secret key.
This is their website by the way. https://www.billplz.com/api#introduction
/r/flask
https://redd.it/ku9nnc
reddit
How to use Billplz secret key for FPX payment in Flask
Hi there good day, I am new to payment gateway and would like to integrate it with Flask. I am currently using Billplz as my FPX payment gateway....
Web Scraping with Python for Beginner - Easiest Way
https://www.youtube.com/watch?v=98WgEhQaZvs
/r/Python
https://redd.it/ku9fb4
https://www.youtube.com/watch?v=98WgEhQaZvs
/r/Python
https://redd.it/ku9fb4
YouTube
Web Scraping With Python For Beginners - Easiest Way
Learn how to perform web scraping with python in the easiest way possible. In this tutorial, I will teach you how to scrape any web page using python and a chrome extension. The best part about this tutorial is that you would have to write very less code…
I finally did something I feel was worth while
I work in the public health sector, an area with very bad technology debt. A lot of data is still on paper, scattered throughout spreadsheets, or somewhere else and deemed to exist so it's fine we don't need to track that. It's totally fine.
Well, I work in research and evaluation and for a very large grant, I needed to connect our student records to a federal database that tracks where they are out in the field once they have started medical residency and become established as doctors.
We only had names of students, and many python headaches later I ended up with a script to write all of the results for each API call to an Excel file, except I had to enter each first and last name manually.
We were going to make a graduate student do the manual entry of it all. It probably would've taken months. But then I realized I could just make a little script to do the entries instead.
It was very stitched together, and it almost certainly could have been more elegant, but it worked and only took a couple of days for it to go through all of it.
/r/Python
https://redd.it/kty4h3
I work in the public health sector, an area with very bad technology debt. A lot of data is still on paper, scattered throughout spreadsheets, or somewhere else and deemed to exist so it's fine we don't need to track that. It's totally fine.
Well, I work in research and evaluation and for a very large grant, I needed to connect our student records to a federal database that tracks where they are out in the field once they have started medical residency and become established as doctors.
We only had names of students, and many python headaches later I ended up with a script to write all of the results for each API call to an Excel file, except I had to enter each first and last name manually.
We were going to make a graduate student do the manual entry of it all. It probably would've taken months. But then I realized I could just make a little script to do the entries instead.
It was very stitched together, and it almost certainly could have been more elegant, but it worked and only took a couple of days for it to go through all of it.
/r/Python
https://redd.it/kty4h3
reddit
I finally did something I feel was worth while
I work in the public health sector, an area with very bad technology debt. A lot of data is still on paper, scattered throughout spreadsheets, or...
Pyradox: State of the Art Neural Networks for Deep Learning
🎉 Introducing pyradox: a python library that helps you with implementing various state of the art neural networks in a totally customizable fashion using TensorFlow 2.
Check out how it can be used to Detect location of Keypoints on face images: https://ritvik19.medium.com/facial-key-points-detection-using-pyradox-f2a6cf6a862f
You can find pyradox here: https://github.com/Ritvik19/pyradox
Don't forget to ⭐ the repo!
/r/Python
https://redd.it/kubmlz
🎉 Introducing pyradox: a python library that helps you with implementing various state of the art neural networks in a totally customizable fashion using TensorFlow 2.
Check out how it can be used to Detect location of Keypoints on face images: https://ritvik19.medium.com/facial-key-points-detection-using-pyradox-f2a6cf6a862f
You can find pyradox here: https://github.com/Ritvik19/pyradox
Don't forget to ⭐ the repo!
/r/Python
https://redd.it/kubmlz
Medium
Facial Key-points Detection using pyradox
pyradox is a python library helps you with implementing various state of the art neural networks in a totally customizable fashion using…
How to mask a domain name with another?
I created a web app, where a user get a pre-made website upon signup (e.g. www.webapp.com/user1) I would like users to use custom domains for their websites.
For example, I'd like www.webapp.com/user1 to be accessible via a new custom URL www.user-custom-domain-name.com.
I know both WordPress and Wix allow users to do this.
Does anyone know? Any help or pointer would be appreciated. Thank you.
​
P.S. I'm using PythonAnywhere's paid service and PythonAnywhere is using uWSGI as server layer.
/r/flask
https://redd.it/ku3q6q
I created a web app, where a user get a pre-made website upon signup (e.g. www.webapp.com/user1) I would like users to use custom domains for their websites.
For example, I'd like www.webapp.com/user1 to be accessible via a new custom URL www.user-custom-domain-name.com.
I know both WordPress and Wix allow users to do this.
Does anyone know? Any help or pointer would be appreciated. Thank you.
​
P.S. I'm using PythonAnywhere's paid service and PythonAnywhere is using uWSGI as server layer.
/r/flask
https://redd.it/ku3q6q
PyPLANE - open source ODE solver written in Python
Hey everyone! Introducing our new app PyPLANE: your new favourite GUI-based solver for ordinary differential equations. https://github.com/m-squared96/PyPLANE
​
PyPLANE is built using NumPy, SymPy and Matplotlib in the backend, with a PyQt frontend. As it's an app it's not up on PyPI, but if you run Linux it can be installed via the Snap store using `sudo snap install pyplane`. Windows users: we don't have the executable ready yet, but watch this space. Mac users: sorry bro.
​
This is an early release, so expect some stability issues. But fear not! We plan on rolling out a full, stable V1 release before too long. If you want to get involved, join us on GitHub. This is a great opportunity to do something novel with some of the cornerstone modules used in data science, and a great project to include in any portfolio.
/r/Python
https://redd.it/kughg4
Hey everyone! Introducing our new app PyPLANE: your new favourite GUI-based solver for ordinary differential equations. https://github.com/m-squared96/PyPLANE
​
PyPLANE is built using NumPy, SymPy and Matplotlib in the backend, with a PyQt frontend. As it's an app it's not up on PyPI, but if you run Linux it can be installed via the Snap store using `sudo snap install pyplane`. Windows users: we don't have the executable ready yet, but watch this space. Mac users: sorry bro.
​
This is an early release, so expect some stability issues. But fear not! We plan on rolling out a full, stable V1 release before too long. If you want to get involved, join us on GitHub. This is a great opportunity to do something novel with some of the cornerstone modules used in data science, and a great project to include in any portfolio.
/r/Python
https://redd.it/kughg4
GitHub
GitHub - m-squared96/PyPLANE: An open source replacement to the traditional DFIELD and PPLANE applications for solving systems…
An open source replacement to the traditional DFIELD and PPLANE applications for solving systems of ODEs - m-squared96/PyPLANE
I created a pandemic simulator using Python & pygame
I recently started working on a pandemic simulator. My goal is to make people aware on how fast and easily the virus could be spread. The green dots are safe people, red infected and blue are the immune. My code will be available later to run some simulations yourself!
https://www.youtube.com/watch?v=bD258\_Tz8ME
Keep safe!
/r/Python
https://redd.it/kufbao
I recently started working on a pandemic simulator. My goal is to make people aware on how fast and easily the virus could be spread. The green dots are safe people, red infected and blue are the immune. My code will be available later to run some simulations yourself!
https://www.youtube.com/watch?v=bD258\_Tz8ME
Keep safe!
/r/Python
https://redd.it/kufbao
YouTube
Pandemic Simulation using Python & Pygame
Small example on about my project simulating the pandemic and why we should flatten the curve. Using this small simulation environment I want to show why we all should keep our distance. My goal is to make people aware on how fast and easily the virus could…
What are some reasons why you might include 'myappname.apps.AppConfig' in INSTALLED_APPS rather than just 'myappname'
I'm trying to understand some common use cases for needing to subclass `AppConfig` and include `myappname.apps.MyAppConfig` in `INSTALLED_APPS` rather than just `myappname`. I have been looking at [https://docs.djangoproject.com/en/3.1/ref/applications/](https://docs.djangoproject.com/en/3.1/ref/applications/), but I haven't seen any specific examples of why you might want to do this.
The one use case I have ever needed this for is for importing signals defined outside of `models.py`, like this:
from django.apps import AppConfig
class MyAppConfig(AppConfig):
name = "myappname"
def ready(self):
import myappname.signals
Does anyone have some practical examples of other things you might do with a subclassed `AppConfig`? I understand that this might used when making reusable Django applications (something I haven't done yet), so this might be more relevant for that type of use case, so I'm mostly asking about use cases for non-reusable apps.
/r/django
https://redd.it/kuinrq
I'm trying to understand some common use cases for needing to subclass `AppConfig` and include `myappname.apps.MyAppConfig` in `INSTALLED_APPS` rather than just `myappname`. I have been looking at [https://docs.djangoproject.com/en/3.1/ref/applications/](https://docs.djangoproject.com/en/3.1/ref/applications/), but I haven't seen any specific examples of why you might want to do this.
The one use case I have ever needed this for is for importing signals defined outside of `models.py`, like this:
from django.apps import AppConfig
class MyAppConfig(AppConfig):
name = "myappname"
def ready(self):
import myappname.signals
Does anyone have some practical examples of other things you might do with a subclassed `AppConfig`? I understand that this might used when making reusable Django applications (something I haven't done yet), so this might be more relevant for that type of use case, so I'm mostly asking about use cases for non-reusable apps.
/r/django
https://redd.it/kuinrq
reddit
What are some reasons why you might include...
I'm trying to understand some common use cases for needing to subclass `AppConfig` and include `myappname.apps.MyAppConfig` in `INSTALLED_APPS`...
I talk about general stuff that you probably we're looking at on your Flask Project, How to create a logout route and trigger it from navbar, force users to log in before accessing some page, automatically log in users that have just registered. Enjoy! :)
https://youtube.com/watch?v=e5EN8i-PaAg&feature=share
/r/flask
https://redd.it/kuffp6
https://youtube.com/watch?v=e5EN8i-PaAg&feature=share
/r/flask
https://redd.it/kuffp6
YouTube
Python Flask Full Series - Web Application Development - Logout and Customizations - Episode 13
Python Flask
#Python
👍Welcome to my Python Flask tutorial
In this episode, we will do the following things:
- Enabling logout from navigation bar
- Force users to log in before they access the market page, so visit this page anonymously will be forbidden.…
#Python
👍Welcome to my Python Flask tutorial
In this episode, we will do the following things:
- Enabling logout from navigation bar
- Force users to log in before they access the market page, so visit this page anonymously will be forbidden.…
Don't pay to learn Flask with python! Just watch this free course of Flask with python!!
https://www.youtube.com/watch?v=AAtUS0lLjvQ
/r/flask
https://redd.it/kurwxh
https://www.youtube.com/watch?v=AAtUS0lLjvQ
/r/flask
https://redd.it/kurwxh
YouTube
Web development with flask and python | Setting up your website | Tutorial 1
Don't Forget to subscribe and turn on the notifications and also like the video so you can help me beat the YouTube algorithm
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code!
/r/Python
https://redd.it/kuqhej
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with how you found it and attach some source code!
/r/Python
https://redd.it/kuqhej
reddit
Monday Daily Thread: Project ideas!
Comment any project ideas beginner or advanced in this thread for others to give a try! If you complete one make sure to reply to the comment with...
aliev/aioauth Asynchronous OAuth 2.0 framework for Python 3
https://github.com/aliev/aioauth
/r/Python
https://redd.it/kunnow
https://github.com/aliev/aioauth
/r/Python
https://redd.it/kunnow
GitHub
GitHub - aliev/aioauth: Asynchronous OAuth 2.0 provider for Python 3
Asynchronous OAuth 2.0 provider for Python 3. Contribute to aliev/aioauth development by creating an account on GitHub.
Using django templates and vue components am I better using the vue cdn?
/r/djangolearning
https://redd.it/kup9o1
/r/djangolearning
https://redd.it/kup9o1
Numpy Gem: Vectorizing Ragged Arrays
My friend asked me about vectorizing k-means. Algorithms like k-means typically require doing the same calculation (distances between sets of points and centroids), but across unevenly-sized sets. However, turns out you can express this naturally with numpy, and the technique seemed generally applicable. Vectorization is crucial: on my mini-benchmark, it gets a 300x speedup on my python code.
​
For something like k-means, most of the time this means you have to either do extra work (compute all pairwise distances between every centroid and every point across all sets) or use an un-vectorized python loop.
​
I've found myself using the same vectorization technique several times so I decided to write it up. See more on this post.
/r/Python
https://redd.it/kurcl6
My friend asked me about vectorizing k-means. Algorithms like k-means typically require doing the same calculation (distances between sets of points and centroids), but across unevenly-sized sets. However, turns out you can express this naturally with numpy, and the technique seemed generally applicable. Vectorization is crucial: on my mini-benchmark, it gets a 300x speedup on my python code.
​
For something like k-means, most of the time this means you have to either do extra work (compute all pairwise distances between every centroid and every point across all sets) or use an un-vectorized python loop.
​
I've found myself using the same vectorization technique several times so I decided to write it up. See more on this post.
/r/Python
https://redd.it/kurcl6
Vlad Feinberg
Vectorizing Ragged Arrays (Numpy Gems, Part 4)
Vlad's Blog
Google sign in Error 403: disalloweduseragent only in iOS
I used django-allauth to implement a Google sign in, and everything works fine across major browsers on computer, Android, and iOS. The problem is when someone on iOS opens my link inside an app like messenger or instagram. I don't know what the browser is called (WebView on Android I believe), but the Google sign in gives an Error 403: disallowed\useragent. Doing the same thing on Android works fine, so I think it's an iOS issue. When I looked it up, I didn't find any clear solution. Anyone have an idea for a workaround?
/r/djangolearning
https://redd.it/kv038o
I used django-allauth to implement a Google sign in, and everything works fine across major browsers on computer, Android, and iOS. The problem is when someone on iOS opens my link inside an app like messenger or instagram. I don't know what the browser is called (WebView on Android I believe), but the Google sign in gives an Error 403: disallowed\useragent. Doing the same thing on Android works fine, so I think it's an iOS issue. When I looked it up, I didn't find any clear solution. Anyone have an idea for a workaround?
/r/djangolearning
https://redd.it/kv038o
reddit
Google sign in Error 403: disallowed_useragent only in iOS
I used django-allauth to implement a Google sign in, and everything works fine across major browsers on computer, Android, and iOS. The problem is...
How to master Django and get a job (6 min video)
Hi!
I just published a short (6 min) video where I talk a little bit about the most important (at least in my opinion) concepts to know and some other things you can do to get a job.
If you think this sounds interest, you can find the video here:
https://www.youtube.com/watch?v=dFnQ9gDz0pM
I would love to hear your opinion on it (quality and content) :-)
/r/djangolearning
https://redd.it/kv0w9a
Hi!
I just published a short (6 min) video where I talk a little bit about the most important (at least in my opinion) concepts to know and some other things you can do to get a job.
If you think this sounds interest, you can find the video here:
https://www.youtube.com/watch?v=dFnQ9gDz0pM
I would love to hear your opinion on it (quality and content) :-)
/r/djangolearning
https://redd.it/kv0w9a
YouTube
Become A Django Developer And Get A Job
I often get asked how people can become a better Django developer, how to go beyond the basics and what they need to know to get a job.
In this video, I will go over the most important steps and other things you can do to get a job.
Django is one of the…
In this video, I will go over the most important steps and other things you can do to get a job.
Django is one of the…
Trying a college bus tracking project for my college. Is Django appropriate for such a task? And also, what kind of APIs will I need for this? Thanks.
/r/djangolearning
https://redd.it/kv23jx
/r/djangolearning
https://redd.it/kv23jx
reddit
Trying a college bus tracking project for my college. Is Django...
Posted in r/djangolearning by u/bmtkwaku • 1 point and 0 comments
Flask user management
Hi there!
I am working on a project of mine where I want the user to visit his profile and make changes but if the user is visiting another person's profile then he should see a slightly different version of the page. Like we have on any social media site.
The idea is pretty simple basically I want to determine if the user visiting another person's page is a different person or the owner of the profile. Depending on that the contents will be different on the profile page. For example the ability to edit the profile or follow a user
I hope I made my point clear there. Could someone help me out as to what all tutorial should I refer for this.
/r/flask
https://redd.it/kv762b
Hi there!
I am working on a project of mine where I want the user to visit his profile and make changes but if the user is visiting another person's profile then he should see a slightly different version of the page. Like we have on any social media site.
The idea is pretty simple basically I want to determine if the user visiting another person's page is a different person or the owner of the profile. Depending on that the contents will be different on the profile page. For example the ability to edit the profile or follow a user
I hope I made my point clear there. Could someone help me out as to what all tutorial should I refer for this.
/r/flask
https://redd.it/kv762b
reddit
Flask user management
Hi there! I am working on a project of mine where I want the user to visit his profile and make changes but if the user is visiting another...