r/Python • • 2h ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

5 Upvotes

10 comments sorted by

3

u/Total-Reasonable 2h ago

Four things I built solo, more on iurii.rogulia.fi:

  1. vatnode.dev: a REST JSON API that checks EU VAT numbers against VIES and returns an official consultation number. It also monitors saved numbers daily and sends a signed webhook when a status changes.
  2. polytypo.dev: a free, MIT-licensed typography rules engine for the web, not a grammar checker. It fixes locale-correct quotes and no-break spaces across 24 locales, with identical output in JavaScript, Python, Go, Ruby and PHP.
  3. HTPBE.tech: “Has this PDF been edited?” It analyses metadata, structure, digital signatures and content, then reports findings with reasons instead of a vague risk score, in the browser or via REST API.
  4. tsstboxes.com: an online store I am building solo on Next.js and Stripe, selling cargo boxes and jerry cans for ATVs, UTVs and snowmobiles, matched to the vehicle by make, model and year.

•

u/ZpSky 43m ago

Maaaan where have you been... was looking for vat checker for months

1

u/Pytrithon 2h 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.io and collaborate with me. After running the install script, through running the pytrithon script, 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 pytrithon script now connects to my server pytri.io and 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.bat or clock.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 2h 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.

  • Layout is data: columns, groups, totals, widths, alignment and format masks.
  • Sections compose a document: text, table, chart, image, TOC, page break; PDF bookmarks from headings.
  • One payload becomes PDF (Jinja2 + Chromium via the optional [pdf] extra), HTML, XLSX or CSV; XLSX/CSV need no browser.
  • CLI, GitHub Action and Docker; PDFs can be sealed with HMAC or Ed25519.

Install: pip install isis-report-lib

Demo: 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.

•

u/Bullets123 16m 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).

•

u/yared12qw 11m 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:

  • Explore call trees and edit code directly from the graph.
  • Attach documentation, plans and other Markdown files to individual nodes. They stay connected even when the code is moved or renamed.
  • Use coding agents to manage documentation and generate interactive code walkthroughs.
  • Save and share documentation and walkthroughs through Git.

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

•

u/yared12qw 9m ago

Here's a video showing how interactive walkthroughs work. You can ask an agent to create a tour of a specific part of the codebase and follow the call tree step by step, with explanations next to the relevant lines of code.

The agent knows which step you're on, so you can ask follow-up questions, ask it to take you to a specific part of the code, or add more steps to the tour. You can also save, edit and share these tours through Git.