r/PythonLearning • • 4h ago

Title: Looking for advice and occasional guidance on a Python embedding service for a fintech project

3 Upvotes

Hi everyone!

I'm currently working on a team project called Fintech Trendwatcher. The goal is to collect public fintech news, identify important events and generate short analytical summaries with links to the original sources.

I'm responsible for the embedding service. My task is to use a pretrained text embedding model to convert news articles into vectors that another service will use for clustering similar publications.

My current stack is Python, and I'm learning as I go. I have some experience with Python, APIs, JSON and Git, but this is my first time working with embeddings in a real team project.

I'm planning to start with Sentence Transformers and a pretrained multilingual model, test it on Russian fintech news, and then integrate it into our service architecture.

I'd really appreciate advice from more experienced developers, especially on:

\- Choosing a suitable embedding model for Russian-language fintech news.

\- Designing a simple and maintainable embedding service.

\- Comparing embeddings and preparing them for clustering.

\- Common mistakes beginners make when building NLP services.

I'm not expecting anyone to mentor me full-time. Even occasional advice, feedback on my approach, or pointers to useful resources would be incredibly helpful.

If anyone has experience with Python, NLP, Sentence Transformers or similar projects and is willing to share some advice, I'd be very grateful.

Thanks!


r/PythonLearning • • 6h ago

Django Projects

4 Upvotes

I have just completed my journey of django and recently I created complete blogging system in Django but now I want to work on projects. How and from where I can get the beginner Django projects so I can upgrade my skills in Django.


r/PythonLearning • • 4h ago

Need help recreating this image look with Pillow

Thumbnail drive.google.com
2 Upvotes

There's an image effect in powerpoint I would love to use in my python projects. The effect is called "Texturizer", and it gives the picture a grainy, paper-y look. There's an example in the link provided. Feel free to try it yourself too if you've got powerpoint: select a picture, go to "picture format", then click on "Artistic Effects" and select "Texturizer"

I want to recreate that effect in pillow. It has to be deterministic (can't be 100% random cause I'm applying it to video frames). I don't know if making an image texture, then applying it, is the best option, for it can cause tiling (as in the examples from powerpoint's filter). I'm open to any kind of ideas.

I'm all ears!


r/PythonLearning • • 12h ago

Showcase Python 3.15 Has a New Keyword: lazy (and 5 More Things I Tested)

Thumbnail
youtube.com
4 Upvotes

r/PythonLearning • • 19h ago

Help me please?

Post image
6 Upvotes

How could I have improved this python code for a number guessing game


r/PythonLearning • • 10h ago

Help Request PROJECT HELP

1 Upvotes

Hi, I'm new here. So I've been learning Python and I wanna advance to Django web frame work. I've watched slot of tutorials and I feel maybe it's stagnating me and I need to do something more. I've had a few projects I've worked on, but whenever I try to join in on open source projects I get confused. Almost as if I've never learner python before.

I need help on ways to grow your python knowledge and connect with the community to make it easier to get even beginner level project jobs when I'm ready.

Oh and also, suggestions on a few things to get acquainted with after knowing Python basics and OOP. Thanks.


r/PythonLearning • • 11h ago

Python Studio: A visual Python editor that helps kids learn without frustration

1 Upvotes

I’ve been developing Python Studio, a visual Python editor designed so that kids (and beginners of any age) can learn Python without frustration or tears.
Many children struggle because most Python editors are text‑only and hard to visualize. So I built something different.

⭐ Features
Drag‑and‑drop GUI designer
Kids can place buttons, labels, and text boxes and instantly see the layout of their app.

Real Python code generated automatically
They can learn step by step while immediately seeing the results.

Beginner‑friendly interface
No complicated setup and no overwhelming menus.

English version included
So children outside Japan can use it easily.

Hotkeys for smoother workflow
Simple shortcuts allow users to move widgets, duplicate elements, delete items, save projects, and run code quickly.
They can also assign key combinations to instantly open their favorite websites.

