r/madeinpython • • 8d ago

Built necklink: 6 Python + C99 packages compiling fruit-fly connectome circuits and testing them against 100 rewired brains

1 Upvotes

Sharing v3.0.0 of NeckLink (pip install necklink, MIT licensed, Python 3.9+ with only NumPy required at runtime), a monorepo of six packages that compile subgraphs from the 157,789-neuron adult fruit-fly connectome (BANC v888) into runnable Python controllers and zero-float C99 cores.

All 6 packages on PyPI:

  • necklink-cns: unified 4-organ reflex controller (11 brain populations -> 10 descending neurons -> 6 motor pools) with MAVLink v2 and ROS 2 bridges, plus necklink_cns.connectome tools for extracting BANC v888 subgraphs and running Maslov-Sneppen degree-preserving shuffles.
  • neckcompass: central-complex ring-attractor heading and GPS-denied homing.
  • necksight: optic-lobe LPLC2 + LC4 collision / thin-wire looming reflex with 3-DOF gyro derotation.
  • neckcord: VNC 6x6 leg inhibition (emergent tripod gait), bounded rotor/thruster allocator, ESC fault observer, and 18-servo IK.
  • necksense: mushroom-body 1,024 Kenyon-cell sparse projection for novelty detection and continual memory.
  • pynltp: loss-healing asyncio UDP transport (LZ4 + X25519/ChaCha20-Poly1305 + GF(2^8) Cauchy FEC) for streaming reflex commands and telemetry across noisy wireless hops.

Minimal Python example:

import numpy as np
from necklink_cns import NeckLinkCNS

# Uses compiled BANC v888 connectome weights by default (or pass connectome_weights="v2_analytic")
cns = NeckLinkCNS(vehicle="hexacopter", grid_size=32)
out = cns.step(
    dt=0.02,
    speed_m_s=1.8,
    gyro_xyz=np.array([0.02, -0.01, 0.05]),
    accel_xyz=np.array([0.2, -0.1, 9.80]),
    mag_xyz=np.array([0.45, 0.05, 0.89]),
    camera_frame=np.full((32, 32), 160.0),
)
print(out.descending.behavior_mode, len(out.cervical_wire_4b), hex(out.mavlink_manual_pkt[0]))

The most interesting part of building v3.0.0 was auditing whether the real connectome wiring actually beats degree-preserving random rewiring (K = 100 Maslov-Sneppen shuffles where every neuron keeps its exact in-degree, out-degree, and weight multiset) and classical baselines:

  1. Specific wiring matters on spatial geometry and coordination: scrambling the central complex or VNC matrices breaks closed-loop homing (100% arrival -> 4.7%, p = 0.0099), wave + 125 deg magnetic spike heading (12.84 deg RMS -> 62.82 deg, p = 0.0099), and emergent tripod gait (0.855 -> 0.411, p = 0.0099).
  2. Specific wiring does not matter in the mushroom body: on UCI gas drift novelty detection, real Kenyon claws (0.666 AUROC) and shuffled claws (0.672 AUROC, p = 0.74) tie, while One-Class SVM hits 0.698.
  3. Classical / symmetric models win raw accuracy: real fly circuits have biological left/right asymmetries (for example ~10 deg/s compass drift in darkness), so an EKF (0.81 deg RMS) or connectome_weights="v2_analytic" (80.0% closed-loop boat arrival vs 66.7% for BANC v888) beats raw biological weights when you just want the cleanest filter.

Live browser WASM simulator:

https://indian-aman.github.io/necklink/

GitHub repo & reproducible v3 benchmark suite:

https://github.com/indian-aman/necklink


r/madeinpython • • 9d ago

After a massive hit, the radar does the job.

1 Upvotes

Thick smoke kills visibility..


r/madeinpython • • 9d ago

I turned my messy Downloads-folder script habit into a 12-tool Python pack (free preview)

0 Upvotes

For years I kept a folder of small Python scripts I wrote for myself. None were impressive. No AI, no framework, no invention. They just saved me hours on weekends.

