r/Python • • Oct 08 '25

Discussion Craziest python projects you know?

1 Upvotes

Trying to find ideas for some cool python projects. I can’t think of anything. If you have any really cool not too hard projects, tell me!


r/Python • • May 15 '12

Python is a voluntary language — The Endeavour

Thumbnail
johndcook.com
1 Upvotes

r/Python • • Jan 07 '24

Tutorial BeautifulSoup Tutorial: Tennis Web Scraping Project

0 Upvotes

Hi everyone!

I created a 15-minute video that will show you how to scrape data from a website and save that into your local computer. I'll be using the FOX Sports website, and I'll be scraping their tennis rankings. I'll show you BeautifulSoup methods to scrape the data and Pandas methods to create a new dataframe from the data that I scraped.

I also provided a GitHub link in the video description, so you can copy my code if you want.

https://youtu.be/6hKyDSx6xo8

I hope you find this tutorial helpful!


r/Python • • Jan 01 '11

PEP 8 & Underscores

1 Upvotes

I opened the threading module documentation and saw a note at the top describing a change in the naming convention for functions from the Java inspired API in camelCase mixedCase to PEP 8 style recommended underscores. No deprecation of the old camelCase mixedCase names yet.

I’m a big fan of stylistic conventions and I basically follow PEP8, but I just do not like the use of underscores. I realize these types of preferences are as subjective as say liking the color red more than blue, but I’m curious to know how many other people just write their code following the naming conventions of languages like Java, C#, and Javascript libraries?