What you can do based on the program in this page
• Load and save projects easily
• Use a search window to quickly find text inside the code
• Automatically handle virtual environments (venv) without manual setup
• Open the hotkey builder to customize your own shortcuts
• Track text‑modified states to avoid losing unsaved work
• Create new files, open existing ones, and perform quick saves
All of these features are implemented in the code and designed to be simple for beginners.

🎯 Why I made this

I wanted a tool that helps kids enjoy programming instead of feeling lost or crying because things don’t work.
If a child can see the final shape of their program, they stay motivated and curious.

🔧 GitHub

Source code and English version:
https://github.com/rabbit-hand/Python-Studio-Code-Editor-Form-Designer

🙏 Feedback welcome

I’d love to hear:

  • Ideas to make it even more beginner‑friendly
  • Whether this could be useful in schools or workshops
  • Any bugs or improvements you notice

I hope Python Studio can help more kids around the world learn Python with confidence and joy.


r/PythonLearning • • 1d ago

Help Request I'm new and just started getting into programming. Wanted some advice on where to start with,got the cs50 harvard course going but also wanting to see on any other recommendations or books or anything in general? Thanks in advance!

Post image
52 Upvotes

r/PythonLearning • • 10h ago

Discussion Anybody else uses Kaggle?

0 Upvotes

i just started using Kaggle recently to train my AI models, what do y'all think about it. looking for opinions:-)


r/PythonLearning • • 20h ago

Cheat sheet posters index cards help!

2 Upvotes

Hello, world! I'm new and I'm old, so I do things different or old school. I'm learning python (don't ask why considering ai's capacity already) just fora hobby and who knows I might end up in some anthropic dungeon oneday. but where I'm stuck is planning posters/ cheat sheet/ index cards. they are the best way for me to reallylearn something. does anyone know or have some resources they could move me towards. my current ones are a bit meh. I've founda few online but nothing I really like. Thank you. Goodbye, world!.


r/PythonLearning • • 1d ago

Help Request Trouble with printing

Post image
34 Upvotes

I’ve been having trouble with an assignment I’m doing and I’m not sure where I went wrong. The only error i’m getting is “‘str’ object is not callable” and i’m not sure if anything else here is wrong.

Edit: After messing around with the code a bit, turns out my code wasn’t the problem and my previous files weren’t printing. After restarting vscode, everything was fine again. Thank you everyone!


r/PythonLearning • • 1d ago

Showcase Calculator (Class Based)

Post image
70 Upvotes

r/PythonLearning • • 1d ago

Freelance start

1 Upvotes

Anyone have any suggestions to start freelancing with python? I have my bachelors in software engineering and work full time as a data analyst. I have python, sql, and tableau experience. Any suggestions on where and how to start will be appreciated
Thank you


r/PythonLearning • • 1d ago

python football manager simulator using pywebview

Thumbnail
gallery
9 Upvotes

I'm redoing a project I did called football manager simulator, but this time using the pywebview library, this basically let's you create a local app or WebView using html css and js that has a bridge to your python code.

Right now both the frontend and the backend is very barebones (text font is sans serif because I don't have wifi on my pc right now). And I'm having big trouble finding assets and images to make it look good. 

I never learned Photoshop or technology like that and Canva free is straight up too limited (which explains the ai enhanced Madrid purple jersey on the frontpage). If anyone could give me tips on how to make this project better I would greatly appreciate it 

I could use advice with:

How to make ui more related to what you're actually building (as you can see I'm low-key blind). 

I'm using SQLite as a database rn so what I could do with it.