So I packaged 12 of them into GrabKit — a ready-to-run tool pack where every script opens with a dry-run preview and asks for confirmation before touching anything.

Design decisions that mattered:

  1. Safety first. Every destructive action previews before it acts. Nothing is deleted without confirmation, nothing overwritten without a .bak backup.
  2. Stdlib first. Nine of twelve tools use only Python's built-in libraries.
  3. Plain English. Copy-paste examples in the README for people who never opened a terminal.

What I learned: boring sells. Nobody buys "AI-powered file organizer." They buy "sorts my Downloads folder in 3 seconds." The README is the product.

Free preview: https://github.com/Des3uct0r/grabkit

Built with Python 3.8+, Windows/Mac/Linux.


r/madeinpython • • 9d ago

ViCalc – Turn your PC keyboard into a touch-typing scientific calculator (with HTML history logging). Open-source (MIT)

Thumbnail
gallery
1 Upvotes

Standard desktop calculator apps force you to jump between keyboard and mouse just to click buttons. That kills flow when you’re doing multi-step math.

ViCalc is a lightweight Windows calculator built for people who actually like typing. Everything (scientific, trig, complex numbers, Programmer mode with bitwise + Base-N) is reachable via normal keyboard shortcuts and muscle memory.

Key features

  • Full touch-typing control – scientific, trigonometric, complex arithmetic, and Programmer mode (Hex/Dec/Oct/Bin + bitwise) entirely from the keyboard
  • Automatic HTML history logging – every session is saved as clean, structured HTML so you can archive, copy, or paste step-by-step work into notes/docs
  • Flexible layouts – full visual controls, compact scientific, or minimalist zero-UI mode
  • Complex number support with real/imag parts, polar form, etc.
  • Open source (MIT), Python 3

Repo: github.com/Kudaschov/ViCalc

Would love feedback from the keyboard crowd. What calculator shortcut or workflow do you consider non-negotiable?


r/madeinpython • • 9d ago

A renamed Python folder should not silently retire its architecture test

1 Upvotes

You rename a package, update its imports, and the tests are green. An architecture test that still points at the old directory can look green for a less useful reason: it isn't checking any files.

I maintain ArchUnitPython. Its file rules report an empty selection as a violation by default. I verified that with a cycle rule pointing at a missing directory, alongside a real dependency rule with both passing and failing imports.

This is useful for long-lived pytest suites where the architecture checks might be edited less often than the code they protect. A stale selector becomes something to fix instead of a rule that quietly disappears.

There is an option for intentionally empty selections, but keep that permission deliberate. A generated directory that is absent in one build is a different situation from a package path that nobody updated after a refactor.

The library gives you normal assertions through assert_passes, so this fits into the same test run as your behavioral checks.

Source: https://github.com/LukasNiessen/ArchUnitPython


r/madeinpython • • 9d ago

Flama: a Python framework that serves any model, from scikit-learn to LLMs, as an API in two commands

Post image
2 Upvotes

I maintain Flama, an open source (Apache-2.0) Python framework I started in 2018 to get trained models out of notebooks and behind an API without writing a server around them.

Save a model with its metrics into a single file:

import flama
from sklearn.datasets import load_iris
from sklearn.neural_network import MLPClassifier

X, y = load_iris(return_X_y=True)
model = MLPClassifier(max_iter=2000).fit(X, y)
flama.dump(model, family="ml", path="model.flm", metrics={"accuracy": model.score(X, y)})

Then serve it:

pip install "flama[pydantic]"
flama serve --model file=model.flm,url=/model,name=iris

That's a running API with POST /model/predict/, input validation and interactive docs at /docs/.

LLMs work the same way: flama get downloads a model from Hugging Face into a .flm, and flama serve puts it behind OpenAI, Anthropic and Ollama compatible endpoints plus a built-in chat UI, on MLX (Apple Silicon) or vLLM (Linux with CUDA). Existing clients only need a base URL:

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8000/openai/v1", api_key="local")
Connect OpenAI client to local LLM running on Flama

