19](https://www.reddit.com/5tt9cz)|[Week 29](https://www.reddit.com/6m9l1v)|[Week 39](https://www.reddit.com/7nayri)|[Week 49](https://reddit.com/98n2rt)|[Week 59](https://reddit.com/b50r5y)|[Week 69](https://reddit.com/cvde5a)|[Week 79](https://reddit.com/entcxy)|[Week 89](https://reddit.com/gu5t0d)|[Week 99](https://reddit.com/jqjgo2)||
|[Week 10](https://www.reddit.com/56s2oa)|[Week 20](https://www.reddit.com/5wh2wb)|[Week 30](https://www.reddit.com/6p3ha7)|[Week 40](https://www.reddit.com/7qel9p)|[Week 50](https://reddit.com/9cf158)|[Week 60](https://reddit.com/bakew0)|[Week 70](https://reddit.com/d1g1k9)|[Week 80](https://reddit.com/euctyw)|[Week 90](https://reddit.com/hddf7j)|[Week 100](https://reddit.com/jz3evt)||
Most upvoted papers
/r/MachineLearning
https://redd.it/l9lvgs
|[Week 10](https://www.reddit.com/56s2oa)|[Week 20](https://www.reddit.com/5wh2wb)|[Week 30](https://www.reddit.com/6p3ha7)|[Week 40](https://www.reddit.com/7qel9p)|[Week 50](https://reddit.com/9cf158)|[Week 60](https://reddit.com/bakew0)|[Week 70](https://reddit.com/d1g1k9)|[Week 80](https://reddit.com/euctyw)|[Week 90](https://reddit.com/hddf7j)|[Week 100](https://reddit.com/jz3evt)||
Most upvoted papers
/r/MachineLearning
https://redd.it/l9lvgs
reddit
[Discussion] Machine Learning - WAYR (What Are You Reading) - Week 19
This is a place to share machine learning research papers, journals, and articles that you're reading this week. If it relates to what you're...
I made a game in 1 minute in Python
Yes, seriously. Yes, from scratch. But yes, not unprepared.
Video | Source code (skip to 0:59 to skip the intro/context)
Yes, it is quite simple, but provided such a short amount of time, the game turns out to be surprisingly fun. And it also takes much more time to complete the game than to create it:) It’s probably not very educational, but it’s interesting to know that it can be done. Any feedback on the video and ideas regarding the game are appreciated. I am also curious if anyone knows the optimal strategy for this game. There are actually two (possibly different) optimal strategy questions here:
1. Strategy for minimum average number of turns
2. Strategy for minimum worst-case number of turns
/r/Python
https://redd.it/lb1p1u
Yes, seriously. Yes, from scratch. But yes, not unprepared.
Video | Source code (skip to 0:59 to skip the intro/context)
Yes, it is quite simple, but provided such a short amount of time, the game turns out to be surprisingly fun. And it also takes much more time to complete the game than to create it:) It’s probably not very educational, but it’s interesting to know that it can be done. Any feedback on the video and ideas regarding the game are appreciated. I am also curious if anyone knows the optimal strategy for this game. There are actually two (possibly different) optimal strategy questions here:
1. Strategy for minimum average number of turns
2. Strategy for minimum worst-case number of turns
/r/Python
https://redd.it/lb1p1u
YouTube
I made a game in 1 minute (no clickbait)
Is it possible to make a simple yet complete game from scratch in just 1 minute? Yes!
Watch how I made a game in 21 seconds next: https://youtu.be/r3a9obNqno4
Here is the code of the game:
https://gist.github.com/nns2009/5fa80687ca6c3cab0c1ccc28d3e898ad…
Watch how I made a game in 21 seconds next: https://youtu.be/r3a9obNqno4
Here is the code of the game:
https://gist.github.com/nns2009/5fa80687ca6c3cab0c1ccc28d3e898ad…
I've written a guide on how to use Win32 APIs to monitor USB drives on Windows and performing automated tasks with Python
https://abdus.dev/posts/python-monitor-usb/
/r/Python
https://redd.it/lb2gj6
https://abdus.dev/posts/python-monitor-usb/
/r/Python
https://redd.it/lb2gj6
abdus.dev
Detecting USB drive insertion & removal on Windows using Python - abdus.dev
Monitor new drives on Windows and perform tasks
[AF] How to have multiple object input with ability to add / delete rows?
I'm sorry if this has been asked before (I did some searching on this subreddit and googling already), but I am running into some issues with trying to use flask. Most of my background is in backend development, and the front end experience that I do have is exclusively in SalesForce (both VisualForce and Lightning), so it doesn't exactly help me much in this situation. That being said, since SalesForce isn't exactly like most other web development, I am not sure how much of my issues are about my lack of regular web development knowledge vs. just not knowing flask, so any help would be appreciated!
I am currently trying to build a Web Application that will do the following:
1. User uses a unique URL with a unique ID that is previously generated.
2. Using the Unique URL, we grab some information about the user to display (email, project, etc.).
3. We also create an instance of an object that the user will enter information on. This object can just be called process_step, and is used to track steps of a process that the user has taken thus far.
4. Render the template with one instance on the page for the user to enter
/r/flask
https://redd.it/lb0813
I'm sorry if this has been asked before (I did some searching on this subreddit and googling already), but I am running into some issues with trying to use flask. Most of my background is in backend development, and the front end experience that I do have is exclusively in SalesForce (both VisualForce and Lightning), so it doesn't exactly help me much in this situation. That being said, since SalesForce isn't exactly like most other web development, I am not sure how much of my issues are about my lack of regular web development knowledge vs. just not knowing flask, so any help would be appreciated!
I am currently trying to build a Web Application that will do the following:
1. User uses a unique URL with a unique ID that is previously generated.
2. Using the Unique URL, we grab some information about the user to display (email, project, etc.).
3. We also create an instance of an object that the user will enter information on. This object can just be called process_step, and is used to track steps of a process that the user has taken thus far.
4. Render the template with one instance on the page for the user to enter
/r/flask
https://redd.it/lb0813
reddit
[AF] How to have multiple object input with ability to add /...
I'm sorry if this has been asked before (I did some searching on this subreddit and googling already), but I am running into some issues with...
Full Course - Financial Data Analysis with Python - Part 1 of 8 - Technical Analysis with DataFrames - Use DataFrames to load historical stock price data, Similarities with DataFrames and Excel, Learn about loc and iloc on DataFrames
https://youtu.be/m8ahf_c9hEc
/r/Python
https://redd.it/lb08fj
https://youtu.be/m8ahf_c9hEc
/r/Python
https://redd.it/lb08fj
YouTube
Financial Data Analysis with Python | 2h Full Course | Part 1/8 | Technical Analysis with DataFrames
A full 2-hour Python course to get you started with Financial Analysis.
Get a 21 hours Python for Finance course 👉 https://lpwr-academy.com/p/python-for-finance-financial-analysis-for-investing
Python for Finance course
✔️ Learn Python for Finance with…
Get a 21 hours Python for Finance course 👉 https://lpwr-academy.com/p/python-for-finance-financial-analysis-for-investing
Python for Finance course
✔️ Learn Python for Finance with…
🚀 Building a Startup with Django + Javascript in 1 month! (Daily Standups)
https://www.youtube.com/watch?v=nfeMoN6fyKo&feature=youtu.be&ab_channel=IsaacJoy
/r/django
https://redd.it/lbb09a
https://www.youtube.com/watch?v=nfeMoN6fyKo&feature=youtu.be&ab_channel=IsaacJoy
/r/django
https://redd.it/lbb09a
YouTube
Let's build a Social Network in 1 month (Day 2/28)
tech stack - nuxt.js(vue.js) / django / postgres
code: https://gitlab.com/isaacjoy/chitter.chat
time spent: 3 hours
code: https://gitlab.com/isaacjoy/chitter.chat
time spent: 3 hours
Wednesday Daily Thread: Beginner questions
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/lbaf2s
New to Python and have questions? Use this thread to ask anything about Python, there are no bad questions!
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/lbaf2s
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
How to store a blog post ?
So I've seen many tutorials about blogs but they always make a model called blog which has an author field a title filed...etc , but what if i have a big blog that has multiple images nested in the text of the blog for example, how the model should look like?
and how to preserve the order of the images when i use them in the frontend?
/r/djangolearning
https://redd.it/lb8kib
So I've seen many tutorials about blogs but they always make a model called blog which has an author field a title filed...etc , but what if i have a big blog that has multiple images nested in the text of the blog for example, how the model should look like?
and how to preserve the order of the images when i use them in the frontend?
/r/djangolearning
https://redd.it/lb8kib
reddit
How to store a blog post ?
So I've seen many tutorials about blogs but they always make a model called blog which has an author field a title filed...etc , but what if i...
Make your own streaming video sharing app
https://medium.com/dev-genius/how-to-make-your-own-streaming-video-sharing-app-using-python-93bb57bcf584
/r/Python
https://redd.it/lbjami
https://medium.com/dev-genius/how-to-make-your-own-streaming-video-sharing-app-using-python-93bb57bcf584
/r/Python
https://redd.it/lbjami
Code Review
Hello fellow Djangoers! I'm posting a GitHub Gist in hopes that you will review it! I'm always really curious how people go about organizing Django apps. For instance in the add_promotion method I originally had the get object in the method itself, but then I decided to move it out. How would you go about organizing this? Please help!
https://gist.github.com/glosta/a4b6ce2291b2faf4708f3473a93ff317
/r/django
https://redd.it/lb73h6
Hello fellow Djangoers! I'm posting a GitHub Gist in hopes that you will review it! I'm always really curious how people go about organizing Django apps. For instance in the add_promotion method I originally had the get object in the method itself, but then I decided to move it out. How would you go about organizing this? Please help!
https://gist.github.com/glosta/a4b6ce2291b2faf4708f3473a93ff317
/r/django
https://redd.it/lb73h6
Gist
Add Promotion
Add Promotion. GitHub Gist: instantly share code, notes, and snippets.
I built a flask site that combines stock posts from different social medias and keeps track of the most talked about tickers
hey everyone,
Using flask I built a site that takes stock related posts from 10 different subreddits, as well as from thousands of users on twitter, tiktok, and youtube and combines them into one searchable place. it's been a pretty fun project that has taken me a couple hundred hours to complete and I'm really happy how it turned out. It has served me as a useful tool for investing if any of you are interested in that. Would love to hear any thoughts, feedback, ideas. Thanks!
Backend is python and mysql/frontend is html, css, js
hosted on pythonanywhere
https://www.stockcompiler.com/
/r/flask
https://redd.it/lb7qcn
hey everyone,
Using flask I built a site that takes stock related posts from 10 different subreddits, as well as from thousands of users on twitter, tiktok, and youtube and combines them into one searchable place. it's been a pretty fun project that has taken me a couple hundred hours to complete and I'm really happy how it turned out. It has served me as a useful tool for investing if any of you are interested in that. Would love to hear any thoughts, feedback, ideas. Thanks!
Backend is python and mysql/frontend is html, css, js
hosted on pythonanywhere
https://www.stockcompiler.com/
/r/flask
https://redd.it/lb7qcn
reddit
I built a flask site that combines stock posts from different...
hey everyone, Using flask I built a site that takes stock related posts from 10 different subreddits, as well as from thousands of users on...
save() takes 1 positional argument but 2 were given
I am trying to register as a seller ( is\_seller=True). But I am getting this issue of save() function cant take two positional arguments. I tried passing \*args and \*\*kwargs as well, but it is still not working.
My models:
class CustomUser(AbstractUser):
# username = models.CharField(max_length=255,)
first_name = models.CharField(max_length=255, verbose_name="First name")
last_name = models.CharField(max_length=255, verbose_name="Last name")
email = models.EmailField(unique=True)
is_seller = models.BooleanField(default=False)
is_customer = models.BooleanField(default=False)
USERNAME_FIELD = "email"
REQUIRED_FIELDS = ["first_name", "last_name"]
objects = CustomUserManager()
def __str__(self):
return self.email
My serializers:
class
/r/djangolearning
https://redd.it/lbldga
I am trying to register as a seller ( is\_seller=True). But I am getting this issue of save() function cant take two positional arguments. I tried passing \*args and \*\*kwargs as well, but it is still not working.
My models:
class CustomUser(AbstractUser):
# username = models.CharField(max_length=255,)
first_name = models.CharField(max_length=255, verbose_name="First name")
last_name = models.CharField(max_length=255, verbose_name="Last name")
email = models.EmailField(unique=True)
is_seller = models.BooleanField(default=False)
is_customer = models.BooleanField(default=False)
USERNAME_FIELD = "email"
REQUIRED_FIELDS = ["first_name", "last_name"]
objects = CustomUserManager()
def __str__(self):
return self.email
My serializers:
class
/r/djangolearning
https://redd.it/lbldga
reddit
save() takes 1 positional argument but 2 were given
I am trying to register as a seller ( is\_seller=True). But I am getting this issue of save() function cant take two positional arguments. I tried...
How to Send an email from Python
I wrote a article on how to send an email from Python using Gmail, smpt, MIMEMultipart and MIMEText. Check it out! https://conorjohanlon.com/send-an-email-from-python/
/r/Python
https://redd.it/lbnieq
I wrote a article on how to send an email from Python using Gmail, smpt, MIMEMultipart and MIMEText. Check it out! https://conorjohanlon.com/send-an-email-from-python/
/r/Python
https://redd.it/lbnieq
I Made A Whatpulse Alternative! My Biggest Python Project Till Now!
Hello fellow redditors, thanks for checking this post.
WhatPulse is a small application that measures your keyboard/mouse usage, down- & uploads and your uptime. What I care about is the keyboard and mouse usage. I just like knowing how many clicks it took for that peripheral to fail. The issue I had with Whatpulse tho is that whenever my pc shuts down unexpectedly, the data gets corrupted and I start from 0 again. That happened a couple of times and it annoyed me so much that I decided to make my own program that will achieve the same thing and will save the data in a .txt file so that I can modify it easily if I wanted.
​
After 5-10 hours of work on it, this is what I ended up with. I think I spent more time than I should but I would blame that on the fact that I had to learn many new things like multi-threading. I tried my best to keep the code clean but I think it still looks messy. I also used the .pyw file extension instead of .py because I don't want the terminal to open. I have around 20 hours of learning
/r/Python
https://redd.it/lbj227
Hello fellow redditors, thanks for checking this post.
WhatPulse is a small application that measures your keyboard/mouse usage, down- & uploads and your uptime. What I care about is the keyboard and mouse usage. I just like knowing how many clicks it took for that peripheral to fail. The issue I had with Whatpulse tho is that whenever my pc shuts down unexpectedly, the data gets corrupted and I start from 0 again. That happened a couple of times and it annoyed me so much that I decided to make my own program that will achieve the same thing and will save the data in a .txt file so that I can modify it easily if I wanted.
​
After 5-10 hours of work on it, this is what I ended up with. I think I spent more time than I should but I would blame that on the fact that I had to learn many new things like multi-threading. I tried my best to keep the code clean but I think it still looks messy. I also used the .pyw file extension instead of .py because I don't want the terminal to open. I have around 20 hours of learning
/r/Python
https://redd.it/lbj227
Pastebin
Whatpulse Alternative V 3 - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Two strategies for implementing C++ virtual functions in Cython
https://monadical.com/posts/virtual-classes-in-cython.html
/r/Python
https://redd.it/lbney0
https://monadical.com/posts/virtual-classes-in-cython.html
/r/Python
https://redd.it/lbney0
Monadical Consulting
Implementing C++ Virtual Functions in Cython
This is an extensive article that assumes Cython knowledge and describes two strategies for using C++ code from Python, requiring the implementation of virtual functions in C++ abstract classes.
Create a Python program to scrape YouTube Channel Video Info (based on YouTube API)
For anyone who is looking for an interesting project to do, here's a tutorial series walk you through how to create a standalone Python program to extract a channel's videos info (views, like/dislike count, video title, description, tags, etc).
Part 1: Create a Python class to interact with YouTube Data AP (https://youtu.be/RgtsBdeQ4Vc).
Part 2: Export a channel's videos' information to a Google Spreadsheets using Google Sheets API (https://youtu.be/Xsk3dLgTkx4).
Part 3: Export a channel's videos' information to an Excel and a CSV files using pandas library (https://youtu.be/NohwewVexvI).
/r/Python
https://redd.it/lbph9v
For anyone who is looking for an interesting project to do, here's a tutorial series walk you through how to create a standalone Python program to extract a channel's videos info (views, like/dislike count, video title, description, tags, etc).
Part 1: Create a Python class to interact with YouTube Data AP (https://youtu.be/RgtsBdeQ4Vc).
Part 2: Export a channel's videos' information to a Google Spreadsheets using Google Sheets API (https://youtu.be/Xsk3dLgTkx4).
Part 3: Export a channel's videos' information to an Excel and a CSV files using pandas library (https://youtu.be/NohwewVexvI).
/r/Python
https://redd.it/lbph9v
YouTube
Create a YouTube Channel Videos Scraper with Python | Part 1
In this tutorial series, we are going to learn how to build a Python program to extract a channel's uploaded videos information (video id, video name, view count, likes/dislikes count, comment count, etc). The series is breaking down into 4 parts.
Related…
Related…
Do we like Medium links, here?
I've seen a lot of links for Medium on here. Personally, I hate Medium, so I always complain. Typically I'm met with downvotes, which is fine. But to that point, I have to ask...do we support folks posting their own Medium links here? I have a few things I'd like to share with the community, but if it's cool with everyone here to post it on Medium and then post the Medium link here, I don't mind grabbing whatever piddly kickbacks that Medium offers. I just don't want to be "That guy", you know?
Love this community, thanks for being so open, welcoming, and supportive of all the new devs out there!
/r/Python
https://redd.it/lbrr19
I've seen a lot of links for Medium on here. Personally, I hate Medium, so I always complain. Typically I'm met with downvotes, which is fine. But to that point, I have to ask...do we support folks posting their own Medium links here? I have a few things I'd like to share with the community, but if it's cool with everyone here to post it on Medium and then post the Medium link here, I don't mind grabbing whatever piddly kickbacks that Medium offers. I just don't want to be "That guy", you know?
Love this community, thanks for being so open, welcoming, and supportive of all the new devs out there!
/r/Python
https://redd.it/lbrr19
reddit
Do we like Medium links, here?
I've seen a lot of links for Medium on here. Personally, I hate Medium, so I always complain. Typically I'm met with downvotes, which is fine. ...
Maxima
It has been probably been brought up before so please be kind, or don't.
I know about maixma-jupyter, but there has to be a manual way to just incorporate maxima in Jupyter in the notebook.
I guess what I am saying is there a more difficult way to get maxima involved in a new jupyter notebook?
/r/JupyterNotebooks
https://redd.it/lbzc8m
It has been probably been brought up before so please be kind, or don't.
I know about maixma-jupyter, but there has to be a manual way to just incorporate maxima in Jupyter in the notebook.
I guess what I am saying is there a more difficult way to get maxima involved in a new jupyter notebook?
/r/JupyterNotebooks
https://redd.it/lbzc8m
reddit
Maxima
It has been probably been brought up before so please be kind, or don't. I know about maixma-jupyter, but there has to be a manual way to just...
Hosting on Django cpanel
Hie guys. I want to host my Django website on a shared server on Cpanel. I'm having trouble though. I'm seeing this index.html page.
default index.html page
I thought the passenger_wsgi.py file was supposed to run first but it's not. How do I make the passenger_wsgi file handle all the incoming requests? This is my first time and I'm so confused and there arent any tutorials or info on this online. If you need any more information I'm ready to give it.
/r/djangolearning
https://redd.it/lbsgvz
Hie guys. I want to host my Django website on a shared server on Cpanel. I'm having trouble though. I'm seeing this index.html page.
default index.html page
I thought the passenger_wsgi.py file was supposed to run first but it's not. How do I make the passenger_wsgi file handle all the incoming requests? This is my first time and I'm so confused and there arent any tutorials or info on this online. If you need any more information I'm ready to give it.
/r/djangolearning
https://redd.it/lbsgvz
Thursday Daily Thread: Python careers!
Discussion of using Python in a professional environment, getting jobs in Python and more!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/lc26ka
Discussion of using Python in a professional environment, getting jobs in Python and more!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/lc26ka
reddit
Thursday Daily Thread: Python careers!
Discussion of using Python in a professional environment, getting jobs in Python and more! **This thread is not for recruitment, please see**...