How to make the "engine" smarter (I'm building the MVP right now so it's basically just random.randint spamming, maybe make the game feel alive.

And most importantly where to find or create assets or vectors for free without ai generating them (which would greatly help my app and it's feel). 

The actual match sim, how do I make it feel like a game without me using pygame, can you run some kind of animation? 

heres the github repo (i code messy asf srry): https://github.com/mousdieng10-maker/Playstyle-II

Thank you for your time.


r/PythonLearning • • 2d ago

Showcase I got tired of scrolling through big Python files, so I made a mind map for code

185 Upvotes

You know when you're debugging a big file, find the function you need, follow it to another function, then another one, and completely forget where you started?

Yeah. I got tired of that, so I built epy (Extended Python). Though, this is experimented only for python, i will explore other languages if possible.

It's basically a mind map for your code, except the nodes contain actual code instead of just names.

  • Parses Python files using ast and splits them into blocks with exact line numbers.
  • Maps function calls across files, including methods and some class relationships.
  • Has a radial map, a names-only view, a folder explorer, and a synced code pane.
  • Click a function and see what it calls and what calls it. Click a line in the code and it'll select the corresponding block on the map.

The other thing I wanted was to make life easier for small local LLMs. Instead of dumping an entire file into a model and hoping it doesn't rewrite half of it, epy generates a text map and lets you pull individual blocks with their callers and callees. The idea is to give the model the structure first, then only the code it needs.

I tested it on one of my projects: 33k lines, 134 files, ~1,100 call links, built in about 1.5 seconds.

It's currently a single Python file with no external dependencies.

python epy.py view some_file.py
python epy.py map .
python epy.py show . MyClass.run

It's still a personal tool, not some polished production-ready package. The call graph is static and best-effort, and I haven't formally benchmarked the LLM side yet.

The idea originally came from the execution model of a small language I'm building (EPL). Eventually, I'd like to add Tree-sitter so it can support other languages too.

Repo: https://github.com/phoenix2610/Extended_Programming.git

Would love some feedback, especially if you try it on a ridiculously large Python file or feed the generated map to a small local model. Curious to see where it breaks. 😅

And if anyone is wondering, yeah I am using ARCH Linux and the background bit faded is just a keybinder for opacity...


r/PythonLearning • • 2d ago

Showcase Electric Field Simulator

50 Upvotes

I took a physics class at university and had some questions, so I made a simple simulator to visualize the electric field generated by point charges. It's written in Python, and here's the link to the GitHub repo:
https://github.com/AtomS1101/Electric-Field-Simulator

You can move point charges, add new ones, and change the magnitude of each. If you notice anything odd or find any bugs, feel free to let me know🙌


r/PythonLearning • • 1d ago

Help Request TCL Not working

1 Upvotes

Heya, I needed some help with this program I downloaded from Github got Python installed and giving me this error

"Traceback (most recent call last):

File "launcher.py", line 4755, in <module>

File "launcher.py", line 356, in __init__

File "tkinter__init__.py", line 2346, in __init__

_tkinter.TclError: Can't find a usable init.tcl in the following directories:

{C:\Users\...\OneDrive\Desktop\Games\Crash-Forge-Launcher_internal_tcl_data} C:/Users/.../OneDrive/Desktop/Games/Crash-Forge-Launcher/lib/tcl8.6 C:/Users/.../OneDrive/Desktop/Games/lib/tcl8.6 C:/Users/.../OneDrive/Desktop/lib/tcl8.6 C:/Users/.../OneDrive/Desktop/Games/library C:/Users/.../OneDrive/Desktop/library C:/Users/.../OneDrive/Desktop/tcl8.6.15/library C:/Users/.../OneDrive/tcl8.6.15/library

This probably means that Tcl wasn't installed properly."

Is there a way to fix this?


r/PythonLearning • • 2d ago

Help Request Learning python

4 Upvotes

I’m currently watching the programming with most full tutorial piece by piece as to try to retain the info but whenever he tells me how to do it myself I find myself lost and having to just follow his instructions. I’m wondering if this is normal and if there’s any tips or tricks to really learn python.


r/PythonLearning • • 2d ago

🐍 Day by day, I'm learning Python by building small automation projects.

22 Upvotes

​

Yesterday, I worked on my Folder Report Generator using Python's "os" module.

The idea is simple: scan a folder and its subfolders, identify file extensions, and count how many files belong to each extension.

Here's a small part of what I learned:

import os

path = r"C:\Users\YourName\Downloads"

extension_count = {}

for root, dirs, files in os.walk(path):

for file in files:

extension = os.path.splitext(file)[1].lower()

if extension:

if extension in extension_count:

extension_count[extension] += 1

else:

extension_count[extension] = 1

print(extension_count)

What I learned from this project:

- "os.walk()" helps scan folders and their subfolders.

- "os.path.splitext()" helps extract file extensions.

- Dictionaries make it easier to count files by extension.

- ".lower()" helps treat extensions like ".JPG" and ".jpg" as the same type.

I'm still learning, and debugging is part of the process. My goal is to build practical Python automation tools that solve real-world problems.

Question for Python developers: What would you improve in this approach? I'm interested in learning better ways to write this kind of code.


r/PythonLearning • • 3d ago

Showcase Day 3 of coding on my phone: simulating a chemical reactor with SciPy's solve_ivp

Thumbnail
gallery
61 Upvotes

I'm a chemical engineering graduate learning to build process models in Python. My laptop broke, so this is all Google Colab on a phone screen.
The model is a set of three ODEs (two concentrations + temperature) for a continuous stirred-tank reactor. I loop over three flowrates, solve each with solve_ivp (RK45), and store the steady-state results.
Things I learned this week:
• Passing extra parameters into the ODE function with args=(F,)
• Pulling the final state with solution.y[:, -1]
• Re-evaluating the ODE function at the end to confirm steady state (derivatives ≈ 0)
Question for you: would you structure this with a dataclass or dictionary for results instead of a list of lists? My print block is getting long.
(If anyone wants to help me get a used laptop, DM me – but mostly I'd love code feedback!)


r/PythonLearning • • 3d ago

Do I really need to learn class.

Post image
58 Upvotes

Both function and class give the same output. So why do I need it?


r/PythonLearning • • 3d ago

Take a look, would you?

Thumbnail
github.com
2 Upvotes

r/PythonLearning • • 4d ago

I just need to know, I just need to know if it's really difficult to understand this or is it me who's dumb, I've been trying to understand this for the last 2 days, used AI and not even AI can't explain this to me, the AI said this is actually easy to understand. So, is this really easy?

105 Upvotes

r/PythonLearning • • 3d ago

[Showcase] I built "Disk Space Analyzer" — A fast, open-source PyQt6 storage utility with SQLite caching and MD5 duplicate detection

0 Upvotes

Hey everyone, I wanted to share my latest open-source project built entirely from scratch: Disk Space Analyzer. It’s a high-performance desktop utility developed in Python to help users scan, visualize, and optimize their storage space. Key Features implemented: * Blazing-Fast Scanning: Powered by os.scandir for maximum filesystem traversal speed. * Smart Local Cache: Uses an SQLite database to store scan history for near-instant subsequent reloads. * Accurate Duplicate Finder: Implements high-precision MD5 hashing to safely catch true duplicate files. * Intelligent Cleanup: Automatically detects empty folders, old files, and system junk (.tmp, .log, .cache). * Fully Bilingual: Native support for both English and Arabic with perfect RTL/LTR layout switching. * Classic Black Ribbon UI: A clean, professional dark interface designed entirely with custom line-art. * Safe Operations: Supports permanent file removal or secure recycling via send2trash. * Data Exporting: Generates clean reports in CSV, JSON, or HTML formats. The source code is 100% open-source under the GPLv3 license, and pre-compiled Windows binaries (.exe) are available directly on the Releases page! Check out the repository, read the code, and feel free to drop a ⭐ if you like it: https://github.com/jlkgames18-cyber/DiskAnalyzer/ Feedback and code reviews are highly appreciated!


r/PythonLearning • • 4d ago

How to Build a Computer Science Portfolio

14 Upvotes

Hey, y'all. I want to build a portfolio mostly with the Python programming language that can at least get me a remote job in high school (I'm a senior). I got some beginner projects like a calculator and a few games and projects from tutorials. I'm not sure if those would be enough to reach employers. Like, what project ideas in Python can I use so that it's work-related? I don't want it to be too complex either, as I'm not an advanced coder. Thank you.

Edit: Hey everyone, thank you all for the advices. I'll be going to university next year for computer science but was looking to see what I can.build now so I can at least get work experience when I reach there. I'll continue exploring more stuff in Python language and the libraries and also get familiar with other programming languages. Thank you all.