When a one-liner isn't enough, models become resources in a full ASGI app next to your own routes, with type hints driving validation, OpenAPI docs and dependency injection, and the hot paths (routing, JSON, request parsing) compiled in Rust and shipped as plain wheels.

Right now I'm working on the next release: Python 3.15 support and per-framework extras, so you only install the ML libraries you serve.

Repo: https://github.com/vortico/flama

Docs: https://flama.dev

Happy to answer questions, and if it looks useful, a star on GitHub helps more people find it.


r/madeinpython • • 9d ago

A programming language + neural network, both built from scratch on Android.

Post image
1 Upvotes

r/madeinpython • • 9d ago

I built an entire IDE (more like a mini OS) using nothing but Python and Tkinter!

Post image
2 Upvotes

r/madeinpython • • 10d ago

pseudos

1 Upvotes

Hello guys!

(If you saw my earlier post, pseudos is the new name for obsidOS.)

github repository

I would like to share my terminal pseudo-OS called "pseudos", built from scratch in Python!

Quick Start:

First, make sure to install the required dependencies listed in `pseudos_need.txt`.

Built-in Package Manager (pkgs):

It comes with its own simple declarative package manager configured in "pseudos/disk/_sys/packages.pseudos". To install a package, just add its GitHub link like this:

github = "https://github.com/`

The current release is v0.25 (migrated from the legacy obsidOS release), and new updates are on the way!

Hope you enjoy testing it out — feel free to report any bugs or share feedback on GitHub. Thanks!


r/madeinpython • • 10d ago

Apsi 2.6.0: a Python-like language that generates its own GPU kernels, now converts whole Python projects

1 Upvotes

I've been building Apsi alone for the past months, and 2.6.0 just came out. It's a Python-like language for AI and physics. Here's what's technically interesting about it, and what changed in this release.

**The core idea**

- Physical units and tensor shapes are checked before the program runs, so `metres + seconds` or a `(3, 4) @ (5, 6)` matmul is a compile error rather than a crash halfway through a training run.

- The compiler generates its own GPU kernels and talks to NVIDIA cards through the display driver only. No Python, PyTorch or CUDA toolkit is needed to train a model.

**What's new in 2.6.0**

*Whole-project Python conversion.* You can convert one file, a folder, or a whole project with everything it imports (`--plan` shows the result before anything is written). Getting this to work on real libraries (huggingface_hub, datasets, pydantic, fsspec, multiprocess) meant handling:

- import cycles (modules register as partial before they finish executing)

- `from . import x`, where `x` might be a submodule *or* a package attribute, decided at run time

- class bodies with `if TYPE_CHECKING:` branches and annotated fields under conditions

- parenthesised `with (...)` statements, where `with` is a soft keyword

*Type-proven fast paths.* When the compiler can prove a value is an int or a known container, `range` loops, counters, conditions, list/dict indexing, f-strings and struct constructors skip the generic dispatch. Across the benchmark suite, 2.6.0 is 1.28–1.35× faster than 2.4.4 (geometric mean, two runs). These paths turn off under exact-fraction arithmetic, where literals aren't machine ints.

*Odd-size matrix products.* GEMM sizes that weren't a multiple of 4 used to fall off the fast kernel. They're now zero-padded in a single kernel pass, and C is written in place when only K needs padding. That gave about 12% on a modern GPT config.

**Honest limits**

- All numbers come from one machine (Ryzen 5 5500 + RTX 3060 12GB). Raw logs are on the site, including runs where 2.6.0 lost.

- PyTorch is still faster on larger models (127M params).

- NVIDIA only for GPU work.

I'd especially like feedback on the unit/shape checking design, and reports of Python code the converter can't handle.

Site and docs: https://apsi.dev

Source: https://github.com/ATECTechnologies/apsi


r/madeinpython • • 10d ago

Update of tauri-plugin-python - v0.4

Thumbnail
reddit.com
1 Upvotes

r/madeinpython • • 10d ago

