r/PythonProjects2 • u/AstrophysicsAndPy • Mar 09 '26
`plotEZ` - a small matplotlib wrapper that cuts boilerplate for common plots
r/PythonProjects2 • u/AstrophysicsAndPy • Mar 09 '26
r/PythonProjects2 • u/Rayterex • Mar 08 '26
r/PythonProjects2 • u/Sea-Ad7805 • Mar 07 '26
The classic Index the Values using a dict problem for beginners visualized using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵.
r/PythonProjects2 • u/Affectionate_Fox5346 • Mar 07 '26
Hi everyone,
I’m learning how to build WhatsApp bots with Python, and I’d like to eventually offer this service to local businesses (restaurants, veterinary clinics, etc.). My idea is not just simple auto-replies, but bots that can:
Talk with customers naturally
Take orders or appointment requests directly in WhatsApp
Save customer/order information into a database
Generate monthly reports for the business (sales, appointments, etc.)
I’ve studied Python basics, but I’m still figuring out the right tools and learning path. I’ve heard about n8n, but it feels limiting for more complex workflows.
My bigger goal is to monetize these bots to help pay for my studies, so I want to learn the right stack from the start.
I’d love advice on:
The best learning path to build bots that can handle conversations, orders, and data storage
Recommended technologies (Twilio, WhatsApp Business API, Flask/Django, databases, etc.)
Any practical tips or experiences from people who’ve built similar solutions for businesses
Thanks a lot for any guidance!
r/PythonProjects2 • u/Responsible_Sand_412 • Mar 07 '26
r/PythonProjects2 • u/Virtual-Language1594 • Mar 06 '26
Hi, I am a total noob in coding. At work I was given a pdf file of electrical schematics 900+ pages long. I have to print some names of connection terminals. Instead of manually writing each name I thought about making this process shorter.
I am already did some research on pdf to excel and so on before stumbling on python and pdt to text libraries. I am asking for tips on how I could make a program that would allow me to select text and paste it into excel.
Thank you!
r/PythonProjects2 • u/Deep-Pen8466 • Mar 06 '26
Built a 3D renderer from scratch in Python. No external 3D engines, just Pygame and a lot of math.
What it does:
Renders 3D wireframes and filled polygons at 60 FPS
First-person camera with mouse look
15+ procedural shapes: mountains, fractals, a whole city, Klein bottles, Mandelbulb slices
Basic physics engine (bouncing spheres and collision detection)
OBJ model loading (somewhat glitchy without rasterizaton)
Try it:
bash
pip install aiden3drendererPython
from aiden3drenderer import Renderer3D, renderer_type
renderer = Renderer3D()
renderer.render_type = renderer_type.POLYGON_FILL
renderer.run()Press number keys to switch terrains. Press 0 for a procedural city with 6400 vertices, R for fractals, T for a Klein bottle.
Comparison:
I dont know of other 3D rendering libraries, but this one isnt meant for production use, just as a fun visualization tool
Who's this for?
Learning how 3D graphics work from first principles
Procedural generation experiments
Quick 3D visualizations without heavy dependencies
Understanding the math behind game engines
GitHub: https://github.com/AidenKielby/3D-mesh-Renderer
Feedback is greatly appreciated
r/PythonProjects2 • u/Dwengo • Mar 06 '26
r/PythonProjects2 • u/Kric214 • Mar 05 '26
Hey r/Python community! I just released AetherMem v1.0, a Python library for memory continuity in AI Agents.
What it does
AetherMem solves the "memory amnesia" problem where AI Agents forget everything between sessions. It provides persistent memory with weighted indexing based on temporal decay and emotional resonance.
Key Features
Pure Python - No external dependencies beyond standard library
Virtual Write Layer - Works in read-only environments
Resonance Engine - Time-based decay (λ=0.1/day) with emotional keyword detection
Atomic Operations - Thread-safe with configurable consistency
OpenClaw Integration - Seamless integration with OpenClaw runtime
Performance
Local retrieval: <15ms
Throughput: 1000+ ops/sec (single core)
Memory: <50MB base config
Python: 3.8+ (Windows, macOS, Linux)
Installation
pip install git+https://github.com/kric030214-web/AetherMem.gitCode Example
import aethermem
from aethermem import ContinuityProtocol, create_protocol
# Two ways to create protocol
protocol = ContinuityProtocol()
protocol2 = create_protocol()
# Basic operations
context = protocol.restore_context("my_agent")
print(f"Restored context: {context}")
# Persist conversation with importance scoring
result = protocol.persist_state(
state_vector={
"user": "What's the weather?",
"assistant": "Sunny and 72°F!"
},
importance=1,
metadata={"topic": "weather"}
)
# Get protocol statistics
stats = protocol.get_protocol_stats()
print(f"Version: {stats['version']}")
print(f"Components: {stats['components']}")Project Structure
AetherMem/
├── src/aethermem/ # Main package
│ ├── core/ # VWL implementation
│ ├── resonance/ # Temporal decay engine
│ ├── integration/ # Platform adapters
│ └── utils/ # Platform detection
├── tests/ # Comprehensive test suite
├── docs/ # Architecture diagrams
├── examples/ # Usage examples
└── scripts/ # Development toolsWhy I built this
As AI Agents become more sophisticated, they need persistent memory. Existing solutions were either too heavy (full databases) or too simple (plain files). AetherMem strikes a balance with a protocol-focused approach.
License: AGPL-3.0 (open source)
Repo: https://github.com/kric030214-web/AetherMem
Would love feedback from the Python community!
r/PythonProjects2 • u/Sea-Ad7805 • Mar 05 '26
An exercise to help build the right mental model for Python data.
The “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening. It's instructive to compare with these earlier exercises:
r/PythonProjects2 • u/SimulationCoder • Mar 05 '26
Hey everyone, I’m a beginner/intermediate coder working on a "ScenarioEngine" to automate clinical document formatting. I’m hitting some walls with data mapping and logic, and I would love some guidance on the best way to structure this.
I am building a local Python pipeline that takes raw scenario files (.docx/.pdf) and maps the content into a standardized Word template using Content Controls (SDTs).
Input: Raw trauma/medical scenarios (e.g., Pelvic Fractures, STEMI Megacodes).
Output: A formatted .docx and an "SME Cover" document.
Logic: I've implemented a "provenance" structure pv(...) to track if a field is input_text (from source) or ai_added (adlibbed).
Highlighting Logic: My engine currently highlights everything it touches. I only want to highlight content tagged as ai_added. If it’s a direct "A to B" transfer from the source, it should stay unhighlighted.
Mapping Accuracy: When I run the script, I’m only getting about 1% of the content transferred. I’ve switched to more structured PDF sources (HCA Resource Sheets) to try and lock down the field-to-content-control mapping, but I’m struggling to get the extraction to "stick" in the right spots.
Template Pruning: I need to delete "blank" state pages. For example, if a scenario only has States 1–4, I need the code to automatically strip out the empty placeholders for States 5–8 in the template.
Font Enforcement: Should I be enforcing font family and size strictly in the Python code, or is it better to rely entirely on the Word Template’s styles?
How do I best structure my schema_to_values function so it preserves the provenance metadata without breaking the Word document's XML structure? I’m trying to avoid partial code blocks to ensure I don’t mess up the integration.
If anyone has experience with python-docx and complex mapping, I’d appreciate any tips or snippets!
r/PythonProjects2 • u/Mysterious-Form-3681 • Mar 04 '26
ibis
A Python API that lets you write queries once and run them across multiple data backends like DuckDB, BigQuery, and Snowflake.
pygwalker
Turns a dataframe into an interactive visual exploration UI instantly.
katana
A fast and scalable web crawler often used for security testing and large-scale data discovery.
r/PythonProjects2 • u/Infinite_Cat_8780 • Mar 04 '26
Hey r/PythonProjects2 ,
If you are building LLM apps or agents in Python right now, you’ve probably hit the point where you need to stop users from passing sensitive data (PII) to OpenAI, or stop them from jailbreaking your prompts.
Writing custom regex or middleware for every single LLM call gets messy fast, and standard tracing tools (like LangSmith) only let you see the problem after it happens.
To fix this, we built a Python package that acts as a governance and observability layer: syntropy-ai.
Instead of just logging the prompts, it actively sits in your execution path (with zero added latency) and does a few things:
Auto-redacts PII: Catches emails, SSNs, credit cards, etc., before the payload goes out to the LLM provider.
Blocks Prompt Injections: Catches jailbreak attempts in real-time.
Traces everything: Logs tokens, latency, and exact costs across different models.
You can drop it into your existing LangChain/OpenAI scripts easily. We made a free tier (1,000 traces/mo) so devs can actually use it for side projects without putting down a credit card.
To try it out: pip install syntropy-ai
If anyone is currently wiring up custom middleware in Python to handle OpenAI security and logging, I’d love to know what your stack looks like and if a package like this actually saves you time.
r/PythonProjects2 • u/No_Estimate7237 • Mar 03 '26
I just released a small 2D puzzle-platformer inspired by portal mechanics that I built from scratch using pygame.
The game reimagines the Portal experience in 2D, focusing on portals, momentum, and logic-based puzzles instead of combat.
All 19 test chambers from the original game are recreated in 2D form.
Features:
🟠🟦 Fully recreated portal mechanics in 2D
🧩 All 19 test chambers
🎮 Controller support
👥 Local co-op on a single screen
🌐 Playable in the browser and as a desktop build
🛠️ Built-in level editor (desktop version only)
You can play it directly in the browser.
Would love any feedback!
r/PythonProjects2 • u/Mysterious-Form-3681 • Mar 03 '26
While working on a small ML project, I wanted to make the initial data validation step a bit faster.
Instead of going column by column to check missing values, correlations, distributions, duplicates, etc., I generated an automated profiling report from the dataframe.




It gave a pretty detailed breakdown:
Missing value patterns
Correlation heatmaps
Statistical summaries
Potential outliers
Duplicate rows
Warnings for constant/highly correlated features
I still dig into things manually afterward, but for a first pass it saves some time.
Curious....do you prefer fully manual EDA or using profiling tools for the initial sweep?
r/PythonProjects2 • u/Calm-Tourist-4710 • Mar 02 '26
Guys I need testers to my Kivy Project. This project acts like Expo Go for React Native this will help us build Kivy projects faster and even test our pyjnius scripts and any features we want to add to our Kivy projects, this works also as Kivy launcher to our projects.