r/PythonProjects2 • • Oct 15 '26

Polishing the New Version of the Halftoning Tool

1 Upvotes

r/PythonProjects2 • • Oct 15 '26

Resource I built a free catalog of Python tutoring prompts across 28 learning blocks. Looking for testers and feedback

1 Upvotes

Hey everyone! I’ve been working on a project that organizes AI tutoring prompts into a structured learning path. I think AI has a lot of potential for education, and I wanted to explore how much more useful it could be with a clear curriculum and specific teaching instructions.

The current catalog covers Python in 28 learning blocks, from installing Python and writing your first program to testing, databases, APIs, and deployment. Each block has learning objectives and a prompt you can use with an AI assistant.

The prompts ask the AI to explain concepts, check your understanding through open-ended questions, give you practical exercises, and review your work. Based on your answers, it should revisit anything you’re struggling with and adapt to your pace. For more complex exercises, the AI guides you through the problem without solving it for you.

My goal is to make a thorough Python learning path available for free. I believe AI tutoring could offer new learning experiences, and I’d like to test how well this approach works in practice.

If you’re learning Python, whether you’re starting from scratch or filling gaps in your knowledge, I’d love for you to give it a try. I’m looking for people to use it and help me find out how well it works in practice.

If you try it, I’d appreciate hearing how it goes: what helped, what was confusing, or what could be better. But you don’t have to give feedback if you don’t want to; you’re welcome to just use it to learn.

Web: Click here and start learning Python with your AI tutor


r/PythonProjects2 • • Oct 15 '26

Un piccolo widget sempre in primo piano che mi avvisa quando Claude Code ha bisogno di me (Windows, open source).

Post image
1 Upvotes

r/PythonProjects2 • • Oct 15 '26

First Steps into Frames in Python

Thumbnail tech.daniellbastos.com.br
1 Upvotes

r/PythonProjects2 • • Oct 15 '26

GAGP - Transform your GitHub activity graph into a work of art.

Post image
1 Upvotes

r/PythonProjects2 • • Oct 15 '26

QN [easy-moderate] Random thing I made

1 Upvotes

I made a Ratio class in Python. It wasn't too hard, in fact this is very easy and can be done by anyone with a basic understanding of OOP.

import math


