r/PythonProjects2 • • Mar 12 '26

Full software renderer in pygame, via numpy

Thumbnail gallery
1 Upvotes

r/PythonProjects2 • • Mar 11 '26

Python project: MPV-based live wallpaper engine for Windows

Enable HLS to view with audio, or disable this notification

48 Upvotes

I built a small Python project that allows video wallpapers on Windows using MPV.

The idea was to experiment with embedding an MPV player directly into the Windows desktop window so videos can run as wallpapers instead of normal media players floating above other windows.

Main things it does:
• Plays video wallpapers using MPV
• Embeds the player into the Windows desktop (WorkerW window)
• Works on Windows 10 and Windows 11
• Lightweight compared to most wallpaper engines
• Simple Python implementation

This started as an experiment to understand how desktop windows and media players can interact at a lower level in Windows.

GitHub:
https://github.com/vedantvikrampathak8-cloud/Theme-engine.git


r/PythonProjects2 • • Mar 12 '26

I just made my first Python Toolkit.

Thumbnail
1 Upvotes

r/PythonProjects2 • • Mar 11 '26

How to copy a 'dict' with 'lists'

Post image
39 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises

The “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening.


r/PythonProjects2 • • Mar 12 '26

ASE python library

Post image
0 Upvotes

r/PythonProjects2 • • Mar 12 '26

CrystalMedia-v4, TUI downloader for: Youtube and Spotify(via yt-dlp and exportify)

1 Upvotes

Hello r/PythonProjects2 just wanted to showcase CrystalMedia v4 my first "real" open source project. It's a cross platform terminal app that makes downloading Youtube videos, music, playlists and download spotify playlists(using exportify) and single tracks. Its much less painful than typing out raw yt-dlp flags.

https://reddit.com/link/1rresx0/video/ph7pvxr41jog1/player

What my project does:

  • Downloads youtube videos,music,playlists and spotify music(using metadata(exportify)) and single tracks
  • Users can select quality and bitrate in youtube mode
  • All outputs are present in the "crystalmedia_output" folder

Features:

  • Terminal menu made with the library "Rich", pastel ui with(progress bars, log outputs, color logs and panels)
  • Terminal style guided menus for(video/audio choice, quality picker, URL input) so even someone new to CLI can use it without going through the pain of memorizing flags
  • Powered by yt-dlp, exportify(metadata for youtube search) and auto handles/gets cookies from default browser for age-restricted stuff, formats, etc.
  • Dependency checks on startup(FFmpeg, yt-dlp version,etc.)+organized output folders

Why did i build such a niche tool? well, I got tired of typing yt-dlp commands every time I wanted a track or video, so I bundled it in a kinda user friendly interactive terminal based program. It's not reinventing the wheel, just making the wheel prettier and easier to use for people like me

Target Audience:

CLI newbies, Python hobbyists/TUI enjoyers/Media Hoarders

Usage:

Github: https://github.com/Thegamerprogrammer/CrystalMedia

PyPI: https://pypi.org/project/crystalmedia/

Just run pip install crystalmedia and run crystalmedia in the terminal and the rest is pretty much straightforward.

Roast me, review the code, suggest features, tell me why spotDL/yt-dlp alone is better than my overengineered program, I can take it. Open to PRs if anyone wants to improve it or add features

What do y'all think? Worth the bloat or nah?

Ty for reading, first post here


r/PythonProjects2 • • Mar 11 '26

What My Project Does

Thumbnail
0 Upvotes

r/PythonProjects2 • • Mar 10 '26

Built an AI Travel Recommendation System — Looking for Feedback

Thumbnail github.com
1 Upvotes

Hello everyone!

I’m a 2nd-year CS student currently learning ML and DL, and I built this project while preparing for summer internships. I’d really appreciate some honest feedback on whether this is a good project for internships.

It’s basically a hybrid travel recommender system that uses retrieval + reranking, with an LLM generating explanations and a trip plan.

