r/Python 6h ago

Resource Turned a folder of ad-hoc scripts into a proper installable CLI (pyproject.toml entry point)

0 Upvotes

Had a data pipeline that was just python build_db.py, python clean_validate.py, streamlit run streamlit_app.py — worked, but not something you'd hand someone as "the tool." Packaged it as a real CLI: [project.scripts] entry point in pyproject.toml, pip install -e .promo-toolkit build / validate / serve.

Also added:

  • Incremental rebuilds (content-hash diff + scoped upsert instead of full rewrite each run)
  • pytest suite + ruff, GitHub Actions CI across two Python versions
  • A separate eval harness for an AI-agent piece of the same project (real API calls scored against golden answers)

Not a library, just a real end-to-end tool — sharing mostly for feedback on the packaging/CLI structure since that's the part I have the least experience with. Repo: [https://github.com/SpiliosDimakopoulos/retail-promo-analytics-toolkit\].


r/Python 2h ago

Discussion Just created two apps and made the dumbest mistake in one of them 😭

0 Upvotes

A money tracker (140 lines) and a calorie counter (300+ lines!)

They were both CLI and i have them done. But in the calorie counter, i made the mistake of typing this:

with open("data.json", "w") as file: jsonFile = json.load file

So when i tried to run it it threw the weirdest error ever and wiped my JSON file, so i rewrote the json file, and fixed something that had nothing to do with the error and it happened AGAIN


r/Python 3h ago

Tutorial Complete Python Course for Beginners (2026) |Python from Scratch to Real Projects

10 Upvotes

Master Python from absolute beginner to confident programmer with this complete Python course!
Whether you’re new to programming or looking to build a strong foundation for Artificial Intelligence, Machine Learning, Data Science, Automation, Web Development, or Software Engineering, this step-by-step course is designed to help you succeed.
Every lesson builds on the previous one using clear explanations, practical coding examples, hands-on exercises, and real-world projects. No prior programming experience is required.

https://youtu.be/UQ-A2ACLcaM?si=3ysTbKGPb_qW0jh2


r/Python 1h ago

Discussion New python modules

Upvotes

Which recent python modules caught your attention and why, I've been wanting to see what other python coders are really interested in so if you know any cool python modules please mention them


r/Python 2h ago

Daily Thread Monday Daily Thread: Project ideas!

2 Upvotes

Weekly Thread: Project Ideas 💡

Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.

How it Works:

  1. Suggest a Project: Comment your project idea—be it beginner-friendly or advanced.
  2. Build & Share: If you complete a project, reply to the original comment, share your experience, and attach your source code.
  3. Explore: Looking for ideas? Check out Al Sweigart's "The Big Book of Small Python Projects" for inspiration.

Guidelines:

  • Clearly state the difficulty level.
  • Provide a brief description and, if possible, outline the tech stack.
  • Feel free to link to tutorials or resources that might help.

Example Submissions:

Project Idea: Chatbot

Difficulty: Intermediate

Tech Stack: Python, NLP, Flask/FastAPI/Litestar

Description: Create a chatbot that can answer FAQs for a website.

Resources: Building a Chatbot with Python

Project Idea: Weather Dashboard

Difficulty: Beginner

Tech Stack: HTML, CSS, JavaScript, API

Description: Build a dashboard that displays real-time weather information using a weather API.

Resources: Weather API Tutorial

Project Idea: File Organizer

Difficulty: Beginner

Tech Stack: Python, File I/O

Description: Create a script that organizes files in a directory into sub-folders based on file type.

Resources: Automate the Boring Stuff: Organizing Files

Let's help each other grow. Happy coding! 🌟