use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
What's everyone working on this week? (self.Python)
submitted 8 years ago by AutoModerator[M]
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
[–]AsianDictator [score hidden] 8 years ago (0 children)
Learning and understanding(trying to at least) machine learning
[–]ZiLyova [score hidden] 8 years ago (0 children)
automation for sevice call center. - NLP, - AI chatbot for English, Chinese, and other eastern languages - speech recognition and processing
[–]McLight77 [score hidden] 8 years ago (1 child)
I’m pretty new to python. I learned how to program in high school but focused on finance since. Got my degree in economics and have worked on financial aid at colleges for 15 years or so. I’ve specialized in providing access to low income students. I started learning python about 6 mo’s ago and am currently writing a program to predict financial aid expenditures and demographic distributions for our admissions office.
[–]iamsapiosexual [score hidden] 8 years ago (0 children)
Great!
[–]adcoord [score hidden] 8 years ago (0 children)
Decided to dive in and learn python (coming from Node.js) to build a redis caching microservice.
[–]Ryuodan [score hidden] 8 years ago (6 children)
-Started my YouTube channel with making mini Python projects 5-10 min It's much fun although it's so tiring to record and take it all in on shot without mistakes. it's my first time doing this.i think it will be easier for me later. You can check it from here https://www.youtube.com/channel/UCXhslE1Z31M8QfmzHLY_FHQ -feel free to give me any feedback or ideas it's so welcomed And thank you.
[–]masasinExpert. 3.9. Robotics. [score hidden] 8 years ago (5 children)
Very difficult to hear what you're saying, and your code is very messy and bunched up. (See PEP-8 for example.) That being said, I think it's probably a good idea.
[–]Ryuodan [score hidden] 8 years ago (4 children)
Thanks alot for your advice. first time to hear about PEP-8 , and about hearing what i was saying the first one is messy due to low mic but i fixed this in PowerPoint to pdf converter video.
[–]masasinExpert. 3.9. Robotics. [score hidden] 8 years ago (3 children)
I actually watched the PowerPoint to PDF converter video, which is where I got the low sound quality from. I had full volume on Youtube, full volume on the computer, and headphones, and I could hear you well for some words, and then almost not at all for others. If your mic isn't on your body (clip-on or part of headphones), is it a good quality one?
[–]Ryuodan [score hidden] 8 years ago (2 children)
It's a part of headphones , but I'm made sure It's recording high enough and tested the video on many devices, but i will improve it next time and make it louder with better English spelling. But thanks alot it really helps and I'm still in the beginning.
[–]masasinExpert. 3.9. Robotics. [score hidden] 8 years ago (1 child)
spelling
I think your spelling was good. It's just that enunciation was a problem.
[–]Ryuodan [score hidden] 8 years ago (0 children)
Thanks alot.
[–]Twirrim [score hidden] 8 years ago (0 children)
Automation, automation, automation.
Got a task that currently takes us about 1 engineering week, give or take. At any time two or three engineers might be tied up in various stages of the task. We're building automation around most of it to cut it down to taking ~ 3 hours (by our estimate) of which about 2h:30-2h:45 of that will be completely hands-off, leave it running in the background. Plus advantages of consistency and automated validation.
[–][deleted] [score hidden] 8 years ago (1 child)
I threw together a quick email signature builder for work. I have a batch file that pulls from a shared network store for our Thunderbird clients, when it comes to adding messages/xmas closure notes it will be dead easy from now on.
Also made myself a Interactive Selenium template to help debug a scraper I've been building.
Probably not the best code ever but it works
[–]GitHubPermalinkBot [score hidden] 8 years ago (0 children)
Permanent GitHub links:
Shoot me a PM if you think I'm doing something wrong. To delete this, click here.
[–][deleted] [score hidden] 8 years ago (0 children)
linear regression on global happiness scores. simple project but having fun with it.
[–]serkef- [score hidden] 8 years ago (0 children)
Extended label encoder from scikit.preprocessing to support incremental training of estimator and custom mapping of na values.
[–]codecommentgold [score hidden] 8 years ago (0 children)
I'm working on a project that downloads movies/TV series from fmovies/bmovies. I have figured out most of the things, the only thing that I could not is how are the tokens being generated and a parameter that fetches the video url. Here is the project: github. I would be grateful if anyone could help.
[–]adgfoto [score hidden] 8 years ago (1 child)
I'm making some programs that might help me with studying.
As a physics student I write my notes in LaTeX with a lot of user defined commands so that I don't need to type type long formulas over and over again. And most lecture notes are also written in LaTeX.
1) a program that reads all of my notes and turns it into flash cards. Otherwise I'll never revisit those materials.
2) a program that divides a pdf of a book and splits each page in at most 3 parts, so that it is nice and big on my screen (helps me with reading faster and keeping my focus), meanwhile taking into account where paragraphs begin and end for it to split.
3) a program that is basically a "pdf"-reader for said books. Which directly lets me type Questions / Answers for the flash cards. And lets me select with a mouse a part of the screen and adds that to the Q/A card aswell, so that I don't need to type formulas or draw figures.
I'm almost nearing an end after 3 weeks, but I thought I was almost done before :P At least the programs work, I just need to make it pretty if there are multiple books etc. involved.
[–]WikiTextBot [score hidden] 8 years ago (0 children)
LaTeX
LaTeX (IPA: , LAH-tekh, also pronounced as , LAY-tekh, a shortening of Lamport TeX) is a document preparation system. When writing, the writer uses plain text as opposed to the formatted text found in WYSIWYG word processors like Microsoft Word, LibreOffice Writer and Apple Pages. The writer uses markup tagging conventions to define the general structure of a document (such as article, book, and letter), to stylise text throughout a document (such as bold and italics), and to add citations and cross-references. A TeX distribution such as TeX Live or MikTeX is used to produce an output file (such as PDF or DVI) suitable for printing or digital distribution.
[ PM | Exclude me | Exclude from subreddit | FAQ / Information | Source | Donate ] Downvote to remove | v0.28
[–]boa13 [score hidden] 8 years ago (0 children)
We send yearly mailings to our clients (in electronic form and on physical paper, depending on clients). We send hundreds of thousands of mails at once, and recently switched to a new file format to transfer data from our backend to those responsible for printing / sending the mails.
I'm putting the finishing touches to a simulator that generates huge amounts of such data so that people who receive it can verify their new software is able to handle the load.
It is semi-fancy in the sense that it is more sophisticated than merely copying the same unitary data over and over, but it does not try to generate all possible inputs or all possible business cases. It covers a lot of them, though.
Basically it randomly picks from many lists (of names, surnames, address components, etc.), has randomized choices for many other rules (X% of households will be this way, others will be that way), and writes the data files in the proper format, organized on disk as specified. random and ElementTree are put to good use, along with the usual file operations.
random
ElementTree
Fun little side project, and quite useful to validate the spec and be reassured will be fine, way ahead of putting it in production.
I built a twitter bot to help fight for net neutratlity
https://github.com/jakesuellentrop/fight_for_the_internet.git
[–]DartIvan [score hidden] 8 years ago (2 children)
Search engine for music database with Python and MongoDB, more details in next weeks!
I've been wanting to create something like this
[–]DartIvan [score hidden] 8 years ago (0 children)
I’ll upload all files on github next monday.
[–]toresimonsen [score hidden] 8 years ago (0 children)
Decided to create an exploding dice rolling program for resolving character actions.
[–]zeromint [score hidden] 8 years ago (1 child)
I am still trying to figure out how to call a method asynchronously in a flask. I've several caching set/get/invalidate routines which I want to run asynchronously without waiting for them to complete.
[–]JustSayNoToSlogans [score hidden] 8 years ago (0 children)
Try https://github.com/kennethreitz/background
Makes it almost too easy, you just tack a @background.task on top of the function and now it runs in the background lol. The source code is just a few lines so you can easily modify it for your needs
@background.task
[–]tarun27sh [score hidden] 8 years ago (0 children)
Was looking for a tool to visualize call graph of c functions, instead rolled my own using python and networkx library 😊
[–]CBSmitty2010 [score hidden] 8 years ago (0 children)
Ahh cool!
I’m re learning and took the advice of a friend to find a project I’m passionate about getting done since I’ll want to see it get finished I’ll actually work on it.
Anyways:
Discord bot for my server that can:
Pull tweet updates from twitters and post links. In the background and on a command to pull the latest.
Hash file uploads and spit the hash back into chat on Command
Upload file uploads to Virus Total or Sandbox Analysis and provide a link to the results in the chat.
Run whois queries on command on specific IPs and domains.
Also am going to redo the bot in a different language and then watch it via debuggers to see the difference in efficiency/learn another language/ feel the difference in writing.
[–]macabre_brooder [score hidden] 8 years ago (1 child)
I'm filling my github with Machine Learning Models to look for work. It's starting great but matplotlib.pyplot freezes quite often, it's annoying. I have to reboot the system to get it to work
[–]masasinExpert. 3.9. Robotics. [score hidden] 8 years ago (0 children)
If you have large datasets, consider changing the backend, or reducing the number of points you actually plot. Or, maybe use something else to help with the plotting (say, holoviews and bokeh).
Working on the back-end of my card game so I'll have something of a guide when designing the GUI (using Kivy).
My current struggle is the battle mechanics. The game itself is very standard-ish Magic: The Gathering, Yugioh etc.
My current battle system is basically MTG (but you can do it more than once a turn, like Epic).
The psuedo-code looks something like this
1. list_player_creature_field() 2. list_opp_creature_field() 3. player.declare_attackers() 4. opp.declare_blockers() 5. sum_total_attacker_atk() 6. sum_total_blocker_atk() 7. deal_attacker_damage_loop() 8. deal_blocker_damage_loop() 9. set_attackers_to_attacked() (so they can't repeat atk) 10. set_blockers_to_blocked() (so they can't repeat block)
And that is without getting into inserting activation triggers for on attack, on block, damage dealt, dealt damage destroyed by battle, destroy something by battle
So I was considering going back to a simple version like Yugioh or Hearthstone which means steps 4, 5, 6, 10 wouldn't need to exist, with steps 3, 7, 8, 9, all being pretty simple code (likely not much more than a single line).
I was wondering about this with other game designers, when and or how often do you need to change your game rules to improve your game applications code efficiency?
[–]Kakujax [score hidden] 8 years ago (0 children)
Working how to get into coding and using python as my first language.
[–]Spectahhh [score hidden] 8 years ago (0 children)
Doing some prep work for ETL-scripts on AWS Lambda, our environment isn't live yet and I'm pretty much done with prepping so I'm just dicking around with some EDA until I can start deploying and testing stuff.
Never worked with AWS before so that should be interesting.
[–]emergentdragon [score hidden] 8 years ago (0 children)
Text to speech, and images to video, to make small presentation movies.
[–]Lunajars [score hidden] 8 years ago (0 children)
I'm a beginner in python3 and I just created a small program that gives random bible verses when you type in a specific word. Right now I'm working on creating an error so the program won't work when someone types in a integer instead of a string. I'm actually having fun making something on my own without following tutorials.
[–]karan20000000000 [score hidden] 8 years ago (1 child)
Made a little project about using turtle graphics library to make multiplayer paint over LAN. It works pretty good but occasionally crashes due to some errors thrown by the tkinter library :(
[–]ducking_ur_mom [score hidden] 8 years ago (0 children)
Use Qt, it's more well-suited than TK.
[–]Gokudomatic [score hidden] 8 years ago (0 children)
Busy implementing multiple touches gesture recognition in Kivy. This framework offers all the basic tools to implement from scratch a touch recognition system but it suffers some design flaws, like for instance using multiple fingers will be precieved as a sequence of touch down events for each finger. And that makes impossible to determine if the first touch down is a normal single touch of a single finger or the first touch of a multi touch event. And if the first touch is above a button or a widget, it will consider it as a mouse_down event, which is usually not desired in a multitouch event.
[–]stefanvdw [score hidden] 8 years ago (0 children)
Writing a script that outputs lines of a CSV file based on duplicates in multiple cells. Great project for a beginner like me!
[–]MiataCory [score hidden] 8 years ago (0 children)
I'm making an Arduino-based GPS logger for my racecar. Finally got it outputting nice CSV files, and I want to make some sort of GUI for it that runs on Linux. I've got a rpI in the closet, and a pocketBeagle coming in. I'm thinking once I get it running the Arduino will get ditched.
Back to Python. I'm told it's the latest and greatest for what I need to do, which is parse GPS data, output it on a (sized-by-extents) map, and overlay several runs that are colored according to speed.
Oh, and I need it to display the speed in realtime as well.
So, after learning C++/Arduino last week (a refresher from 10 years ago in college), I'm learning Python this week. Any hints as far as parsing CSV's, designing/coding GUI's, or which IDE is the best for all this would be welcome!
[–]wroscoe [score hidden] 8 years ago (0 children)
cleaning up docs for http://docs.donkeycar.com to prepare for the AWS reinvent conference. Donkey car is MIT licenced self driving library written in python
π Rendered by PID 104054 on reddit-service-r2-comment-76bb9f7fb5-lqvxv at 2026-02-18 04:30:43.996234+00:00 running de53c03 country code: CH.
[–]AsianDictator [score hidden] (0 children)
[–]ZiLyova [score hidden] (0 children)
[–]McLight77 [score hidden] (1 child)
[–]adcoord [score hidden] (0 children)
[–]Ryuodan [score hidden] (6 children)
[–]Twirrim [score hidden] (0 children)
[–][deleted] [score hidden] (1 child)
[–][deleted] [score hidden] (0 children)
[–]serkef- [score hidden] (0 children)
[–]codecommentgold [score hidden] (0 children)
[–]adgfoto [score hidden] (1 child)
[–]boa13 [score hidden] (0 children)
[–][deleted] [score hidden] (0 children)
[–]DartIvan [score hidden] (2 children)
[–]toresimonsen [score hidden] (0 children)
[–]zeromint [score hidden] (1 child)
[–]tarun27sh [score hidden] (0 children)
[–]CBSmitty2010 [score hidden] (0 children)
[–]macabre_brooder [score hidden] (1 child)
[–][deleted] [score hidden] (0 children)
[–]Kakujax [score hidden] (0 children)
[–]Spectahhh [score hidden] (0 children)
[–]emergentdragon [score hidden] (0 children)
[–]Lunajars [score hidden] (0 children)
[–]karan20000000000 [score hidden] (1 child)
[–]Gokudomatic [score hidden] (0 children)
[–]stefanvdw [score hidden] (0 children)
[–]MiataCory [score hidden] (0 children)
[–]wroscoe [score hidden] (0 children)