I Learned Image Matching, So I Built a Panorama Maker using OpenCV and Python

Thumbnail
cmodi306.medium.com
0 Upvotes

I had already posted two blogs on image matching and wanted to build some basic application with that.

I used OpenCV to find keypoints in each image and match them between the photos. Then I used those matches to stitch the images together and generate one panoramic image.

Read more about it.


r/madeinpython • • 10d ago

Scratch × Python 🐱🐍

Post image
1 Upvotes

Et si vous pouviez transformer n'importe quel projet Scratch en une expérience Python entièrement programmable ?

Découvrez SKRASH.

Un projet open source qui explore une idée intéressante : exploiter les projets Scratch existants et débloquer de nouvelles possibilités grâce à Python.

Imaginez pouvoir dépasser les limites de la programmation visuelle traditionnelle, sans avoir à abandonner vos projets actuels.

SKRASH réunit ces deux univers.

GitHub : https://github.com/raidos23/skrash

Licence MIT.


r/madeinpython • • 10d ago

Como reunir PDFs assinados pela DocuSign sem invalidar as assinaturas usando Python?

1 Upvotes

Tenho vários documentos PDF assinados pela DocuSign e preciso reuni-los em um único arquivo, preservando a integridade dos documentos e a validade das assinaturas digitais.
Busco uma solução em Python que possa ser executada localmente e também implantada no Azure, sem depender do Adobe ou de serviços externos de processamento de PDFs.
Existe alguma biblioteca ou abordagem recomendada para isso? É possível gerar um PDF único com todas as páginas em sequência preservando as assinaturas, ou seria necessário manter os documentos originais incorporados como anexos em um PDF?


r/madeinpython • • 11d ago

Checks free HTTP/SOCKS proxies every hour and records the outcome of every check, plus a benchmark of popular GitHub proxy lists [Python] - proxy-scraper

Thumbnail
github.com
0 Upvotes

r/madeinpython • • 11d ago

I made a Python app that puts a frosted-glass Spotify now-playing tile on your actual desktop wallpaper

0 Upvotes

My project, still a work in progress, but I've been really enjoying it day to day.

It's a small Python app called nowPlayingDesktops. It puts a frosted-glass "now playing" card (album art, track, and artist) onto your actual desktop wallpaper, not a floating window, with a blurred cover-art backdrop, and restores your original wallpaper when you pause or exit. You can see what's playing at a glance anytime, even when the desktop is idle or sitting on the screensaver. Nice little desktop customization more than anything.

It runs on Windows, macOS, and Linux. Local mode reads the OS media session (Spotify desktop; on Linux, other MPRIS players may work too). Optional Spotify Web API mode can follow playback on another device.

There is no tracking or data collection. It just looks for what's playing and sets it as the desktop. By default, local mode may ask Apple's public iTunes Search API for a sharper cover; you can turn that off with --no-online-art.

Open to testers, issues, and PRs, but mostly just sharing in case someone else likes it too.

Install: pipx install now-playing-desktops Repo: https://github.com/hippi345/nowPlayingDesktops


r/madeinpython • • 11d ago

[Python] inflammatory-onco-physics - Biophysical reaction-diffusion solver and survival pipeline modeling drug sanctuaries and ctDNA dynamics

Post image
1 Upvotes

r/madeinpython • • 11d ago

My browser based on PyQt6

0 Upvotes

Requires installing Python, PyQt6, PyQt6-WebEngine, and one of the versions of this project: https://github.com/Temp0202/flamedarkness-browser.

Today 12 November 2026 I released the version 4.0: https://github.com/Temp0202/flamedarkness-browser/releases/tag/4.0.


r/madeinpython • • 11d ago

I Built a Free GitHub Bot That Automatically Tracks FitGirl & DODI Game Updates 🎮

Post image
1 Upvotes

Hey everyone!

I've been working on a personal project called Game Update Bot.

It's a Python-based Telegram notification bot hosted on GitHub. Its purpose is to automatically monitor FitGirl and DODI for new game updates and notify me through Telegram.

