r/PythonLearning • • 6h ago

I built Pyzzel: A lightweight PostgreSQL ORM for Python with SQLAlchemy-like syntax and performance close to raw Psycopg 3

0 Upvotes

Hi everyone,

I've been building Pyzzel, an open source ORM for PostgreSQL. I wanted something with SQLAlchemy's familiar feel, but simpler and closer to raw psycopg speed.

What it does

  • Active Record style: models own short sessions per operation, so there's no long-lived session to manage
  • Own SQL builder on top of psycopg and psycopg_pool
  • select() returns plain rows and get() returns objects
  • Relations and joins
  • Built-in migrations (generate, apply, status, check for drift, pull from the DB)
  • Base.transaction() shares one connection across models, with nested blocks as savepoints
  • Hidden version column for safe updates, and save() updates only changed columns
  • Core code uses only the standard library, and a plain pip install gets everything

Example

python

users = User.select(User.name, User.age).where(User.id == 1)
user = User.get(1)
with Base.transaction():
user.age = 30
user.save()

Why PostgreSQL only? Focus. Supporting one database well beats supporting five badly.

Status: Early stage, with 250+ tests passing against a real PostgreSQL. Feedback, issues and criticism are very welcome, especially on the API design.

GitHub: https://github.com/himanshubokde21/Pyzzel

PyPI: https://pypi.org/project/Pyzzel/

Happy to answer any questions!


r/PythonLearning • • 5h ago

Learning Python? Looking for 20 people to try a free personalized Python course

0 Upvotes

Hey everyone!

We’re working on a different approach to learning Python, where the course adapts to what you already know, your learning pace, and the topics you struggle with, instead of making everyone follow the same fixed curriculum.
We’re looking for 20 people who are currently learning Python or want to get started.

The course includes:

  • Structured lessons and practical coding exercises
  • Personalized learning paths based on your existing knowledge
  • Adaptive assessments based on your progress
  • AI-assisted learning support when you get stuck

Participation is completely free, with no payment or purchase required. This is an beginner friendly course.

We’ve developed this course through LearnStride and are genuinely interested in understanding whether this approach makes learning Python easier and more effective.

All we ask in return is honest feedback about your learning experience - what works, what doesn’t, and what could be improved.

If you’re interested, please leave a comment or DM me your email address so we can send you an invitation to access the course.

Thanks!
Posted with moderator permission.


r/PythonLearning • • 23h ago

School Python vs Modern Python 🤯 | If-Else vs NumPy #Shorts

Thumbnail
youtu.be
0 Upvotes

Interesting python problem


r/PythonLearning • • 14h ago

Hello everyone, in your opinion, what is the best programming project for someone starting at an intermediate level in Python?

Post image
7 Upvotes

r/PythonLearning • • 4h ago

An Assignment Reminder

2 Upvotes

Recently made another project again, this time I'll actually use cause I keep forgetting to do my work on time. But basically, it's like Google Calendar and will help automatically remind you of what work is due. It also stores data via JSON files or SQLite, depending on which script you run; more details in the README.

https://github.com/F11Fii/Task-Scheduler

Looking for suggestions on how to improve it as well :3


r/PythonLearning • • 4h ago

30 Python concept based Interview Questions - Free PDF Doc

Thumbnail
github.com
5 Upvotes

Hi All,

I have consolidated my 30 python interview Q&A series into one PDF Doc and added in my github python repo.

File link : https://github.com/grasspacad07/grassp_python/blob/main/Python_Interview_Guide_30_Questions.pdf

This covers most of the topics asked in beginner to intermediate python interviews. You could expect similar question patterns generally. Keep it handy for quick revision.

Thank you! Happy learning and coding :) All the best !


r/PythonLearning • • 8h ago

Help Request Where & how to learn python?

2 Upvotes

I'm new in python I don't know where to start and what to learn I have listened that only 20% of python is necessary my goal is AI & ML.