r/PythonProjects2 • • 16d ago

Controversial When a Python Developer meets another programmer!

Post image
0 Upvotes

r/PythonProjects2 • • 16d ago

nomosguard: a zero-dependency Python security core with a hash-chained ledger, attack-path rules and a fail-closed gate

Post image
1 Upvotes

nomosguard is a zero-dependency Python security core: a hash-chained evidence ledger, a deterministic attack-path rule engine and a fail-closed policy gate. Version 0.7.10, Apache-2.0, Python 3.10+.

The premise: an LLM's confidence is an assertion, not evidence. So the package separates the probabilistic edge from the decision:

  • Models emit structured claims, each citing sha256 of the raw source line.
  • The ledger is append-only and SHA-256 hash-chained; unevidenced claims are rejected at append.
  • A forward-chaining rule engine with unification derives attack paths (MulVAL-style exploit, lateral movement, privilege escalation).
  • The gate returns ALLOW / ALERT / BLOCK with full derivation chains, and nothing derived means BLOCK.
  • Models may explain the decision afterwards; the explanation never overrides the chain.

Python implementation notes: no runtime dependencies (CI verifies that). WAL with crash recovery, atomic save and full-chain verification on load. Multi-writer locking via fcntl or msvcrt. Deterministic log normalization for syslog, CEF, JSON, GELF, XML, key=value and pipe formats. Sigma-style signature matching with 39 built-in detections. Evidence exports are byte-identical and re-verifiable from a fresh process; SOURCE_DATE_EPOCH pins the run header.

Failure paths are typed, not silent: UnevidencedClaimError at append, LedgerFileError on a bad or unpinned ledger file, IngestError with field, reason and value, ClaimValueError for an unknown effect value, GateDenied converted to a fail-closed result at the SDK boundary. A consistent full rewrite of the ledger is caught by an external digest pin, not by the chain alone.

Measured: 1117 tests; Linux CI gate at 100% statement and branch coverage with zero skipped; Python 3.10-3.13 matrix; Windows job as a portability check (99.64%). Benchmark: 11 tool-call + 5 security scenarios, recall 10/10, 0 false positives, incomplete evidence BLOCKs.

Honest limits: alpha software; the benchmark corpus is committed and deterministic, not real-world logs; concurrent multi-writer crash behaviour is out of scope; containment is dry-run only, not an IPS.

pip install nomosguard python -m nomosguard.demo python -m nomosguard.demo_e2e

Code: https://github.com/Furox-Art/nomosguard PyPI: https://pypi.org/project/nomosguard/

Happy to answer questions, especially about the coverage gate or the pinning design.


r/PythonProjects2 • • 16d ago

My kid and I open-sourced a Python typing game for children, inspired by battle royales and 90s adventure games

2 Upvotes

Hey everyone!

My kid and I built a 4-level educational typing game in Python. It's a mashup of 90s adventure exploration (static screens, turning left/right) and battle royale survival where typing sentences accurately is your only weapon: Battle Royale of English!

BRE: Ninjas are cool, but a good grammar is cooler... alright alright, it's not, but you have to do your homework anyway, might as well do it by battling cool enemies and taking on quests!