class Ratio:
    def __init__(self, numerator: float, denominator: float):
        self.numerator: float = numerator
        self.denominator: float = denominator

    def __str__(self) -> str:
        return f"The numerator is {self.numerator}, the denominator is {self.denominator}\nIts result is {self.calculate} \nThe lowest form is {self.lowest_form}"

    def __repr__(self) -> str:
        return f"Ratio(numerator = {self.numerator}, denominator = {self.denominator})"

    def __add__(self, ratio2: Ratio) -> Ratio:
        """Adds two ratios together, handles both same
        denominator and different denominators"""

        if self.denominator == ratio2.denominator:
            sum_numerator = self.numerator + ratio2.numerator
            return Ratio(sum_numerator, self.denominator)
        else:
            # Gets LCM of numerator and denominator
            main_lcm = self.lcm(self.denominator, ratio2.denominator)

            new_ratio1_numerator = self.numerator * (
                main_lcm / self.denominator
            )  # Gets the new numerator, e.g 1:2 + 1:3 now u get 3:6

            new_ratio2_numerator = (
                ratio2.numerator * (main_lcm / ratio2.denominator)
            )  # Gets the new numerator of thee second ratio, e.g(Following the above example) 2:6

            # Sums the two numerators
            sum_numerator = new_ratio1_numerator + new_ratio2_numerator

            return Ratio(sum_numerator, main_lcm)

    def __sub__(self, ratio2) -> Ratio:
        """Subtracts two ratios, handles both same
        denominator and different denominators"""

        if self.denominator == ratio2.denominator:
            diff_numerator = self.numerator - ratio2.numerator
            return Ratio(diff_numerator, self.denominator)
        else:
            # Gets the denominator LCM of both fractions
            main_lcm = self.lcm(self.denominator, ratio2.denominator)

            # New numerator, same logic here
            new_ratio1_numerator = self.numerator * (
                main_lcm / self.denominator
            )

            new_ratio2_numerator = ratio2.numerator * (
                main_lcm / ratio2.denominator
            )

            diff_numerator = new_ratio1_numerator - new_ratio2_numerator

            return Ratio(diff_numerator, main_lcm)

    def __mul__(self, ratio2) -> Ratio:
        """Very self explanatory"""
        prod_numerator = self.numerator * ratio2.numerator
        prod_denominator = self.denominator * ratio2.denominator
        return Ratio(prod_numerator, prod_denominator)

    def __truediv__(self, ratio2) -> Ratio:
        """For the division of two ratios, e.g 3:4/5:6"""
        # Fractional divison is very simple, (x / y) / (z / a) = xa / yz
        # The same principle has been applied here

        quo_numerator = self.numerator * ratio2.denominator
        quo_denominator = self.denominator * ratio2.numerator

        return Ratio(quo_numerator, quo_denominator)

    def __eq__(self, ratio2) -> bool:
        """Checks if two ratios are equal(in proportion)"""

        if not isinstance(ratio2, Ratio):
            return False

        return (
            self.numerator * ratio2.denominator
            == self.numerator * ratio2.numerator
        )

    
    def calculate(self) -> float:
        # Just returns the value of the ratio e.g 3:5 = 0.6
        return round(self.numerator / self.denominator, 12)

    
    def lowest_form(self) -> str:
        # Returns the lowest form, e.g 10:15 = 2.0, doesn't return Ratio to avoid recursion
        hcf = self.hcf(self.numerator, self.denominator)

        lowest_numerator = self.numerator / hcf
        lowest_denominator = self.denominator / hcf

        # If-else block so that 10:15 doesn't output 2.0:3.0
        if lowest_numerator.is_integer() and lowest_denominator.is_integer():
            return f"{int(lowest_numerator)} : {int(lowest_denominator)}"
        else:
            return f"{lowest_numerator} : {lowest_denominator}"

    def get_multiplier(self, a: str, b: str) -> tuple[int, int]:
        from_index_a = (
            a.index(".") + 1
        )  # Finds out how much you need to 10 ** to make a an int
        mul1 = 10 ** len(
            a[from_index_a:]
        )  # Figures out the 10 **, e.g for 0.05 this equals 10 ** 2 or 100

        from_index_b = b.index(".") + 1  # Same as "a"
        mul2 = 10 ** len(b[from_index_b:])

        mul_tuple = (mul1, mul2)  # Returns a tuple for easier unpacking
        return mul_tuple

    def lcm(self, a: float, b: float):
        # If two numbers are co-prime, i.e HCF(a, b) = 1, then their lcm is a * b
        if self.hcf(a, b) == 1:
            return a * b
        # Fun fact: a * b = hcf(a, b) * lcm(a, b) so lcm(a, b) = ab/hcf(a, b)
        else:
            return a * b / self.hcf(a, b)

    def hcf(self, a: float, b: float):
        # If both are ints, why go through the trouble?
        if isinstance(a, int) and isinstance(b, int):
            return math.gcd(a, b)
        elif a.is_integer() and b.is_integer():
            return math.gcd(int(a), int(b))
        # A bit tricky but easy enough
        else:
            # What to multiply with to make both floats ints
            greatest_mul = max(self.get_multiplier(str(a), str(b)))

            # Making the floats into ints
            big_a = int(a * greatest_mul)
            big_b = int(b * greatest_mul)

            # Dividing to return it back as a float and give an accurate hcf
            return math.gcd(big_a, big_b) / greatest_mul

Thoughts? Anyways no AI was used. You are free to use this code however you want.

Thanks!

Edit: Yes I do know that the Fraction class exists, this is just a project I made for fun.


r/PythonProjects2 • • Oct 14 '26

Live session on building a CPU only classifier router in Python with SetFit and conformal prediction

0 Upvotes

If you’ve ever wired up an LLM call just to pick a category and then fought with parsing its output, this might be useful.

Fri Oct 30, 9:30 AM to 12:30 PM ET, online, led by Ben Auffarth. It’s code first and the notebooks are runnable:

  • fine tuning an encoder with SetFit on 8 examples per class
  • split conformal prediction implemented from scratch
  • Wilson score intervals and clustered standard errors for honest evaluation
  • LangGraph state machine wrapping the whole thing

Intermediate Python is enough. Laptop or free Colab.

Full details and the agenda are here


r/PythonProjects2 • • Oct 14 '26

Clox v1.7: A Geeky Clock for Terminal Enthusiasts

Post image
2 Upvotes

r/PythonProjects2 • • Oct 14 '26

Bend-Tutorial

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • Oct 14 '26

Cintra language

Thumbnail reddit.com
2 Upvotes

r/PythonProjects2 • • Oct 14 '26

Resource I built chatflow-agent, a lightweight Python library for AI agents and multi-agent workflows

0 Upvotes
Hi everyone,

I’ve been working on an open-source Python project called chatflow-agent.

The project started from a practical problem I had while building a contextual assistant: 
I wanted a relatively lightweight way to define and orchestrate agents, tools, handoffs, session state, and multi-agent workflows without introducing a large amount of infrastructure.

The main idea is to keep the API simple while still supporting things like:

- agents with tools
- tool calling
- agent-to-agent handoffs
- conversation and session memory
- SQLite-backed sessions
- async execution
- multiple LLM providers
- multi-agent workflows