Features:

Automatically checks for new game updates.

Monitors FitGirl and DODI.

Sends notifications through Telegram.

Uses Python and GitHub Actions.

Stores game information in an SQLite database.

Runs automatically without needing my PC to stay on.

GitHub Repository:

https://github.com/itwasnt69-droid/game-update-bot

This is one of my personal projects, and I'm still working on improving it.

I'd appreciate your feedback and suggestions. What features would you like to see added?

Thanks! 🚀


r/madeinpython • • 11d ago

Beta testers wanted: Brevi compiles agent-written Python to native binaries (v0.27, Apache-2.0)

0 Upvotes

Hi all — we just shipped Brevi v0.27, an open-source compiler for the Python AI agents write. You keep writing ordinary Python; Brevi compiles it through Rust to a native binary, and either matches CPython’s output or refuses with a one-line JSON error.

We’re looking for beta testers with real agent-generated programs. It runs on linux, mac and windows(beta).

What works now: most stdlib code, generators/async, common libraries including requests, sqlite3, duckdb, onnxruntime and MCP servers; Linux and macOS; Windows x86-64 as a beta.

What doesn’t yet: 8 of 311 CPython core tests still differ (exit codes), stdlib conformance is 45%, the sandbox is a policy layer rather than a security boundary, --standalone is Linux-only, and Windows refuses cpu/file/fds limits. It is a preview, not a drop-in python3.

What would help most: a program your agent actually wrote where Brevi refuses, falls back, or gives a different answer; the exact command; and your OS/Python version. Open an issue at https://github.com/ets-public/brevi/issues — no signup, no telemetry. We’ll credit useful reports.

The honest pitch: it’s fast on compute-heavy Python (median ~8.5x on 12 benchmarks), genuinely useful for agent loops with --verify, and still early. If it breaks on your workload, that’s exactly what we want to hear.

https://brevi-lang.org/

I am the maintainer and am happy to answer questions here.


r/madeinpython • • 11d ago

Testing my work

Thumbnail
gallery
3 Upvotes

Gumawa Ako ng Isang program na nag dedelete ng file only sa approve at safe directory


r/madeinpython • • 11d ago

Anyone interested for a little challenge ? I want to work on my automation skills using python. Give me an automation task with a deadline. Let's see what general tasks can be automated which you think are just mundane

0 Upvotes

r/madeinpython • • 12d ago

I built a programming language that trains AI on your own GPU, without Python or PyTorch

Thumbnail
gallery
1 Upvotes

Hi! I'm [AGE] and I've been building **Apsi**, a programming language for AI and physics.

It reads like Python, checks physical units and tensor shapes before the program runs, and installs in one step: no Python, PyTorch or CUDA toolkit needed.

The part I'm most excited about: it trains models on NVIDIA GPUs with its own kernels, generated on your machine from just the display driver, and keeps the card at a steady ~77 °C.

On my Ryzen 5 5500 + RTX 3060 12GB (same model, same data):

- Training a 10.9M-param GPT: **Apsi 151,744 tokens/s** vs PyTorch 2.14 126,993 (1.19x)

- Running Qwen2.5 fully on the card: 0.5B ~210 tok/s, 3B ~46, 14B ~20

It can also convert Python and PyTorch code to Apsi.

It's still young and has rough edges, so I'd really appreciate people trying it on their own hardware and code and telling me what breaks. Built with the help of Claude (Anthropic).

- Website & docs: https://apsi.dev

- GitHub: https://github.com/ATECTechnologies/apsi


r/madeinpython • • 12d ago

IP Port Scanner & OS Detector

0 Upvotes

I made a little IP Port scanner and Operating System Detector for use in the terminal. It uses the Python-Nmap library and Nmap.

You can enter an IP address and it will scan the top 1000 TCP ports to detect if they are open, what services are running on them and attempt to identify the operating system.

You can check it out on github:

https://github.com/LaurenAshbee/ip-port-scanner.git

Remember: only test this against IP addresses you own or have explicit permission to test.

Cheers!