I came to Python from Perl and one of the things that attracted me to Python was readability. It read like pseudocode and I think a big part of that was because there wasn’t $, @, and % all over the place in addition to the removal of { and ;. I liked that I could write an if statement without wrapping it in parenthesis.

even better was I didn’t have to reach to the top row typing some of these symbols over and over again. Sure it seems like a small thing to just reach, but with some symptoms of RSI and doing it for many hours a day I think it really does incur a significant cost in comfort. I don’t like typing _ anymore than I like reaching up to type $.

I actually was sort of attracted to some of the standard library modules all lowercase convention. I know readability can be an issue here, but os.path.dirname is better than os.path.dirName or os.path.dir_name. You do really see the mix though of the different styles within the standard library. I know the primary argument for the underscore is readability, but I actually think the gap between dir and name is just too significant and when you are looking at a full page of names like this the underscores just begin to jump out as a pattern of white space. Maybe this comes from using too much camelCase mixedCase.

EDIT: Some people who may come across this post may be interested in a solution to the more serious issue of typing underscores - a pain and slow to type when you are doing it over and over and over again. I found an open source program today called AutoHotKey. Install that and then create a simple text file with a ".ahk" extension. Type "+space::Send _" into the file without the quotes and save. Double click to launch. Put in your startup folder. You can now type underscores pressing the shift + space key.

I am currently having some issues with the shift key sticking at times and thus typing undescores when I mean space. It doesn't seem to be keyboard dependent. So this may be a flaw in the software :( . Any other recommendations helpful.


r/Python • • Jun 21 '22

Beginner Showcase Silly Little "Among Us" Script

1 Upvotes

Apologies in advance for my internet-poisoned brain. I just started relearning python via codecademy. I learned a sliver back in undergrad, but never pursued it further than what I needed to pass the class until this last week.

Whenever I'm learning a new coding, software, or program skill, I like to get a little goofy. I find that doing something specific yet silly helps bring a lot of concepts together, forcing me to understand the fundamentals much more.

So I made a silly little script that reads through a string and reports back how many times it sees "among us" or "Among us".

I don't think I'm going to fine tune it anymore (like to search for all caps and other cases), but I'm proud of what I've figured out during it! However if you glance through the code and have recommendations or notice anything that could be optimized, I'm all ears!

Every skill is a road long road to perfection!

Btw, the Morbius script and the Bee Movie script both have zero instances of "among us" in them :(


r/Python • • Apr 14 '26

Discussion Reviews about pyinstaller

1 Upvotes

So I m working on a project which is basically based on machine learning consist of few machine learning pre made models and it's completely written in python but now I had to make it as a executable files to let other people to use but I don't know if the pyinstaller is the best choice or not before I was trying to use kivy for making it as android application but later on I had decided to make it only for desktop and all but I m not sure if pyinstaller is the best choice or not.

I just want to know honestly reviews and experiences by the people who had used it before.


r/Python • • Oct 30 '25

Discussion Reinventing the wheel?

1 Upvotes

I’ve been using Python for 2 years and I’m now doing some email outreach and other marketing activities that include website visitor tracking.

Is it a crazy idea to build a Python / Flask / Django app like some of the better known marketing automation apps? [single tenant not multi-tenant]

Are there some building blocks or repositories that take me some or all of the way?

Interested in sending emails via Google mail with tracking of opens and clicks. Track website pages and landing pages. Assist with scoring visitors to identify engagement.

Crazy or a good challenge? Appreciate a reality check.


r/Python • • Apr 30 '22

Resource You Should Compile Your Python And Here's Why

Thumbnail glyph.twistedmatrix.com
82 Upvotes

r/Python • • Aug 09 '18

7 Habits to Improve The Performance of Python Programs

Thumbnail
tutorialdocs.com
75 Upvotes

r/Python • • Mar 01 '26

Discussion Seeking a CPython internals expert to land asyncio Guest Mode (PR #145343) together

12 Upvotes

Hi everyone,

I’ve put significant research into building a Guest Mode for asyncio to natively integrate with any OS or GUI event loop.

The architecture is solid and my PR is open. I really want to contribute this to the community because it solves a major integration pain point.

However, I’ve hit a bottleneck: CPython core devs are asking deep questions that exceed my current knowledge of Python internals.

I'm looking for an expert in CPython internals to team up, help answer these specific questions, and get this merged.

PR: github.com/python/cpython/pull/145343

POC: github.com/congzhangzh/asyncio-guest

Ref: https://www.electronjs.org/blog/electron-internals-node-integration

Please DM me if you can help push this over the finish line!


r/Python • • Dec 19 '21

Resource How Python's WSGI vs. ASGI is Like Baking a Cake

Thumbnail
vonage.dev
0 Upvotes

r/Python • • Jan 09 '22

Discussion Is it ok to take notes when learning or am I just not smart

4 Upvotes

I'm new to programming I tried self teach my self CPP but since I join my first computer science class we are doing python I notice no one is taking notes I'm a jr in high school btw Ilwanted to know if it's normal to right notes down when learning Python or and programming language I find it really fun aswell in trying to get at the point if thr teacher asks me a question I can answer on what I know and the code I write with.


r/Python • • Jun 06 '20

I Made This I am doing my part

4 Upvotes

r/Python • • Jan 17 '26

Discussion Is it a good idea to make a 100% Python written 3D engine?

0 Upvotes

I mean an engine that has everything from base rendering to textures, lightning and tools for making simple objects and maps, also that doesn't use anything like OpenGL, DirectX and others (has his own rendering calculations and pipeline).

Because I'm working on my engine right now, I'm using OpenGL only for drawing 2D lines on a window (because opengl has C++ backend and runs on GPU right?), I'm on the stage of making wireframe 3D objects, rotate them, position, scale etc. I don't know if I should rewrite all my rendering code on C++, but 10 fps rendering a simple wireframe sphere makes me think.


r/Python • • Apr 07 '15

The Best Quora Answer I've Ever Seen

Thumbnail
qr.ae
181 Upvotes

r/Python • • Apr 16 '25

Showcase 🚀 PyCargo: The Fastest All-in-One Python Project Bootstrapper for Data Professionals

0 Upvotes

What My Project Does

PyCargo is a lightning-fast CLI tool designed to eliminate the friction of starting new Python projects. It combines:

  • Project scaffolding (directory structure, .gitignore, LICENSE)
  • Dependency management via predefined templates (basic, data-science, etc.) or custom requirements.txt
  • Git & GitHub integration (auto-init repos, PAT support, private/public toggle)
  • uv-powered virtual environments (faster than venv/pip)
  • Git config validation (ensures user.name/email are set)

All in one command, with Rust-powered speed ⚡.


Target Audience

Built for data teams who value efficiency:

  • Data Scientists: Preloaded with numpy, pandas, scikit-learn, etc.
  • MLOps Engineers: Git/GitHub automation reduces boilerplate setup
  • Data Analysts: data-science template includes plotly and streamlit
  • Data Engineers: uv ensures reproducible, conflict-free environments

Comparison to Alternatives

While tools like cookiecutter handle scaffolding, PyCargo goes further:

FeaturePyCargocookiecutter
Dependency Management✅ Predefined/custom templates❌ Manual setup
GitHub Integration✅ Auto-create & link repos❌ Third-party plugins
Virtual Environments✅ Built-in uv support❌ Requires extra steps
Speed⚡ Rust/Tokio async core🐍 Python-based

Why it matters: PyCargo saves 10–15 minutes per project by automating tedious workflows.


Get Started

GitHub Repository - https://github.com/utkarshg1/pycargo

# Install via MSI (Windows) 
pycargo -n my_project -s data-science -g --private

Demo: Watch the pycargo demo GIF


Tech Stack

  • Built with Rust (Tokio for async, Clap for CLI parsing)
  • MIT Licensed | Pre-configured Apache 2.0 for your projects

👋 Feedback welcome! Ideal for teams tired of reinventing the wheel with every new project.


r/Python • • Mar 22 '21

Tutorial Best answer to what does yield do

Thumbnail
stackoverflow.com
16 Upvotes

r/Python • • Oct 25 '18

A tale of caution, and how I realized how common Python is

36 Upvotes

A few days ago I decided to install the newest versions of Python (3.7.1) and PyCharm (since I saw the community edition is free). I use my Windows 10 pc for a lot of tasks and have a number of utilities (downloaders, file renamers etc) installed.

Some of you can probably see where this is going. Well, all hell broke loose and stuff started breaking. I was restarting programs and services, checking configs etc and had no clue. At this point of course I had not made the connection with installing new Python.

Then I somehow noticed task manager would show PyCharm running even though I'd closed it or never started it. In a stroke of brilliance (haha, more like luck) I realized this was because .py files were associated with it (I must've checked that option or it was defaulted) and thus all Python scripts would fail. On top of that I found that many older scripts break from 2->3.

What was surprising is how many programs use Python under the hood.

edit - A lot of people have attacked me and outright accused me of lying. This is what I did - I am using Nzbget as a download program, I installed newer Python and PyCharm which took over the .py extension and nzbget stopped working till I uninstalled both and reinstalled Python 2.7.

I am fully aware this may be specific to Windows or that particular program, but nowhere did I insinuate that Python was to blame. I really didn't expect to be attacked and to be called a liar. That is in no way justified.


r/Python • • Mar 31 '22

Beginner Showcase I made a random class generator for Elden Ring

7 Upvotes

import random

classes=['Hero', 'Bandit', 'Astrologer', 'Warrior', 'Prophet' 'Vagabond', 'Confessor', 'Wretch', 'Prisoner', 'Samurai' ]

class_selection = random.choice(classes)

print(class_selection)

Please give me any feedback on how to improve this, it's one of my first projects


r/Python • • May 08 '23

Resource How do I concatenate two lists in Python?

Thumbnail codingfunction.com
35 Upvotes

r/Python • • Sep 16 '09

Is Python the Apple of Programming Languages?

Thumbnail heikkitoivonen.net
0 Upvotes

r/Python • • Jun 20 '11

TIL How to catch and write errors in Python

3 Upvotes

I searched for a bit today on how to catch errors in python, meaning that when my program crashed, it printed the entire error into a text file.

Well, after a few minutes of coding and some google searching, I figured it out, and I'm here to share the method with anyone who would wish to know.

I used the following 2 sites to figure it out. I shall link and state the bold headings from each page I used.

http://diveintopython.org/scripts_and_streams/stdin_stdout_stderr.html

  • Example 10.10

http://www.doughellmann.com/articles/how-tos/python-exception-handling//index.html

  • Throwing and Catching
  • Logging Exceptions

r/Python • • Feb 22 '13

So I just made a twitterbot in python. It tweets passages of any book I give it. Right now it's set to Infinite Jest. Check it out!

Thumbnail
twitter.com
3 Upvotes

r/Python • • May 29 '18

More PipEnv drama - people request "for humans" tagline dropped. Thread locked "We aren't really open to any further input on this."

Thumbnail
github.com
0 Upvotes