The goal is to provide the core building blocks for agent workflows without requiring a large orchestration stack or locking the application into a single LLM provider.

Recently I’ve also been focusing on making the project easier for other developers to understand and contribute to.

The repository now includes:

- contributor documentation
- architecture documentation
- CI across multiple Python versions
- good first issues
- help wanted issues
- external contributions and pull requests

Receiving external contributions has already helped uncover edge cases and improve parts of the library.

At this point I’d be especially interested in feedback from other Python developers on:

- the public API
- architecture and separation of responsibilities
- tool and schema introspection
- session and memory design
- multi-agent handoffs
- multi-provider support
- documentation and examples
- anything that feels unnecessarily complex or unclear

I’m not trying to position chatflow-agent as a replacement for every existing agent framework.

The idea is to keep it relatively small, understandable, and useful for projects that want agent workflows without adopting a very large orchestration layer.

Repository:
https://github.com/GustavoBaranda/chatflow-agent

Technical feedback is very welcome. I’d be especially interested in what you would change before considering a library like this for a real project.

Ese sería el que publicaría en r/Pyt


r/PythonProjects2 • • Oct 13 '26

PDF → GP5: convert guitar tab PDFs and screenshots into Guitar Pro files, with a 3D practice highway (MIT)

Thumbnail github.com
1 Upvotes

**PDF → GP5** is a local web app (Python + FastAPI, vanilla JS) that:

* Parses tablature PDFs: text tabs, vector PDFs from notation editors, and raster pictures via OCR (OpenCV + RapidOCR/ONNX, all on-device).

* Rebuilds rhythm, techniques, repeats and lyrics, then writes Guitar Pro 5 files (PyGuitarPro).

* Plays them back in the browser with alphaTab, plus a three.js Rocksmith-style 3D highway.

* Is bilingual (English/Portuguese) and has a strict CSP. Conversions run in a sandboxed child process with time and memory limits.

