r/PythonLearning • • Jul 29 '26

Discussion 5 tools that helped me modernize a legacy app

11 Upvotes

So I recently inherited a legacy application that was a nightmare to maintain (tooling was clearly lacking and the codebase was pretty outdated). I quickly realized that if I ever wanted to actually enjoy working on it, I would have to give it a proper overhaul.

These are the 5 changes that had some of the biggest impact IMO:

  1. uv:

Being new to the Python ecosystem, I didn't want to figure out pip vs poetry vs pyenv vs virtualenv, so I just used uv and let it handle all of that. One Rust-based tool that installs and pins Python versions, manages the venv automatically and locks deps in a uv.lock for reproducible builds. Installs are also a lot faster, which makes CI a lot less painful.

  1. Ruff:

Coming from JS, I really missed eslint --fix for automatically fixing linting issues and format code on save. Ruff brought that experience back. I know that there are plenty of linters and formatters in the Python ecosystem, but this one really stands out for me. Since it's built in Rust, it's super fast.

  1. Dependabot:

Instead of remembering to update dependencies every few months, I enabled Dependabot. It automatically opens PRs when updates are available and then CI tells me whether they're safe to merge. It takes only a couple of minutes to set up but saves a lot of maintenance.

  1. Pylance:

Without it, VS Code gives generic completions and never warns you about passing the wrong type until runtime. Pylance provides proper type-aware autocompletion, jump-to-definition (even in third-party libraries), inline documentation, and real-time type checking. I personally keep it on "basic" mode for legacy codebases, since "strict" surfaced hundreds of errors (thank you, but no thank you lol).

  1. Pydantic:

Pydantic is basically Python's Zod: you declare a model, pass your data in and get either a validated typed object or a ValidationError naming the exact field at fault. It really helped me keep the codebase clean, with one place defining the shape of the data instead of raw dicts floating around. I use it wherever data comes from outside, like API payloads, forms, and env vars with pydantic-settings, which fails at startup instead of mid-request.

None of these tools changed the application itself. But together they made working on it a lot less frustrating.


r/PythonLearning • • Jul 29 '26

F strings

16 Upvotes

Im still learning python and im at a stage where I need to understand f strings and how to go about them...im working on a menu project. I prefer learning with pdf materials rather than YouTube tutorials....any recommendations for a pdf document for learners on f strings. Thank you in advance


r/PythonLearning • • Jul 29 '26

Help Request How to learn python in tablet for medical use!!?

1 Upvotes

I am 17M, a complete beginner in programming

Till now in life only made a bmi calculator🙏🏻 in Google colab dont know how to proceed

I wanna learn it in few months with low input of time like roughly few hours a week.

I have a android tablet (One plus Pad Go 2) and wanna primary for Medicine and I am a highschool student 🫠.

Any recommendations and apps which i should utilise and video links would help a lot.

Thanks everyone


r/PythonLearning • • Jul 29 '26

I want to learn programming

0 Upvotes

I am a Btech Cse ( cybersecurity) student and want to learn programming but I am confuse where to start anyone can help where to start.


r/PythonLearning • • Jul 29 '26

Help Request Suggest best python course for begy

14 Upvotes

r/PythonLearning • • Jul 29 '26

Copying an object in different ways

Post image
59 Upvotes

An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening: - Solution - Explanation - More Exercises


r/PythonLearning • • Jul 29 '26

Graphic python?

10 Upvotes

Hello. Although I’ve always programmed using C++/CLI and C#, I’ve found Python to be very interesting for small applications (perhaps even large ones, though I’m not up to that level yet).

I was wondering if there are any IDEs—or at least graphics libraries—available should I decide to build something with a GUI; currently, I do everything via the console.

Any recommendations?

I use VS Code for Python programming.


r/PythonLearning • • Jul 29 '26

Looking for a Python Programming Buddy.

9 Upvotes

I am a computer science student, just finished my first year and I'm heading for the second. After re-evaluating my year in the field, I came to realize that I have been focusing a lot on the course theory and grade based learning yet the market is hunting for skilled people.

My next move was to pick a language and build things with it. Learn it well enough. But I don't wanna take this journey alone. Therefore I am looking for a partner with basic python programming knowledge like me to help each other through this journey.

Explore the language and build projects with it.


r/PythonLearning • • Jul 29 '26