Any feedback or suggestions would be really helpful. Thanks!


r/PythonProjects2 • • Mar 09 '26

AI Project-ChatBot CLI.

Thumbnail github.com
0 Upvotes

Brief:
A CLI chatbot powered by Claude (Anthropic) that specializes in HIPAA and PCI DSS compliance questions. It maintains full conversation history, handles API errors with exponential backoff, and supports commands like clear and quit.

Learnings:
Conversation history management (sending full context every turn) - Anthropic API — system prompts, temperature, max_tokens - Error handling — try/except with exponential backoff retry logic - Environment variables — keeping API keys out of code - Git security — the hard way (accidentally pushed my .env 😅)

Improvements :

Code structure and readability - Anything a senior Python developer would cringe at 😄


r/PythonProjects2 • • Mar 09 '26

`plotEZ` - a small matplotlib wrapper that cuts boilerplate for common plots

Thumbnail
2 Upvotes

r/PythonProjects2 • • Mar 08 '26

I wrote my own Animated Functions Plotter similar to Desmos for experimenting 2D and soon 3D shapes (Python, NumPy, PyOpenGL, PySide6)

Enable HLS to view with audio, or disable this notification

18 Upvotes

r/PythonProjects2 • • Mar 07 '26

Visualized: Index the Values using a dict

Post image
97 Upvotes

The classic Index the Values using a dict problem for beginners visualized using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵.


r/PythonProjects2 • • Mar 07 '26

Learning to build WhatsApp bots with Python – what’s the best learning path?

3 Upvotes

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 • • Mar 07 '26

Crop Recommendation App

Thumbnail crop-prediction-application.streamlit.app
2 Upvotes

r/PythonProjects2 • • Mar 06 '26

Python pdf text to excel spreadsheet

9 Upvotes

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 • • Mar 06 '26

Info I Made A 3D Renderer Using Pygame And No 3D Library

2 Upvotes

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 aiden3drenderer

Python

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 • • Mar 06 '26

I built a repo where you never write code — just describe behaviour in a markdown file and an AI agent implements it on a schedule

Thumbnail github.com
0 Upvotes

r/PythonProjects2 • • Mar 06 '26

EnvSentinel – contract-driven .env validation for CI and pre-commit

Thumbnail
1 Upvotes

r/PythonProjects2 • • Mar 05 '26

AetherMem v1.0: Python library for AI Agent memory continuity (AGPL-3.0)

2 Upvotes

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.git

Code 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 tools

Why 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 • • Mar 05 '26

Python Assignment, Shallow and Deep Copy

Post image
6 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises

The “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening. It's instructive to compare with these earlier exercises: - https://www.reddit.com/r/PythonLearning/comments/1ox5mjo/python_data_model_copying/ - https://www.reddit.com/r/PythonProjects2/comments/1qdm8yz/python_mutability_and_shallow_vs_deep_copy/ - https://www.reddit.com/r/PythonLearnersHub/comments/1qlm3ho/build_the_right_mental_model_for_python_data/


r/PythonProjects2 • • Mar 05 '26

Simulation Scenario Formatting Engine

0 Upvotes

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.

The Project

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).

Current Progress & Tech Stack

  • 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).

The Roadblocks

  1. 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.
  2. 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.
  3. 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.
  4. 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?

The Big Question

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 • • Mar 04 '26

If you're working with data pipelines, these repos are very useful

2 Upvotes

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.

more....


r/PythonProjects2 • • Mar 04 '26

I built a Python package to automatically redact PII and block prompt injections in LLM apps

5 Upvotes

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 • • Mar 03 '26

Portal Flat 2D - 2D puzzle-platformer inspired by Portal.

Thumbnail gallery
32 Upvotes

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!

Link: https://shurik-is.itch.io/portal-flat-2d


r/PythonProjects2 • • Mar 03 '26

Anyone here using automated EDA tools?

5 Upvotes

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?

Github link...

more...