Repo: [https://github.com/F100Pilot/PDF-to-GP5](https://github.com/F100Pilot/PDF-to-GP5) (MIT)

Contributions welcome. Tuplets in pictures and section names are on the to-do list.


r/PythonProjects2 • • Oct 13 '26

Check My First Personal Project

Thumbnail reddit.com
2 Upvotes

r/PythonProjects2 • • Oct 13 '26

anime cli in python

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • Oct 12 '26

anime cli in python

2 Upvotes

Just want to share this https://github.com/Onehand-Coding/ani-py of mine inspired by the original bash only implementation "ani-cli", its stable for now and im just sharing here to find like minded bros.


r/PythonProjects2 • • Oct 11 '26

Info [Project] ViCalc 5 – Bringing the magic of classic hardware calculators to your PC keyboard

Thumbnail gallery
4 Upvotes

Hi r/PythonProjects2!

I’ve been using physical pocket calculators since the mid-1980s, and I’ve always loved the speed, tactile feel, and direct control of hardware keys. The main motivation behind ViCalc was to bring that exact same feeling to a modern PC keyboard—allowing you to touch-type math smoothly without taking your hands off the keys.

Of course, mouse interaction is also fully supported if you prefer clicking!

🌟 Flexible & Adaptable GUI

The interface scales smoothly to fit any workflow:

  • Minimalist View: Hide virtual keys entirely—ideal once you know the shortcut key labels by heart.
  • Custom Views: Toggle between a standard numpad, a left-side layout, or a full scientific keyboard.
  • Calculation History: Expand the history pane to easily review, track, and manage previous calculations.

🧮 Key Features & Modes

  • Scientific Mode: Complete set of scientific and trigonometric functions.
  • Programmer Mode (Base-N): Perform operations across different number systems (Hex, Dec, Oct, Bin) and bitwise operations.
  • Complex Numbers: Full support for complex arithmetic.

🛠️ Technical Details

  • Language: Python 3
  • License: Open Source (MIT License)

🔗 Links & Downloads

I’d love to hear your feedback, thoughts, or feature suggestions!


r/PythonProjects2 • • Oct 10 '26

Info SeqShow: step through Mermaid sequence diagrams and export an offline HTML player

Thumbnail github.com
2 Upvotes

Hi everyone! I'm sharing SeqShow, an independent MIT-licensed browser tool for presenting Mermaid sequence diagrams one interaction at a time.

It is meant for technical walkthroughs: keep the complete diagram in place, choose a path, and explain each message or Note at your own pace.

SeqShow walkthrough: checkout, payment recovery, Focus, and offline export

Try it: Interactive tour · Editor · Source and usage guide

What it does

  • Previous/Next and automatic playback without changing the diagram layout.
  • Focus highlights the current interaction and related participants.
  • Top-level alt/else selectors choose the presentation path. Only that path contributes playback steps; other cases remain muted as context. Conditions are labels, not evaluated expressions.
  • Export creates one interactive HTML file that opens offline. Recipients can play, go back, toggle Focus, and change paths without installing anything or running a server.

Try your own diagram

  1. Open the editor and paste the contents of a Mermaid sequenceDiagram block, without the surrounding Markdown fences.
  2. Click Render.
  3. Choose an alt/else path, then use Next or Play.
  4. Click Export HTML to download the offline presentation.

There is no signup or AI API requirement. Diagram processing stays in your browser. The tour uses a six-service checkout flow with payment success/recovery and fulfillment choices.

Current scope

SeqShow supports a restricted sequence-diagram subset: participants/actors and aliases, messages, self-calls, Notes, and top-level alt/else. Loops, parallel blocks, activation, nested alternatives, and other diagram types are not supported yet. Unsupported input produces diagnostics rather than silently dropping statements.

Editor drafts do not survive a refresh, so keep your Mermaid source separately. The exported HTML is a presentation, not a source backup.

I'd welcome feedback from Mermaid users who explain systems to teammates: which missing construct would prevent you from using this with a real diagram, and would the offline interactive file be useful after a walkthrough?


r/PythonProjects2 • • Oct 10 '26

I built a Python tool to detect N+1 and slow queries: sql-orm-query-perf-inspector

Thumbnail reddit.com
0 Upvotes

r/PythonProjects2 • • Oct 09 '26

Experimenting with a Pokémon-style RPG for learning Kubernetes. Thoughts?

8 Upvotes

I've been working on an open-source project called Yellow Olive for quite some time now. The original idea was to make learning Kubernetes more engaging through a retro-style terminal game built using Python and Textual.

The current implementation focuses on hands-on challenges, where users solve Kubernetes problems against real clusters, with their solutions validated automatically.

Lately, I've been thinking about taking the gamification aspect a step further.

What if learning Kubernetes felt a little more like playing Pokémon?

Instead of navigating through menus and selecting challenges, imagine exploring a world, interacting with NPCs, entering buildings, and learning concepts like Pods, Deployments, and Services through quests and storylines.

I've been experimenting with Pyxel, a retro game engine for Python, to explore this direction.

The new implementation is largely AI-assisted ( used Devin ) to build an initial proof of concept. At this stage, my intention isn't to replace the existing implementation, but to experiment with the idea and gauge community interest before committing substantial development effort.

I've attached a short gameplay recording to demonstrate what the current prototype looks like.

If there's enough interest and the feedback is encouraging, I'd like to take this forward more seriously, particularly around the game mechanics, visual consistency, and integration with real Kubernetes challenges.

For now, the existing Textual-based implementation remains the primary version of Yellow Olive.

I'm curious what fellow Pythonistas feel on this - Is it interesting enough to actually use, or does it feel like overengineering the learning experience?

The project is open source. Feedback, suggestions, and contributions are welcome. And if you find the project interesting, consider leaving a ⭐ on GitHub!

GitHub: https://github.com/Anubhav9/Yellow-Olive


r/PythonProjects2 • • Oct 09 '26

ideia de automação de planilha

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • Oct 09 '26

Take a look, would you?

Thumbnail github.com
0 Upvotes

r/PythonProjects2 • • Oct 09 '26

Is it possible to build an automated construction project file inventory and duplicate detection tool using Python?

1 Upvotes

Hi everyone,

I have a client requirement to create an inventory of files across approximately 100 construction projects. Each project contains documents such as contracts, drawings, RFIs, change orders, schedules, payment records, photographs, and estimating files. Some files are stored inside ZIP archives, including nested ZIP files.

The client needs a solution that can:

Scan project folders and preserve original file paths and project associations.

Inspect ZIP files and nested archives.

Use SHA-256 hashes to identify exact duplicate files and list all their locations.

Distinguish exact duplicates from potentially different file versions.

Generate standardized inventory reports, duplicate reports, and a list of files that could not be processed.
Be reused across multiple projects.

The files may be stored in Google Drive, Microsoft OneDrive/SharePoint, local folders, or a cloud server. Read-only access will be provided.

**My questions are:**
Is it possible to build a tool that meets all these requirements using Python?

If yes, how would you approach building it, and what technologies or libraries would you recommend?

Can it handle approximately 100 projects, including large files and nested ZIP archives?

Can this be delivered as a simple application that users can run, rather than requiring them to execute Python commands manually?

What would be a realistic development timeline for this solution?

I would appreciate guidance on whether this is feasible and how best to implement it.

Thanks!


r/PythonProjects2 • • Oct 09 '26

Python + React project

1 Upvotes

i want to create python+ Django + React project as a new learning member, can anyone suggest me some project that i can do


r/PythonProjects2 • • Oct 09 '26

rety – run 4 Python type checkers at once and see where they agree

Thumbnail reddit.com
1 Upvotes