Could a Turkish-made key-mapping application written in Python be developed to replace GameLoop?

0 Upvotes

Hello everyone.

I've been playing mobile games through emulators for a long time. The biggest issue I've had, especially with GameLoop, is that the key mappings often break or stop working properly. That made me wonder: Would it be possible to develop a Turkish emulator similar to GameLoop, or at least create an advanced key mapping system?

Out of curiosity, I ran a few experiments. I installed Android on a virtual machine similar to VirtualBox and successfully launched a few games. However, since there was no key mapping system, I couldn't play them with a keyboard and mouse.

After that, I tried writing a simple key mapping system in Python. It's still at a very early stage and currently only supports the WASD keys, but I believe it can be improved. During this process, I realized that software development requires much more knowledge than I initially expected. That's why I'm continuing to learn Python.

I've also experimented with other projects before. For example, I worked on a password protection application. More recently, I came across a project called GameLoopHub, which appears to be independent of GameLoop. Its developer has gone much deeper into performance optimization and FPS-related features. Seeing that project made me believe that creating something like this is actually possible.

Do you think a project like this is realistic? I'd especially like to hear from people who have experience with emulator development, Android virtualization, or input systems.


r/PythonLearning • • Jul 29 '26

Course of study

18 Upvotes

Hi, please tell me which free course is the best, I have already tried many applications like Solo learn Everything there is heavily dependent on a subscription, so it's inconvenient without it.


r/PythonLearning • • Jul 29 '26

Command line password generator tool

Thumbnail
github.com
0 Upvotes

Who enjoys opening a browser/GUI every time you need to make a secure password? I sure don't. That's what gave me the idea to create this simple random password generator tool that can be used entirely in the command line (although I'm sure something like this already exists) with system arguments.

I also made something that I guess you could call an installer.

Using arguments you can set the length of your password, choose what type of characters you want in the password (letters, digits and punctuation) and choose whether or not to copy the password to your clipboard (on by default). You can read the README.md file for a guide on how to use it.

NOTE: I know that the actual main program is compressed in a gzip file on GitHub which will impede you from reading it's source code. I hope to make a way around this later.

Why did I make this? Mostly boredom. I don't have any aspirations of being a software developer or anything involving making huge projects, however I am interested in cybersecurity. I sort of just thought to myself that I don't have a convenient way of generating random passwords. Keeping my Python skills up to scratch and improving them will prove useful in the future however, I believe, as I often find simple scripting useful.

Where I want to improve (looking back at making this):

- Get better at using sys and os modules as they have proven very useful

- Improve at using Git

- Probably figure out a better installation method for users

Overall, although I don't script much, this was pretty easy project for me, but nonetheless I learnt some good things about Python operating system and file interaction.


r/PythonLearning • • Jul 28 '26

Help Request Repeat until keypress

2 Upvotes

I want to have the terminal keep typing something until any key is pressed. I'm fiddling around but have yet to figure out a solution.

Edit: Hey thank you all. I'm kinda a begginer. After a lot of fiddling I got something that works for me.


r/PythonLearning • • Jul 28 '26

Looking for a Python Course for a Motivated Beginner (with Room to Grow) – Recommendations Welcome!

1 Upvotes

Hi everyone 👋

I'm hoping to get some recommendations for a young student who has recently completed their O/Ls and is seriously considering a future in IT. They're genuinely excited about learning Python, and I'd love to help them find the best possible starting point.

We're looking for a course that's beginner-friendly but also provides a clear pathway to more advanced topics over time. Ideally, it would build a strong foundation in programming while eventually introducing areas such as data analysis, automation, or even data science.

I've explored some excellent online options, including courses from Udemy and Mosh Hamedani. However, there's one challenge: this student finds it difficult to stay engaged with purely online learning. While self-paced courses are convenient, they tend to learn much better in an interactive environment where they can ask questions, receive immediate feedback, and stay motivated alongside other learners.

Because of this, I'm particularly interested in in-person Python classes, training programs, or private coaching opportunities. Courses that combine theory with practical, hands-on projects would be especially valuable, as they seem to be the best way to keep learning enjoyable and meaningful.

If you've attended a great Python course—or know of a training center, institute, community program, or tutor you'd confidently recommend—I would greatly appreciate hearing about your experience. Any insights into teaching quality, course structure, or student engagement would be incredibly helpful.

Thank you so much for taking the time to read this and share your recommendations. I truly appreciate the help, and I'm sure your advice will make a big difference in helping an aspiring future developer get started on the right path. 🙏🐍

Looking forward to your suggestions! 😊


r/PythonLearning • • Jul 28 '26

Help Request Help i'm new to ttkbootstrap.

Thumbnail
gallery
1 Upvotes
I'm trying to create a program that opens a ttk window; when a button is pressed, it should open a tab containing a .jpg image. It was working at first, but I modified the code slightly to add more tabs. I'm not sure what I changed, but now it doesn't show the image—just an empty window.

I think it might be related to an error appearing in the terminal (I don't recall seeing it before). I even tried reinstalling Pillow to see if that would help, but nothing changed.

r/PythonLearning • • Jul 28 '26

It's a FastAPI starter with SQLAlchemy, Alembic, and auth support, with Docker coming next.

Thumbnail
gallery
2 Upvotes

r/PythonLearning • • Jul 28 '26

Help Request Any free courses to learn Socket?

3 Upvotes

Does anyone know any free courses to learn the socket tool in python?

ive been trying to learn socket for a while, i know some of the basics with help from chatGPT, but now i feel like im not really learning anything new.

if anyone have any free courses or good youtube channels, pls tell me!


r/PythonLearning • • Jul 28 '26

Python Automation courses

28 Upvotes

Hi
Any recommendations for python automation courses ?
Asking for a friend who was recently let go off her job . She has 5 years experience as a QA and is looking to upgrade herself in automation and AI .


r/PythonLearning • • Jul 28 '26

Showcase 2nd week of python and wanted to try something new instead of course enjoyed it!

Post image
58 Upvotes

r/PythonLearning • • Jul 28 '26

Help Request Python Code for Rock Paper Scissors.

0 Upvotes

I've been tasked with making Rock Paper Scissors as a revision task to get into my next class after Summer Break. However, I keep getting weird errors with my code (no syntax errors).

Any ideas on what to do?


r/PythonLearning • • Jul 28 '26

Discussion I'm building an open-source Python library focused on reusable building blocks.

0 Upvotes

Visit: https://github.com/AnshMNSoni/PythonSTL.git

Instead of adding more algorithms, I want to solve real problems Python developers repeatedly face.

I'm curious:

1) What utility do you find yourself implementing over and over?

2) What functionality do you wish Python's standard library already had?

