r/Python • u/AutoModerator • 4h ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
8
Upvotes
r/Python • u/AutoModerator • 4h ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
3
u/Total-Reasonable 4h ago
Four things I built solo, more on iurii.rogulia.fi:
1
u/Pytrithon 4h ago
Pytrithon v1.3.0
Introduction
I have already introduced Pytrithon in its own post three times on Reddit. See:
https://www.reddit.com/r/Python/comments/1q8dwsm/pytrithon_v119_graphical_petri_net_inspired_agent/ https://www.reddit.com/r/Python/comments/1nr3qvm/pytrithon_graphical_petrinet_inspired_agent/ https://www.reddit.com/r/Python/comments/1mx9w5r/graphical_petrinet_inspired_agent_oriented/
Try It Again Now
Pytrithon is entering a new and exciting phase. Now the actual benefits of Pytrithon as a platform can be seen. You can now experience Pytrithon as a distributed system through my server
pytri.ioand collaborate with me. After running theinstallscript, through running thepytrithonscript, you can directly log in to a Pytrithon-native chat and converse with me. Together I can show you how to program in Pytrithon. Even if you have tried Pytrithon before, now is a good time to give it another go, so make sure to pull the newest changes or clone anew.What My Project Does
Pytrithon is a graphical Petri net inspired agent oriented programming language based on Python. It allows writing code as a two dimensional graph of interconnected elements and separates data as Places and code as Transitions. Inter Agent communication and GUI widgets are first class components of the language. Through the Monipulator, Agents can be monitored and manipulated.
Target Audience
The target audience is both experienced and novice programmers who want to try something new.
Why I Built It
I realized the power of Petri net inspired programming and the joy of having a more expressive way to specify control flow.
Comparison
There are no other visual programming languages which embed actual code into their graphs.
How To Explore
To run all included example Agents you need at least Python 3.10 installed. To install all dependencies, run the 'install' script. Then you can start up a Nexus with a Monipulator by running the 'pytrithon' script, where you can start Agents through opening them with 'crtl-o' twice and hitting the 'Open Agent' button. You can also directly specify which Agents to run through the command line by starting a Nexus, Monipulator, and Agents in one single command: 'python nexus -m <agent1> <agent2>'.
Recommended example Agents to run are: 'clock', basic', 'prodcons', 'address', 'kata', 'calculator', 'kniffel', 'guess', 'yahtzeeserver' + multiple 'yahtzee', 'pokerserver' + multiple 'poker', 'chatserver' + multiple 'chat', 'image', 'jobapplic', and 'nethods'. As a proof of concept, I created a whole Pygame game, TMWOTY2, which is choreographed by 6 Agents as their own processes, which runs at a solid 60 frames per second. To start or open TMWOTY2 in the Monipulator, run the 'tmwoty2' or 'edittmwoty2' script. Your focus should on the 'workbench' folder, which contains all Agents and their respective Python modules; the 'Pytrithon' folder is just the backstage where the magic happens.
What Is New
Since my last post I have fixed several minor bugs. The
pytrithonscript now connects to my serverpytri.ioand we can converse and collaborate.Since my second last and third last post, nothing was changed.
Since my fourth last post some bugfixes to the clock agent were done.
Since my fifth last post I have created a new 'clock' Agent, which I personally use all the time. It offers an analog or digital clock with a graphical blur applied. It can be configured in the 'clock.yaml' file or through keyboard keys; keys to try are: t, b, a, k, K, c, C, O, r, R, l, L, n, N, m, M, h, H, s, S, d, f, F, w, comma, and period. To run it in an isolated Nexus, run
clock.batorclock.sh.Since my sixth last post there have been numerous small fixes and improvements to the system and to several agents.
Since my seventh last post the whole system now handles Agents, Monipulators, and Nexi terminating from the network. Bookkeeping is performed, cleansing the internal structures handling all process types, making the prototype more resilient. The 'chatserver' and 'chat' Agents now show a list of Agents currently connected. This is enabled through the new 'Event' Transition, which pushes Nexus Events to all listening Agents.
Since the eighth last post I have added a distributed Yahtzee game which you should try out. In order to setup a server on a reachable machine and connect other machines, you need to do the following: On the machine meant to be the server, run 'python nexus yahtzeeserver' first. Then on the machines meant to be the clients through which users play, run 'python nexus -x <serveraddress> yahtzee'. The clients probe the interconnected Nexi for a server and start with a lobby mask where you can select your name and start a game with all players signed up.
GitHub Link
https://github.com/JochenSimon/pytrithon
This is the eleventh post about Pytrithon on Reddit. There is a plethora of example Agents to view and run included in the repository. Please check it out and send feedback to the E-Mail address stated in the Monipulator About blurb.
1
u/MinuteManufacturer99 3h ago
isis-report-lib — declarative, hierarchical reports from one payload
I built this after rewriting the same report code in a Python service: nested groups, repeated table headers, page breaks, totals, locale-aware masks and page numbers.
[pdf]extra), HTML, XLSX or CSV; XLSX/CSV need no browser.Install:
pip install isis-report-libDemo: https://github.com/thepaneb/isis-report-lib/tree/main/demo Example output: https://thepaneb.github.io/isis-report-lib/assets/gallery/board-pack.png Source: https://github.com/thepaneb/isis-report-lib PyPI: https://pypi.org/project/isis-report-lib/
1.0.0 is MIT, Python 3.11-3.15, 464 tests at 98.75% coverage, Production/Stable. Feedback welcome.
1
u/Bullets123 2h ago
I built vouchertools.in, its meant to be a learning project with Django.
I'm turning it into a toolkit for accountants (specifically Chartered Accountants in India) and hence the first tool is only a Banks statement To Tally Prime (One of most used ERPs for Small businesses in India).
1
u/yared12qw 2h ago
I've been building V-NOC (Virtual Node Code), an open-source graph-based coding environment inspired by Smalltalk.
It turns folders, files, functions and classes into nodes, allowing you to explore how Python code executes through call trees. You can isolate a subsystem and work on it with all its relevant context while hiding everything unrelated.
Some of the things you can currently do:
The Python static analyzer is built on Astral's ty with a custom context-sensitive resolution layer.
It's available as a VS Code and Cursor extension. I'm still experimenting with this approach and would appreciate any feedback.
GitHub: https://github.com/yaredtsy/vnoc
VS Code: https://marketplace.visualstudio.com/items?itemName=vnoc.vnoc
Cursor: https://open-vsx.org/extension/vnoc/vnoc
1
u/BudgetRead4409 1h ago
LogicGuard v0.1.0 (MIT) — Diff-aware Tree-sitter AST + LLM security scanner for catching business-logic bugs in Python, JS, and TS.
What it does: Traditional linters/SAST handle syntax and taint well, while feeding whole repos to an LLM is slow and noisy. LogicGuard splits PR/diff scanning into two stages:
git diffand filters for structural candidates (e.g., mutating routes without auth decorators, check-then-act balance updates without locks, bareexcept: passswallowing state changes). Clean diffs exit immediately with zero API calls.openrouter/freeat $0), Anthropic, or local Ollama—plus an--offline-onlypure-AST mode.Try it (no install needed):
uvx logicguard rulesuvx logicguard diff --base main --offline-onlyLinks:
Ships with 5 rules (
auth_bypass,idor_ownership,race_toctou,silent_except,ai_hallucinated_guard) and a 2-file rule contract (CONTRIBUTING.md) with 8 opengood first issuerule specs if anyone wants to add one.1
u/MAJESTIC-728 1h ago
Hey everyone, check my new project MANABI https://manabi-bsh.pages.dev/
Cut the time googling and asking ai for projects ideas
It helps you find good quality project ideas for hackathons/learning/resume and you can even submit your repo and show your work to everyone
1400 + visitors as of now
Open for sponsorships DM if interested
•
u/Unlucky-Customer-346 59m ago
This week the NSA told operators of national security systems to speed up their move to post-quantum cryptography, and eight large tech companies publicly backed that guidance (joint statement). Step one of any migration is the same: know where your crypto is. (We have no connection to the NSA or those companies; it's just the moment we're shipping in.)
encryption-audit is a Python 3.7+ scanner with no dependencies. It scans source, config and certs for cryptography, labels each use weak / quantum-vulnerable / safe / PQ-ready, and writes JSON, a Markdown report, a CycloneDX CBOM and SARIF.
It also works as a skill for AI coding agents, but the scanner stands alone, and
--cigives pipeline exit codes (0 pass, 1 findings, 2 error) with baselines and an owner-plus-expiry ignore file.Early release (v0.3.1), pattern-based, so it can miss things. We built it, and we'd like to hear what it misses on your code.
https://github.com/motchi-solutions/encryption-audit
•
u/ManufacturerKey6917 54m ago
•
u/younos_alesrawi 16m ago
Media Catcher - Firefox extension paired with a local FastAPI backend using yt-dlp and FFmpeg (GPLv3)
What My Project Does: Media Catcher splits media stream downloading into two local layers: a lightweight Firefox WebExtension that intercepts HLS (.m3u8), DASH (.mpd), and direct media requests, and a local Python backend built with FastAPI (running on 127.0.0.1:8765) that orchestrates yt-dlp and FFmpeg subprocesses to download and mux streams. On Windows, the Python backend runs with a system tray controller and an Inno Setup installer so no terminal window needs to stay open.
Target Audience: Built for daily practical use by Firefox users and developers who regularly save media streams and want a local, privacy-respecting workflow with zero external servers or telemetry.
Comparison: Unlike browser-only download extensions that struggle with segmented HLS/DASH muxing due to WebExtension sandbox limits, or manual CLI workflows that require opening DevTools, filtering network requests, and pasting headers into yt-dlp by hand, Media Catcher automates request capture in the browser while delegating heavy I/O and muxing to native Python/yt-dlp/FFmpeg processes locally.
Source Code (GitHub): https://github.com/Yuonos-alesrawi/media-catcher Firefox Add-on: https://addons.mozilla.org/addon/media-catcher/
•
u/HorusTheSonOfOsiris 12m ago
I have built this tool called fireman. This helps network engineers analyse firewall policies. The tool does static analysis by loading firewall policies and rules and uses binary decision diagrams to do the work.
I’ve been doing network automation for years. The tool is based of FIREMAN paper.
•
u/import_pandas_as_np 6m ago
polars-stats:scipy.stats-style probability distributions as Polars expressions, with per-row parametersWhat My Project Does
polars-statsbringsscipy.stats-style probability distributions into Polars as native expressions: densities, cdf/sf, quantiles (ppf/isf), their log variants, moments and seeded sampling. Parameters can be columns, so one expression evaluates a different distribution on every row, inside a lazy query.sample(seed=...)gives the same draws on the in-memory and streaming engines, at any thread count.log_sf/log_cdfstay finite deep in the tails, tested against an arbitrary-precision oracle (mpmath).Target Audience
People who already keep their data in Polars and need per-row probability work: anomaly scoring against per-entity baselines, posterior intervals per A/B variant, Monte Carlo simulation inside a pipeline.
It is a young project, tested against scipy on every distribution and method; method names follow scipy.
Requests for missing distributions are welcome.
Comparison
norm(loc=mu, scale=sigma).sf(x)), and it is the reference polars-stats is tested against. The difference is where the result lands: scipy returns a NumPy array, so a lazy query has to collect, convert, and stitch the result back in, and nulls become NaN. polars-stats stays an expression, so the optimiser keeps working around it (a later filter is still pushed down).map_batcheswith scipy inside keeps the work in the plan, but as an opaque Python callback.Links:
0
u/Ok-Schedule-6280 1h ago edited 1h ago
ZapMerge: merge the WhatsApp history of two iPhones by editing the encrypted iOS backup
I switched iPhones and my WhatsApp history ended up split between the old phone (years of chats) and the new one (recent weeks). Neither Apple nor WhatsApp offers a way to combine them, so I made one.
Repo: https://github.com/alanfederal/ZapMerge (MIT)
What My Project Does
It opens two encrypted iOS backups, extracts WhatsApp's ChatStorage.sqlite from each, merges them (older one as base, newer messages after a cutoff, duplicate chats joined), writes the result into a copy of the backup and re-encrypts the manifest so the phone restores it like a normal backup. Pure Python plus the cryptography package.
Target Audience
People comfortable running Python scripts who need to rescue a split WhatsApp history, and anyone curious about iOS backup encryption or WhatsApp's Core Data schema. It worked end to end on one real case; it is not a polished consumer tool. iPhone to iPhone only; Android uses a different database and is not supported.
Comparison
There is no official way from Apple or WhatsApp. Paid desktop transfer tools exist, but they are closed source. This is an open, documented method: the repo explains the backup crypto, the schema, and three bugs that only show up after a real restore. The most interesting one: ZSORT, which orders messages, restarts at 1 in every chat, and ZMESSAGECOUNTER is not a count but MAX(ZSORT)+1, the cursor for the next new message.
Feedback and test reports on other iOS/WhatsApp versions are welcome.