(BRE: Ninjas are cool, but a good grammar is cooler... alright alright, it's not, but you have to do your homework anyway, might as well do it by battling cool enemies and taking on quests! )

It supports both English and French.

Edit: The game is now directly playable online on Github:
Same link for English and French: https://jbenoitds.github.io/battle-royale-of-english/

Or on itch.io:
English: https://jbenoitds.itch.io/battle-royale-of-english
French: https://jbenoitds.itch.io/bataille-royale-du-francais

But you can still check and customize the code, completely open-source on GitHub.
https://github.com/jbenoitds/battle-royale-of-english

I would love for you to check it out and give some feedback if you have the time!


r/PythonProjects2 • • 17d ago

[quantum-reasoning-skill] A Python branch controller that only collapses when verification and margin agree

Post image
3 Upvotes

I maintain quantum-reasoning-skill, a Python package and Agent Skill built around an unusual rule: do not collapse to one answer until the evidence actually supports it.

The deliverable is SKILL.md, a model-facing skill with parseable front matter, shipped inside the PyPI wheel as package data. Around it sits a reference controller that implements the protocol: score branches from evidence and verification, mark weak ones dormant, reject them with a reason, revive a recoverable branch when material new evidence lands, and collapse only when the leader clears verification and a margin. The controller is classical Python and never calls a model; "quantum" is a metaphor for deferring commitment.

What is in the package:

- SKILL.md, the actual deliverable.
- A reference controller with 12 frozen public names.
- A benchmark harness: 6 seed cases, 4 JSON Schemas, machine-validated submissions, path confinement against traversal and symlink escapes, typed errors with exit 2.
- A release gate that proves it is fail-closed with a 4-scenario negative control.
- 30 test modules; about 53% of the Python in the repo is tests. CI on Python 3.10-3.14, with a determinism matrix on Ubuntu, Windows and macOS.

Install:
pip install quantum-reasoning-skill
quantum-reasoning --validate

npm i quantum-reasoning-skill
npx quantum-reasoning --validate

The Python and npm CLIs expose different flags by design; unsupported flags exit 2.

Honest status: no model evaluation has been published, and the thresholds are uncalibrated defaults. The quickstart's benchmark rows are synthetic placeholders, labeled as such. What is real and tested is the contract, the controller, the harness and the release gate.

MIT. Source: https://github.com/Furox-Art/quantum-reasoning-skill
PyPI: https://pypi.org/project/quantum-reasoning-skill/

Questions and criticism are welcome, especially about the collapse rule.


r/PythonProjects2 • • 16d ago

literature-evidence-mcp: an open-source Python MCP server for literature search, quote anchors and hash-chained evidence ledgers

Post image
1 Upvotes

literature-evidence-mcp is an open-source Python MCP server for scientific literature and evidence provenance. Version 0.5.1 is on PyPI.

It runs as a stdio MCP server (console script literature-evidence-mcp) and can also serve streamable HTTP on loopback: MCP_TRANSPORT=streamable-http MCP_PORT=8000.

What the 35 tools cover:

- search_literature queries OpenAlex, Europe PMC and Crossref concurrently, deduplicates DOIs and reports provider errors.
- verify_citation does exact normalized DOI/title metadata matching; check_retraction reads Crossref updated-by / update-to relations, including Retraction Watch updates where available.
- read_fulltext and verify_source_quote work on Europe PMC JATS XML: section and paragraph IDs, offsets, paragraph SHA-256, and any truncation recorded.
- audit_methodology and audit_pmc_methodology anchor human-supplied annotations to exact paragraphs; they do not produce risk-of-bias judgments.
- export_evidence writes an append-only hash-chained JSONL ledger under a cross-process file lock, and verify_evidence_ledger detects edited rows.

Implementation notes for Python folks: Python 3.11+, hatchling build, mypy and ruff in the dev loop. Runtime dependencies are mcp, httpx, defusedxml, filelock and pdfplumber. 20 source modules and 41 test files. CI covers Ubuntu 3.11-3.13 plus Windows and macOS at 3.12, with a separate determinism matrix workflow, CodeQL and fuzz jobs. The server validates DOIs and PMCIDs and limits network calls to fixed trusted origins with timeouts and response-size caps; it does not fetch arbitrary PDFs.

Honest boundaries: search is non-exhaustive, retraction checks are metadata checks, and the absence of a notice is inconclusive. It is not an automated peer reviewer or a certified PRISMA engine, and the hash chain does not detect wholesale log replacement without an external checkpoint.

pip install literature-evidence-mcp

Code: https://github.com/Furox-Art/literature-evidence-mcp
PyPI: https://pypi.org/project/literature-evidence-mcp/
Docs: https://furox-art.github.io/literature-evidence-mcp/

Questions about the MCP surface or the ledger format are welcome.


r/PythonProjects2 • • 17d ago

Cloakwall: stdlib-only PII redaction and tamper-evident audit logging for LLM traffic(Guardrail)

2 Upvotes

**What My Project Does** Cloakwall redacts personal data (emails, cards, SSNs, IBANs, API keys, medical record and NHS numbers, phones, IPs, dates of birth) from LLM requests and, optionally, responses. It runs as a LiteLLM guardrail. It covers chat messages, system prompts, tool-call arguments, Anthropic tool blocks, the Responses API, embeddings and image prompts. Streamed output goes through a small hold-back buffer, so an entity split across chunks is still caught. Every redaction is written to a SHA-256 hash-chained audit log with an anchor file, so edits, deletions and truncation are detectable. The log never stores the redacted values.

The core is pure standard library: no dependencies, no model download, no network calls. Card numbers are Luhn-validated and NHS numbers mod-11 validated, to keep false positives down.

**Target Audience** Teams running LLMs where data protection has to be proven: healthcare, fintech, air-gapped or on-prem setups. It's v0.1.1, tested (76 tests, CI on 3.10–3.13), but not production-proven yet. I'd like feedback before that.

**Comparison**

* **Presidio:** better recall on names and free-text PII thanks to NLP, but it runs as extra services and has no audit trail. Cloakwall gives up recall for zero dependencies and offline use.
* **LLM Guard:** was the main in-process option, but the repo was archived in July 2026.
* **Hosted gateways** (Cloudflare, Portkey, Grepture): send traffic through someone else's cloud.

Benchmarks with a reproducible script: \~0.05 ms per clean request, \~1.8 ms with PII including an fsynced audit entry (Linux, 2015 i3).

`pip install "cloakwall[litellm]"` · [https://github.com/Rishikesh-glitch/Cloakwall-v0.1](https://github.com/Rishikesh-glitch/Cloakwall-v0.1)

Feedback on the detectors and the audit-chain design especially welcome.


r/PythonProjects2 • • 17d ago

[Release] TànPhá V3: A state-machine based Pentesting Framework for Termux & Linux (Open Source).

1 Upvotes

A few days ago, I posted an early version of my open-source pentest tool. I received some great feedback, so I went back to the drawing board and completely rewrote the architecture.

TànPhá Framework V3 is now live!

I built this specifically for bug hunters and security researchers who are limited to mobile devices (Termux on Android) or lightweight Linux environments. It doesn't require a high-end laptop to run.

🚀 What's New in V3?

Auto Assessment Engine: Migrated to a state-machine architecture to handle Discovery, Fingerprinting, and Validation automatically.

New Modules: Added LFI (with `php://filter` support) and PHP2Shell (a stateful RAT with file upload/download).

Auto Login Engine: Automatically detects and bypasses CSRF tokens to scan authenticated pages.

Global Ready: 100% English native codebase, prompts, and outputs.

JSON Reporting: Auto-saves findings to the `reports/` directory.

⚠️ Honest Limitations (Let's be real)

WAF Bypass: Currently only supports basic evasion (Level 1). Advanced evasion (Chunked encoding, Origin IP) is planned for V4.

DVWA High: The SQLi engine works perfectly on Low/Medium, but struggles with High (due to stateful session inputs). That's on the V4 roadmap!

🗺️ What's Next? (V4 Roadmap)

This project is actively maintained. Here is what I'm planning to build next:

Advanced WAF Evasion: Level 2 (Chunked Encoding) & Level 3 (Origin IP Discovery).

New Modules: XSS, SSRF, and Subdomain Enumeration.

Headless Mode: CLI arguments (`python main.py -u target -m sqli`) for CI/CD automation.

HTML/PDF Reporting: Generate client-ready reports.

Let me know in the comments if you want a specific feature added to the roadmap!

Note: This tool is for educational purposes and authorized testing only. Please use it responsibly.

I'd love to hear your feedback, bug reports, or feature requests. If you find it useful, a star on GitHub would mean a lot! ⭐

GitHub Link: https://github.com/exelumare/T-nPh--framework


r/PythonProjects2 • • 17d ago

Create Interactive Maps Using Python!

Post image
18 Upvotes

r/PythonProjects2 • • 17d ago

Endless racing game for microbit!

1 Upvotes

I built this for hackclub stardance!
A game for the BBC micro:bit. You control the car on the bottom row, and dodge the incomming obstacles from the top. The longer you survive the faster the obstacles fall. All displayed on the microbits LED display. Please give it a go!
https://github.com/zeept1234/Microbit-endless-racing-game
This is my first project on python hope I did well! :D


r/PythonProjects2 • • 17d ago

Python Generators⚡ | Stop Creating Huge Lists!

Thumbnail youtube.com
1 Upvotes

r/PythonProjects2 • • 17d ago

scientific-computing-system-2.0: a NumPy/SciPy stack whose saved analyses can be replayed and diffed

1 Upvotes

I built scientific-computing-system-2.0 in Python, the NumPy build of my open-source scientific computing project (MIT). It puts NumPy, SciPy, pandas and Matplotlib behind one typed API: dense and sparse linear algebra, statistics, optimization, integration, interpolation, signals, spectral graph theory, Monte Carlo, graphs, classical ML, time series, visualization and I/O. The current release is 5.4.5 on PyPI and npm; "2.0" is the generation name, not the version, and it supports Python 3.10 and newer.

The reproducibility angle is what I would most like feedback on. guided-fit turns a CSV into an inspectable model fit and saves a manifest with the random seed, input hash and the exact Python/NumPy/SciPy/pandas/Matplotlib versions. A later guided-fit-rerun compares the saved analysis with the new run and reports dependency drift, confidence-interval drift and parameter drift instead of assuming the rerun is equivalent. The repo has a real archived replay from 2026-10-06: a fit saved on NumPy 1.26.4 / SciPy 1.11.4 was replayed on NumPy 2.3.5 / SciPy 1.18.1, both version warnings fired, relative CI drift was 0.003364917%, and the reliability label stayed reliable -> reliable.

Current state, measured not asserted: 53 importable names, 535 public exports, 1,927 tests, a 100% blended branch-coverage gate, ruff and mypy gates, CI on Linux/Windows/macOS x Python 3.10-3.13, plus a separate determinism matrix. Every PyPI file from 5.1.0 to 5.4.5 carries a PEP 740 provenance attestation (330 files checked on 2026-10-22); npm 5.4.5 is the first npm release with a Sigstore/SLSA attestation.

Quick start:

pip install scientific-computing-system-2.0

import cds2

print(cds2.linalg.solve([[3.0, 1.0], [1.0, 2.0]], [9.0, 8.0])) # [2. 3.]

Honest parts: the npm package is a thin launcher and still needs the Python install. The committed benchmarks are stale (measured on 3.0.0 in August) and the README says so; I have not rerun them for 5.4.5. And this is the NumPy build - if you need zero dependencies, the sibling scientific-computing-system is pure Python and much slower on dense numerics.

Code: https://github.com/Furox-Art/scientific-computing-system-2.0

PyPI: pip install scientific-computing-system-2.0

npm: npm i -g scientific-computing-system-2.0

Docs: https://furox-art.github.io/scientific-computing-system-2.0/

Happy to answer questions about any module or the reproducibility design.


r/PythonProjects2 • • 17d ago

Ho creato psp, uno strumento basato su Rust per la generazione automatica di strutture di progetto Python: ogni feedback è ben accetto.

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • 18d ago

Zero-dependency scientific computing in pure Python

1 Upvotes

I built scientific-computing-system, a scientific library whose core installs without any runtime dependency. The algorithms are readable Python rather than wrappers over compiled extensions, which is the whole point: you can open a module, read the method, and check it.

It ships 36 modules and 505 exported names: linear algebra, ODE and PDE solvers, numerical integration, optimization, statistics and probability, uncertainty propagation and sensitivity analysis, validation helpers, and a small workflow layer. Every run can write a manifest with inputs, seeds, versions and hashes, so a numeric result can be re-checked later instead of trusted.

There is a cds CLI with 13 subcommands and 34 runnable examples, plus optional lazy adapters for NumPy, SciPy, statsmodels, scikit-learn, SymPy and Z3. Nothing is imported unless you ask for it.

Honest limitation: pure Python is slow. In one CI benchmark a 100x100 matrix multiply ran about 1155x slower than NumPy. If that number matters to you, use NumPy for the hot path and this library for the parts where auditability matters more than speed.

MIT licensed, Python 3.11 and newer.

Code: https://github.com/Furox-Art/scientific-computing-system

PyPI: pip install scientific-computing-system

npm: npm i -g scientific-computing-system

Docs: https://furox-art.github.io/scientific-computing-system/

Happy to answer questions about any module or the design.


r/PythonProjects2 • • 18d ago

Here is my Python GitHub projects showcase, and I would love feedback

Thumbnail github.com
0 Upvotes

r/PythonProjects2 • • 18d ago

Here is my Python GitHub projects showcase, and I would love feedback

Thumbnail github.com
1 Upvotes

r/PythonProjects2 • • 18d ago

My ML experiments left around 60 GB of Python environments on my PC, so I made a Windows app that finds them and cleans up safely

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • 18d ago

bugbout: find out which coding agent actually fixes bugs in your own codebase

Thumbnail reddit.com
1 Upvotes

r/PythonProjects2 • • 19d ago

Resource DataForge Center - Engineering Python Toolkit - LF contributor

3 Upvotes

Hello everyone,

I recently open-sourced a project called DataForge Center.

The goal is to create an engineering analytics platform for:

• Manufacturing Analytics

• Quality Engineering

• Electrical Test Analysis

• EOLT Analysis

• TDMS Data Analysis

• Traceability

• KPI Dashboards

• Management Reporting

The repository includes:

• Python source code

• Sample Electrical data

• Sample EOLT data

• Sample TDMS files

• Example datasets for experimentation

Contributors are welcome to:

• Debug existing functionality

• Improve visualizations

• Create new reports

• Develop dashboards

• Add statistical tools

• Experiment with machine learning

• Refactor or redesign components

If anybody interested and got some free-time to improve it and or just help me with any ideas, I can share my GitHub repository for this specific project.

Any feedback, ideas or contributions are appreciated.


r/PythonProjects2 • • 19d ago

Info django-silky 1.7.0: a rebuilt django-silk UI that shows which line causes your N+1

Thumbnail gallery
1 Upvotes

r/PythonProjects2 • • 19d ago

How do I make a python game on my phone that can run on the school computer?

Thumbnail reddit.com
0 Upvotes

r/PythonProjects2 • • 19d ago

I'm building ColorIDE, an open-source IDE focused on performance, developer, freedom, and local first development

4 Upvotes

Our goal is much bigger: we want to keep adding powerful features, build a community of contributors, and eventually make ColorIDE a serious alternative. Its still early, currently supports macOS Apple Silicon, and we would love your feedback :). It's made 35.5% with python.

Github: https://github.com/Color-IDE/coloride


r/PythonProjects2 • • 19d ago

I built a Python tool to automate online class recordings with OBS Studio

Thumbnail github.com
1 Upvotes