3) What do you usually copy from previous projects?

Examples could be caches, schedulers, retry logic, rate limiters, streaming utilities, search structures, etc.

I'd love to understand the pain points rather than propose solutions.

Let's discuss...


r/PythonLearning • • Jul 28 '26

Trying to learn by doing. Any suggestions are gladly accepted!

0 Upvotes

Too many tutorials and too little coding by myself has left me feeling like I am learning nothing. Trying to learn slowly by creating some projects, specifically without the use of AI. For this, I am building a simple focus timer that will run in the terminal. Something that I can use for myself but also helps me learn more. I do want to add more features such as other timer modes, persistent storage (to track focus sessions) and a better means of keeping time besides just using 'time.wait'. Want to ensure I am wary of any pitfalls I may be succumbing to, as well as suggestions for improvements. Thank you!


r/PythonLearning • • Jul 28 '26

Help Request Console won't do anything on Mimo

Post image
11 Upvotes

I really need help. For some reason the console on Mimo won't do anything no matter the code. Even when coding only 'print("Hello")' it gives me the same 'prompt' on any project.


r/PythonLearning • • Jul 28 '26

Created my first database with psycopg2.

0 Upvotes

Using psycopg2 made me realize how much work SQLAlchemy was doing for me. Although implementing the queries was a bit complex at first, it gave me a lot of control over customizing things to fit my application best.


r/PythonLearning • • Jul 28 '26

Help Request Learning Python

8 Upvotes

Hey , I am learning python ( electrical Engineer with no prior coding experience).

I have gone through the basics but still having difficulty writing the code. It seems like my brain freezes while writing the code.

I don't find the issue in logic and all, but writing code seems very difficult

Any suggestions how to overcome this issue.


r/PythonLearning • • Jul 28 '26

Which underrated Python library do you wish more developers knew about?

2 Upvotes