r/madeinpython • u/scapaflow96 • 53m ago
r/madeinpython • u/Cool_doggy • May 05 '20
Meta Mod Applications
In the comments below, you can ask to become a moderator.
Upvote those who you think should be moderators.
Remember to give reasons on why you should be moderator!
r/madeinpython • u/Emergency-Tutor-7 • 1h ago
[Python] a 507-name scientific library with no dependencies, and a CLI that goes from constants to a dashboard
Repo: https://github.com/Furox-Art/scientific-computing-system - 2.2.23, MIT, Python 3.11+, zero runtime dependencies.
Everything in it is standard library. src/cds/ holds 34 subpackages plus causal.py and sensitivity.py - 35 feature modules, with the CLI entry point as the 36th - exporting 507 names total (343 functions, 164 classes). tests/test_readme_surface.py derives those counts from the package, so the README cannot drift without a test failing.
The CLI is the part that makes it usable without opening an editor. cds calc ke for a kinetic-energy calculation, cds stats 1,2,3,4 for descriptive statistics, cds sample normal, cds integrate, cds plot (ASCII by default, PNG with the [plot] extra), cds modules and cds info for the catalog and health summary, cds benchmark, and cds dashboard for a Streamlit dashboard behind the [dashboard] extra.
Underneath: SVD/QR/Cholesky/LU, ODE and PDE solvers (Euler through adaptive RK45, implicit stiff methods, symplectic integrators, 1-D heat and wave), quadrature from trapezoid to Gauss-Legendre, optimization from Newton to Nelder-Mead, statistics/probability/conjugate Bayes, Monte Carlo, and an educational ML module.
Install:
pip install scientific-computing-systemLatest commit is a good example of the numerical care: the ODE solvers now stop when a time step cannot advance, instead of continuing with a step that cannot progress.
One honest limit: pure standard library puts the speed ceiling at Python's, and the ML module says itself that it is educational rather than production. When you need compiled numerics the same API exists as scientific-computing-system-2.0 on NumPy/SciPy.
r/madeinpython • u/OkNail7333 • 1h ago
HOCON for Python (oh ..., here we go again)
Hi all,
in my profession I am using HOCON format, but the native pyhocon has so many issues, and I wanted to try something new, so I started learning Zig. As initial project, I decided to implement HOCON for Zig. During the implementation it turned out the Zig is not issue, but HOCON with lacking official and checkable specification is.
My first part was to set into the stone what is HOCON actually, and created transferable Conformance suite.
Since Zig is wonderful language and allows very simple way of building sharable C libraries which can be easily ported to other languages I decided to prepare even Python package. This brings to the Python parsing immersive performance and great compatibility with HOCON specification better than what other python implementations provide..
Will be more than happy for feedback, and till you write me.
r/madeinpython • u/Schnidi01 • 5h ago
Python Detective: Look closely at these dependency tree screenshots. What looks "impossible" or strictly violates standard Python/pip logic?
Every one of us knows pipdeptree, poetry show --tree, or pip list.
Here is the tree of one virtual environment. At first glance, an ordinary GUI, but when you look at the data and relationships from the perspective of how Python and site-packages work, there are immediately 5 things that an ordinary Python tool cannot, by principle, display or would mark as an error.
Hints – focus on:
- The item moj_test_balicek and its occurrence in the tree vs. the right panel.
- How requests and its buddy PySocks are recorded and broken down in the tree.
- What the "Linker" category is doing in the package tree? (Since when does Python have a linker?)
- What the mysterious "Kept alive by (Owners)" in the package detail means?
- Look at the root categories above – how can the system know what was installed manually, what via a manifest, and what is an "Orphan"?
Just for fun, who among you will decipher what architecture is running under the hood of this graph and why it is not an ordinary pip output? Write your theories in the comments!
r/madeinpython • u/Emergency-Tutor-7 • 9h ago
[Python] polyguard 0.5.1: the test gate that treats an all-skipped run as a failure
Repo: https://github.com/Furox-Art/polyglot-code-guard - 0.5.1, the command is polyguard verify.
One opinion, implemented carefully: exit code 0 is not evidence that tests ran. Polyguard detects the project type, runs the build and test plan, and only prints PASS when it can find positive test-execution evidence in the runner's own output - pytest's passed line, cargo test result blocks, Go test events in the JSON stream, JUnit/Surefire/TRX counters, Swift Testing or XCTest summaries, per-test CTest Passed records.
0.5.1 tightened three things that used to be soft: an all-skipped or zero-test run cannot produce PASS, ambiguous runner evidence now fails closed instead of inferring that tests ran, and C/C++ plans on MSVC multi-config generators pass an explicit --config Debug / ctest -C Debug so CTest reports real verdicts instead of "Not Run". Timeouts kill the process tree so runner children do not survive the check, and captured output is capped at the final 256 KiB per command.
Eleven language identifiers are supported, and monorepos are discovered recursively with Maven modules, Gradle includes, Cargo workspaces, npm workspaces or a .sln delegated to the native workspace command once rather than being run twice.
Install:
python -m pip install --upgrade polyglot-code-guardOne honest limit: PASS means the built-in plan succeeded and genuine test-pass evidence was recognised, not that the code is correct or well covered. Because it executes your build scripts and package managers, an untrusted repository belongs in a disposable container - polyguard provides no OS isolation of its own.
r/madeinpython • u/Sea-Boysenberry-6984 • 14h ago
[Showcase] Pydantic Views: derive operation-specific schemas from one model
Hi everyone — I’m building pydantic-views, an open-source Python library for deriving operation-specific schemas from a single Pydantic model.
The goal is to avoid duplicating models for common API workflows such as:
- create requests
- update and patch (partial-update) requests
- load/response models
- create-result models
- nested and generic models
Example:
from pydantic import BaseModel
from pydantic_views import CreatePreset, LoadPreset, View, ReadOnly, WriteOnly
class Account(BaseModel):
id: Annotated[int, ReadOnly]
username: str
password: Annotated[str, WriteOnly]
class AccountCreate(View[Account], preset=CreatePreset):
pass
class AccountLoad(View[Account], preset=LoadPreset):
pass
The views inherit Pydantic validation and serialization while selecting fields according to access rules. They can be declared explicitly or generated dynamically with builders. Add this after the example:
If you’re coming from TypeScript, PartialPreset is roughly the equivalent of Partial<T>:
pass
Unlike a plain type transformation, the generated view remains a validated Pydantic model and can be used for partial updates. But you
should look at UpdatePreset, I think is more useful.
The project also includes:
- a mypy plugin for declared views
.pyistub generation for Pyright and Pylance- support for nested models, containers, generics, and computed fields
- runtime helpers such as
is_view_of() - full documentation and executable examples
Install it with:
pip install pydantic-views
Links:
- GitHub: https://github.com/alfred82santa/pydantic-views
- Documentation: https://pydantic-views.readthedocs.io/stable/
- PyPI: https://pypi.org/project/pydantic-views/
It’s an independent project and is not affiliated with or endorsed by Pydantic. Feedback, use cases, and suggestions are very welcome.
r/madeinpython • u/Key-Spray-7616 • 17h ago
I built a local MCP server that searches my papers, code and repos with page citations, and shares one memory across Claude Code, Cursor and Codex - Helps write better Code - More context building, less tokens, understands your work
r/madeinpython • u/Emergency-Tutor-7 • 1d ago
[Python] plan-auditor: a requirement only counts as met when a command and its output say so
Repo: https://github.com/Furox-Art/plan-auditor - 2.6.5, MIT, no required runtime dependencies.
It exists for one failure: an agent says "done" in confident prose, and nothing in the transcript proves it. Here you write a plan whose requirements are declarable, and each step has to end with a recorded verification - a file check or a command with its real output. The evidence record is HMAC-chained, so a later edit shows up as an edit, and a requirement that cannot be reduced to a deterministic check is handed to a human instead of guessed.
It installs three console scripts: plan-auditor, plan-auditor-migrate-seal and plan-auditor-formal. The gate is also usable directly:
pip install plan-auditor
python hooks/gate_hook.py .hooks/gate_hook.py is the single authoritative gate; scripts/stop_gate.py is the Claude Code side and delegates to it. The repo's own CI runs the README quick start and compares the transcript to real output, hashes included, so the example cannot drift.
One honest limit: it is not an OS sandbox - agent and verifier run as the same OS user - the evidence is tamper-evident rather than tamper-proof since HMAC is only as strong as the key staying secret, and domain meaning that resists a deterministic check stays a human decision.
r/madeinpython • u/Emergency-Tutor-7 • 1d ago
[Python] eq-layer: tone control as explicit states you can print, assert and route on
Repo: https://github.com/Furox-Art/eq-layer - 0.2.6.
"Be more empathetic" is a style instruction, and the failure is structural: you get the same flat warmth for a mild annoyance and for someone escalating. This library replaces the instruction with states.
Per turn it keeps an affect state - valence, arousal, escalation_delta, stance, subtext - so a trend exists as data instead of being re-guessed from each message. An intent classifier keeps the whole posterior over six intents instead of one number, and a one-step Bayes-risk router decides from that distribution whether to act or ask. The two states pick one policy family (mirror, validate_redirect, direct, ask, deflate, repair, hold, boundary), which is then split into orthogonal controls - task_move, social_move, repair_move, realization - so a tone change can't silently drop the actual request. The factored action compiles into a system instruction and prompt prefix.
There is a structural audit after generation too: question budget, required clarification, unsupported privacy promises, repeated repair, low-verbosity overrun. It checks the contract, not facts.
Install:
pip install "eq-layer[ml]"
npm install -g eq-layerOne honest limit: the core claim is untested. No real-model A/B run has been rated, the pre-registered protocol in eval/AB_PROTOCOL.md is pending with zero adjudicated labels, and the steering stays at prompt level - the logit_bias field is a placeholder that is never populated or applied.
r/madeinpython • u/creating-ai-projects • 1d ago
I built a tool to turn prospect research into a pitch you can check
Developers selling their own products struggle to turn prospect research into a relevant proposal. So I built VentureOS, a swarm of agents that prepares a sourced sales brief, a one-page proposal and an idea for what to build.
It checks that quoted evidence appears in the collected sources and asks for review when important context is missing, rather than silently filling the gaps. The source is free under MIT, live services cost money, and the recommendations still need your judgment.
Looking to any feedback, and if you like it, please star the project:
GitHub: https://github.com/efolley/Venture-OS
X post: https://x.com/_efolley/status/2124259294807797909
r/madeinpython • u/Emergency-Tutor-7 • 1d ago
[Python] scientific-reasoning-auditor: recompute the reported statistics, abstain when the inputs are ambiguous
Repo: https://github.com/Furox-Art/scientific-reasoning-auditor - Python 0.11.0 (HEAD d9f0e14), Node adapter 0.4.0. No required Python dependencies; the PDF/statistics extras bring the optional backends.
It takes a manuscript, extracts the reported statistics and method claims, and recomputes the ones that are checkable: statistic consistency against the stated degrees of freedom, multiple-testing corrections, regression and meta-analysis inputs, power and sample size, declared-DAG adjustment, MCMC diagnostics, ML split manifests. The manuscript stays read-only and findings land in separate report files:
sra audit manuscript.md --out reports/sampleThe behaviour that makes it usable is abstention. The newest commit is exactly that: when a discrepancy sits under an undeclared tail or degrees-of-freedom correction, it now abstains instead of declaring a reporting error. Same for the SymPy/Pint/SciPy toolkit checks and the spaCy sentence candidates - they are candidates a human confirms, never truth claims.
Install:
python -m pip install --upgrade "scientific-reasoning-auditor[pdf,statistics]"There is an npm adapter too, but it is a thin wrapper around the Python engine and the engine has to be installed first.
One honest limit: the published-reference pilot compared the unchanged 0.9.0 engine against historical manual labels for 1120 selected psychology results - 60% decision coverage, 34 of 49 reference errors flagged, 34 of 54 flags agreeing with the reference. That is retrospective conditional agreement on third-party input strings, not whole-paper validation, and it does not test the text extraction.
r/madeinpython • u/Ok_Lavishness_4849 • 1d ago
I built Pentworks, an open-source CLI tool for managing penetration testing projects — looking for feedback
Hey everyone!
I've been working on Pentworks, a Python-based command-line tool designed to help penetration testers organize their work.
The idea for Pentworks came to me when I started practicing bug bounty hunting. I quickly realized that keeping track of notes, endpoints, findings, and all the other routine tasks involved in penetration testing could get pretty messy.
I couldn't find a simple, easy-to-use CLI tool that fit my workflow, so I decided to build my own using Python. I wrote most of the core application myself, while Codex helped me implement some of the features and write the tests.
That's how Pentworks started — a tool designed to help bug bounty hunters and penetration testers stay organized and focus more on finding vulnerabilities rather than managing their notes and data.
The goal is to keep projects, targets, findings, notes, and evidence organized in one local workspace without relying on a web interface.
The project is still in its early stages, and I'd really appreciate feedback from people with experience in penetration testing or Python development.
I'm particularly interested in:
- Is this something you'd actually use?
- What features are missing?
- What would you improve in the architecture or CLI experience?
- Are there any bugs or usability issues?
GitHub: https://github.com/Sheykder/Pentworks
Constructive criticism is very welcome. Thanks!
r/madeinpython • u/Emergency-Tutor-7 • 1d ago
[Python] nomosguard: a security decision core where the model supplies evidence and the rules decide
Repo: https://github.com/Furox-Art/nomosguard - 0.7.11, Apache-2.0, pure Python with no runtime dependencies, Python 3.11+.
The design constraint was to keep a model away from the decision. So the model reads logs, configs and CVE records and writes structured claims, each citing the exact fragment behind it - a log line hash, a config path, a CVE id. A claim without a reproducible citation raises UnevidencedClaimError at append time. What survives goes into an append-only SHA-256 hash-chained ledger, a rule engine derives attack and access paths from that ledger by plain logical inference, and a policy gate answers ALLOW / ALERT / BLOCK with deny as the default. If nothing is derived, the gate returns BLOCK with the reason saying so, rather than an empty allow.
You can watch all of that fail closed in one command: python -m nomosguard.demo_e2e runs a reproducible scenario list, and tests/test_demo_e2e.py pins that table to the scenario registry in both directions.
Install:
pip install nomosguardOne honest limit: it is early development (alpha), and it is a reasoning core rather than a scanner - it does not discover hosts or reach into your infrastructure, it reasons over the events you feed it. Coverage is a Linux gate where CI fails on any skipped test; the Windows job measures 99.64% because the fcntl lock branches and the directory-fsync path cannot execute there.
There is also an MCP client entry point if you want an agent to read events and write claims without ever holding the verdict.
r/madeinpython • u/Busy-Yam8560 • 1d ago
my First Real Python Project, a To-Do app we all needed, DeskTask.
it's whole point is tasks on your desktop screen, can drag it anywhere, marking it as completed is dragging it to a done mark that appears on dragging a task, got a tracker too, feel free to try it for free and give me your appreciated feedback, Thanks.
i only used Claude, not Claude code.
here : DeskTask
r/madeinpython • u/JansonErikson • 1d ago
Get Gitty – a zero-dependency, TLS-encrypted terminal messenger inspired by "Das Erwachen", using GitHub identity instead of passwords.
I built Gitty, a zero-dependency terminal chat written purely with Python's standard library (socket, ssl, sqlite3, urllib).
- Auth: GitHub OAuth Device Flow (no passwords, no tokens stored on the server)
- Privacy: Ephemeral rooms in RAM, strict TLS 1.2+
- Try it:
pipx install gitty-messengeroruvx --from gitty-messenger gitty
r/madeinpython • u/Emergency-Tutor-7 • 2d ago
The NumPy build of my scientific computing library: same API as the pure-Python one, compiled speed
Repo: https://github.com/Furox-Art/scientific-computing-system-2.0 - PyPI scientific-computing-system-2.0 5.5.0, import name cds2, console script cds2.
This is the second half of a pair. scientific-computing-system is pure Python with zero runtime dependencies; this one is the NumPy/SciPy/pandas/matplotlib build of the same project. Same API, so a script can move between them.
It covers the usual ground - linear algebra, statistics, optimization, signal processing, information theory, chaos, Bayesian helpers, metaheuristics, geometry, reinforcement learning - with the compiled backends doing the heavy arithmetic.
Two naming things, because they confuse people every time: "2.0" names the generation of the project, not the release number. The current release is 5.5.0 and PyPI has never published a 2.x version. There was no clever reason for that, it is just how the version line went.
One honest limit: it is not a thin wrapper around SciPy with friendlier names. Where a compiled backend does not cover something, the pure-Python implementation from the other repo is what runs, and it is slow. The repo says which is which per module instead of pretending the speed is uniform.
r/madeinpython • u/Emergency-Tutor-7 • 2d ago
[Python] quantum-reasoning-skill - keeps several hypotheses alive and collapses only when evidence does it
Repo: https://github.com/Furox-Art/quantum-reasoning-skill - Python, version 1.2.2 on PyPI.
The failure it targets: an agent picks an explanation in the first two sentences and spends the rest of the turn defending it.
The skill keeps several genuinely different hypotheses alive, tests each against evidence and tools, explicitly revives an alternative when new evidence arrives, and collapses to the best-supported one only at the end. "Measurement" means evidence collapsing a branch. It is a metaphor, not quantum computing, and the README says so in the first paragraph.
It is model-agnostic. The contract is SKILL.md, and the repo also ships a reference branch controller and a benchmark harness with a deterministic falsification benchmark that runs.
One honest limit, and it is the first question every time: a baseline-versus-skill model evaluation has not been published. This project makes no claim that it improves any language model's accuracy. What exists is the protocol, the controller, and a harness you can run yourself - the most useful contribution right now is someone running that comparison and publishing the result, including a null one.
r/madeinpython • u/krishyalla • 2d ago
I built LightsToFlag, an F1 race predictor in Python and Streamlit. Tonight’s Vegas pick: Verstappen from P2
r/madeinpython • u/Delicious_Abies_9708 • 2d ago
Here's why I’m building a home for vulkan python. Why do you care about this community?
r/madeinpython • u/Basic_You_2402 • 3d ago
The first beta version of the tawjih package (version 0.13.1) is now available on PyPI!
​
https://pypi.org/project/tawjih/
We're excited to share the initial release of the tawjih package for Python developers, designed to \[state the package's function, e.g., facilitate code routing/path management/AI application building\]. Why try it now?
• 🛠️ Lightweight and fast: Designed to seamlessly integrate into your existing projects.
• 🧪 Open beta: All developers are welcome to test the package, find bugs, and share their suggestions for future releases. Package link and documentation: pypi.org
💻 Code repository (GitHub): https://github.com/AlmodinyMk/LLM-tawjih-Model-building
\#Python #PyPI #OpenSource
r/madeinpython • u/Designer_Bad_1571 • 3d ago
We built sentropy, a Python package for measuring diversity while accounting for similarities between data points
Hi Python community!
I'd like to share an open-source Python package that I've co-authored: sentropy.
The motivation behind it is that traditional entropy measures, such as Shannon entropy, treat every distinct element as completely different. But in many datasets, distinct elements can be very similar to one another.
For example, consider a dataset of protein sequences. Two sequences that differ by a single amino acid are arguably more similar than two sequences that differ at every position. Traditional Shannon entropy doesn't capture this distinction.
Sentropy implements similarity-sensitive entropy measures, based on the mathematical framework developed by Leinster, Cobbold and Reeve.
A few things you can do with it:
- Calculate similarity-sensitive α, β and γ diversity.
- Explore different viewpoints using the parameter
q. - Pass your own similarity matrix or define a custom similarity function.
- Calculate similarities on the fly, without explicitly constructing a potentially large similarity matrix.
- Calculate relative sentropy and cross-sentropy.
- Use PyTorch/GPU functionality.
- Calculate the Vendi score.
It's not restricted to biological data, either. The package can work with any dataset for which you can define a meaningful similarity function.
For example, the README includes demonstrations using amino-acid sequences and image datasets.
Installation:
pip install sentropyLinks:
- GitHub: https://github.com/ArnaoutLab/sentropy
- Documentation: https://sentropy.readthedocs.io/
- PyPI: https://pypi.org/project/sentropy/
I'd love to hear what you think! In particular, I'm interested in how people might use similarity-sensitive diversity measures in machine learning, data analysis, or other areas outside bioinformatics.
Feedback, suggestions, and contributions are welcome!
r/madeinpython • u/kengeren • 3d ago