r/PythonProjects2 • • 24m ago

šŸ’” What Should We Build Together?

Thumbnail
• Upvotes

r/PythonProjects2 • • 56m ago

I built an open-source scientific modeling engine because simulations should be reproducible, not just look convincing

Post image
• Upvotes

r/PythonProjects2 • • 4h ago

Polishing the New Version of the Halftoning Tool

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/PythonProjects2 • • 5h ago

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 learning experiences comparable to paid courses, 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 • • 5h ago

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 • • 7h ago

First Steps into Frames in Python

Thumbnail tech.daniellbastos.com.br
1 Upvotes

r/PythonProjects2 • • 7h ago

My first Github Project

2 Upvotes

i have created my first github project for my college mini project.
your review will help us a lot.

Apex Driver Lab

Qubit-007/Apex-Driver-Lab
A procedural driving simulator and reinforcement-learning sandbox built with Python and PyTorch. Train a policy against generated roads and traffic, inspect its behavior in a live GUI, and resume from versioned local checkpoints.

This project is an educational simulation. It is not designed, validated, or safe for controlling real vehicles.

Capabilities


r/PythonProjects2 • • 10h ago

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

Post image
1 Upvotes

r/PythonProjects2 • • 18h ago

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 • • 19h ago

I built an open-source process anomaly detection engine using deterministic CUSUM & process-tree graphs (Zero-eBPF required for local testing)

1 Upvotes

Hey everyone,

Most process anomaly detection systems either trigger overwhelming alert fatigue or rely on black-box AI models that don't explain why an alert fired.

To study process-behavior detection from first principles, I built KERNEL SENTINEL — a Python-first research and detection platform.

Core Architecture & Engineering Highlights:

Since native eBPF requires a Linux kernel, I designed this environment-agnostic Python MVP to validate detection mathematics, streaming telemetry, and process correlation cleanly on Windows/Cross-platform first, while maintaining a strict interface for future native Linux sensor integration.


r/PythonProjects2 • • 1d ago

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 • • 1d ago

Clox v1.7: A Geeky Clock for Terminal Enthusiasts

Post image
2 Upvotes

r/PythonProjects2 • • 1d ago

Bend-Tutorial

Thumbnail
1 Upvotes

r/PythonProjects2 • • 1d ago

Cintra language

Thumbnail
2 Upvotes

r/PythonProjects2 • • 2d ago

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 • • 2d ago

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 • • 2d ago

Check My First Personal Project

Thumbnail
2 Upvotes

r/PythonProjects2 • • 2d ago

anime cli in python

Thumbnail
1 Upvotes

r/PythonProjects2 • • 3d ago

anime cli in python

1 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 • • 3d ago

Cerebro

Thumbnail
0 Upvotes

r/PythonProjects2 • • 3d ago

Number guessing game

Post image
0 Upvotes

r/PythonProjects2 • • 4d ago

Resource Spot run: run functions as you write them on the spot

1 Upvotes

I made this (I think) really cool extension for VS Code. I was looking for a way to test my code as I write them. So I connected my copilot agent with my functions by having an LLM write dummy input using one button called ā€˜spot run’, allowing me to step through my function as I write the function. No test scripts needed anymore!!

Its called ā€˜Spot Run’ and can be found in the market place of VS Code and its repo is open source. As a matter of fact, I made a start with having a mcp server for this tool. Here is the extension:

[Spot Run - VS Code Extension](https://marketplace.visualstudio.com/items?itemName=Kareemlsd.spotrun&ssr=false#overview)

Let me know what you think of it and enjoy it!


r/PythonProjects2 • • 4d ago

I built a tool that checks job/internship emails for scams. Would love your feedback!

Thumbnail
1 Upvotes

r/PythonProjects2 • • 4d ago

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

Thumbnail gallery
3 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 • • 5d ago

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](https://raw.githubusercontent.com/KunxianWang/SeqShow/main/demo/showcase.gif)

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?