r/PythonProjects2

Image 1 — My 1st python project. Suggestion accepted
Image 2 — My 1st python project. Suggestion accepted
Image 3 — My 1st python project. Suggestion accepted
▲ 137 r/PythonProjects2+1 crossposts

My 1st python project. Suggestion accepted

This is my 1st python project I did using the knowledge i currently have.

I know that this code is very messy and unreadable(iam a absolute beginner.)

I did use chatgpt to help with choice 2 but I didn't just copy paste the code. I learnt a new function and it's use. - enumerate () function.

Rest all is my idea and my built upon my logic.

- What things could I make it better to make this code readable.

- I don't know about functions and error handling yet.

But when I learn I will implement it in this project.

Your SUGGESTIONS/COMMENTS are highly APPRECIATED :)

u/Muhammed_zeeshan — 12 hours ago
▲ 1 r/PythonProjects2+1 crossposts

Built an invoice-scanning service for our accounting team in one afternoon with Claude — sharing the architecture in case it helps someone else

Our AR team was hand-keying ~25 invoices a week into a spreadsheet. I had Claude build us a Python service that watches a network folder, extracts invoice data from any PDF dropped in (vendor, dates, totals, line items, addresses), and appends a row to a shared Excel register. Total chat-to-deployed time: about half a day, including all the deploy headaches.

The architecture, for anyone who wants to replicate this:

  • Python service on our Windows file server, registered with NSSM. Auto-starts with the host.
  • watchdog library polls the SMB share for new PDFs. Each new file goes through a pipeline.
  • Two-tier extraction: per-vendor regex templates first (free, instant, deterministic), then Azure AI Document Intelligence "prebuilt-invoice" model as a universal fallback. Azure handles OCR for scanned PDFs natively, so the same flow works whether AR drops a digital PDF or our MFP scans one from paper.
  • SQLite on the local disk is the source of truth. The shared .xlsx is a curated view that gets appended to on each batch. Delete the .xlsx and it'll repopulate fresh from the next batch — handy for resetting.
  • Failed extractions go to a Failed\ folder with a sibling .error.txt explaining why.

Cost reality check: Azure DI free tier covers 500 pages/month. At our volume (~25 invoices/week, mostly 1-2 pages) that's well under the cap. Paid tier is roughly $0.01–$0.05 per page. Cheap enough that I don't think about it.

Gotchas I ran into so others don't have to:

  • Azure returns addresses as structured objects, not strings. If you naively str() them you get the raw Python dict repr in your spreadsheet. Format them manually from street_address / city / state / postal_code.
  • On Windows Server, PowerShell 7's Restart-Service can throw "Cannot open service" against NSSM-wrapped services for no good reason. Use nssm restart <name> instead.
  • Python 3.14 is so new that some package wheels aren't published for it yet. Stick with 3.12 for production.
  • Tracking "what's new this batch" is way simpler than maintaining a watermark in DB. Just snapshot MAX(invoice_id) before and after the batch, and only project that range to the spreadsheet.

Things I'd add if/when I have time: vendor templates for our top 5 recurring vendors (cuts Azure cost to zero for those), a daily canary PDF for monitoring, swap the LocalSystem service account for a dedicated low-privilege one.

Happy to answer questions about any specific piece. The whole thing is ~1,500 lines of Python plus a deploy script.

reddit.com
u/Blake_Olson — 1 day ago
▲ 2 r/PythonProjects2+1 crossposts

Python Certification

Hey Everyone,

First off, I am on mobile & apologize for any formatting issues.

I have started my Python journey & know that I want to get certified. Now, my work gives me access to LinkedIn Learning for free. On LL, I found a Python Course that covers the 1st level certification w/ a test & eCertificate upon success.

From what I read, the current test will be revised after August 2027 requiring recertification every 5yrs; whereas current one doesn't. So, with that deadline approaching I have a goal to reach.

I have asked LL, if the course certificate would hold same weight, compared to the other options out there w/ paid testing. They have not given me a clear answer & make rethink the LL route to not waste time.

Would anyone know if the LL route is accepted in the community, or would you advise another route?

Please note, that any route I take needs to be online

Thanks 😊

reddit.com
u/Daevas0918 — 3 days ago
▲ 6 r/PythonProjects2+1 crossposts

Desarrollé un sistema escolar en Python mientras aprendía programación (feedback bienvenido)

Hola 👋, soy estudiante y estoy desarrollando un sistema escolar en Python mientras aprendo programación.

El proyecto lo he ido construyendo poco a poco y actualmente incluye:

• Gestión de estudiantes

• Sistema de notas

Menús por roles (docente, estudiante, etc.)

Estructura modular (cada parte en archivos separados)

• Uso de clases y objetos

• Manejo de archivos y JSON

He estado aprendiendo mucho sobre:

• Organización de proyectos

• Modularización del código

•Estructura de sistemas en Python

• Manejo de datos

Este es el repositorio: 👉 https://github.com/Cuz-Dev/Proyectos-Cuz-Dev

Me gustaría recibir feedback, consejos o mejoras que pueda aplicar al proyecto 🙌

Gracias por leer 😄

u/camilo-young-78 — 3 days ago
▲ 26 r/PythonProjects2+1 crossposts

Learn Python

Hi, everyone.

I wnated to ask, how one should approach learning Python if he/she is started out. And how long it will take to grasp fundaments and getting good in problem solving before starting workng on projects?

reddit.com
u/No_Preference_5890 — 3 days ago
▲ 3 r/PythonProjects2+3 crossposts

When AI agents keep repeating the same mistakes

If you’re building or running AI agents that handle real tasks — whether customer support, personal automation, internal company workflows, research, or operational work — you’ve likely run into the same issue.
The agent gets corrected by a human on a bad decision, an inaccurate statement, a wrong process, or an overcommitment. The next time, it makes the same error again. Vector memory and long context help with recall, but they rarely turn actual episodes (actions, outcomes, feedback, corrections) into structured, enforceable knowledge that prevents future mistakes.
Praxos addresses this directly. It acts as a lightweight experience layer for agents: a flight recorder that captures what happened, why it mattered, and what should be learned. It turns those episodes into:
• Reusable lessons
• Policies that can warn or block risky actions
• Evidence-backed records with sources and confidence
• Relevant context for future decisions
Example:
An agent is about to promise a specific delivery date or outcome in a response. Praxos matches it against a past case where a human had to correct a similar overcommitment. It triggers a block with the previous evidence before the output goes anywhere.
This isn’t limited to support. The same mechanism can help agents in personal task management, internal operations, research assistance, content workflows, or any scenario where repeated errors are costly or frustrating.
Technically it’s designed to be practical:
• Lightweight SQLite ledger
• Straightforward CLI (praxos record, praxos check, praxos policy add, etc.)
• Simple Python SDK
• Native MCP server for integration with tools like Claude and Cursor
• Human review queue for automatically generated lessons
• Hybrid matching that doesn’t require heavy dependencies

It’s early but already functional, and focused on a real gap: helping agents learn from experience instead of looping through the same failures.
If you’re working with AI agents in any context and dealing with this “same mistake again” problem, how are you handling operational memory and learning today? Have you tried memory graphs, persistent workflows, manual reviews, or other approaches? What still feels missing?
Interested in your experiences.

github.com
u/Just_Vugg_PolyMCP — 4 days ago
▲ 20 r/PythonProjects2+2 crossposts

ACTUNEO – Open Source African Actuarial Python Library | Looking for Contributors

Hi everyone,

I am currently building ACTUNEO, an open-source actuarial Python library focused on African and emerging market actuarial applications.

The goal is to create localized actuarial infrastructure that bridges traditional actuarial science with modern data science tools while addressing African market realities such as multi-currency environments, localized mortality assumptions, pension analytics, and insurance modeling.

ACTUNEO is built in Python and integrates with:

  • Pandas
  • NumPy
  • SciPy
  • Plotly
  • Scikit-learn

Why this project exists

Many actuarial libraries are built primarily around European or North American assumptions and datasets. African actuaries often adapt foreign assumptions due to limited localized tooling and open actuarial datasets.

ACTUNEO aims to help address this gap through open-source collaboration.

Current Progress

The project is currently building foundational modules including:

  • Mortality tables and survival models
  • Interest theory and financial mathematics
  • Life contingencies
  • Pension calculations
  • African macroeconomic data integration

Looking for Contributors

I am looking for:

  • Actuaries and actuarial students to validate formulas and assumptions
  • Python developers to improve architecture and testing
  • Data scientists interested in actuarial modeling
  • Technical writers to improve documentation and tutorials

Repository:
ACTUNEO GitHub Repository

Several issues will be tagged with:

  • good first issue
  • help wanted
  • documentation
reddit.com
u/Aggravating_Bat_2009 — 4 days ago
▲ 56 r/PythonProjects2+1 crossposts

I built a Source 2004–2008 inspired game engine in Python from scratch

I’ve been working on a small game engine called Kinesis Engine for about 4 months and wanted to share it here for feedback.

It’s a 3D engine heavily inspired by the feel and interaction design of mid-2000s Source games, but rebuilt entirely from scratch with a much lighter stack. The core is written in Python with an OpenGL renderer and physics system, while gameplay is handled through Lua scripting, similar in spirit to Love2D.

The engine also includes its own set of simple file formats like .kmap, .kmat and .kp, and a built-in level editor called ScrewDriver that’s inspired by Hammer, designed to work directly with the engine in real time. The idea is to make the workflow fast enough that you can go from empty folder to playable prototype very quickly.

Right now it’s still in development and not fully stable, but it’s already usable for small experiments and prototype games. I’m mostly focused on improving performance, stability, and the overall tooling experience before thinking about a wider release.

I’d be really interested in feedback from other engine or tooling developers, especially on architecture choices or workflow design.

Showcase video here : https://www.youtube.com/watch?v=AOU9WtYAd34

I’m aware it’s currently built in Python, but once I’m more confident with C++, I plan to eventually port it over.

u/stryck5425 — 4 days ago
▲ 1 r/PythonProjects2+1 crossposts

What to do now? I have just completed the basics, what to do?

Just completed basics like loops, oops etc. But, never build a big project... What interesting projects should I build? What can i learn next.. Please suggest resources

reddit.com
u/NiceCardiologist8657 — 4 days ago
▲ 17 r/PythonProjects2+1 crossposts

Build an Email-Agent Using Langchain + Ollama. Repo: https://github.com/AnshMNSoni/email-agent.git

u/AnshMNSoni — 4 days ago
▲ 12 r/PythonProjects2+1 crossposts

FFGear: A Multi-threaded, High-performance FFmpeg Decoder API in Pure Python

FFGear provides direct, transparent access to the full FFmpeg Decoder feature-set, including:

  • Hardware-Accelerated Decoding — GPU-powered decoding with CUDA/CUVID and other hardware-accelerated backends 
  • Flexible Pixel Formats — support for any FFmpeg pixel format (e.g., bgr24, yuv420p, gray) with optional OpenCV compatibility patches for YUV/NV layouts.
  • Per-Frame Metadata Extraction — asynchronous frame metadata extraction through the showinfo filter.
  • Live Complex Filtergraphs — support for live simple and complex FFmpeg filter pipelines.
  • Wide Source Support — capture USB, virtual, and IP camera feeds by index similar to OpenCV, along with support for multimedia files, image sequences, desktop screen capture, and network streams (HTTP(s), RTSP/RTP, etc.).

Get Started here: https://abhitronix.github.io/vidgear/latest/gears/ffgear/

u/abhi_uno — 4 days ago
▲ 31 r/PythonProjects2+2 crossposts

A python-numba based ray tracer

This is python-numba based ray tracer, along with a BVH implementation.

This ray tracer can render this image, with 1080p quality, 16 rays per pixel, 5 bounces per ray, in a bit less than 5 minutes. What do you guys think?

The repo for this project is available at https://github.com/RonnyGN/RayTraceTriangles, people can find the documentation in the README.md of this repo, along with somewhat well written comments throughout the project.

u/Busy-Astronaut8118 — 5 days ago
▲ 126 r/PythonProjects2+17 crossposts

Built an open-source one-prompt-to-cinematic-reel pipeline on a single GPU — FLUX.2 [klein] for character keyframes, Wan2.2-I2V for animation, vision critic with auto-retry, music + 9-language narration in the same pipeline

Shipped this for the AMD x lablab hackathon. Attached video is one of the actual reels the pipeline produced - one English sentence in, finished mp4 with characters, story, music, and voice-over out. ~45 minutes end-to-end on a single AMD Instinct MI300X. Every model is Apache 2.0 or MIT.

Pipeline (8 stages, all sequential on the same GPU):

  1. Director Agent - Qwen3.5-35B-A3B (vLLM + AITER MoE) plans 6 shots from one sentence, returns structured JSON with character bibles, shot prompts, music brief, per-shot voice-over script, narration language
  2. Character masters - FLUX.2 [klein] paints one canonical portrait per character. No LoRA training step - reference editing pins identity across shots by construction
  3. Per-shot keyframes - FLUX.2 again with reference image. Sub-second per keyframe after warmup
  4. Animation - Wan2.2-I2V-A14B, 81 frames @ 16 fps native. FLF2V for cut:false continuation arcs (last frame of shot N anchors first frame of shot N+1)
  5. Vision critic - same Qwen3.5-35B reloaded with 10 structured failure labels (character drift, extras invade frame, camera ignored, walking backwards, object morphing, hand/finger artifact, wardrobe drift, neon glow leak, stylized AI look, random intimacy). Bad clips re-render with targeted retry strategies (different seed, FLF2V anchor, prompt simplification)
  6. Music - ACE-Step v1 generates a 30s instrumental from Director's brief
  7. Narration - Kokoro-82M, 9 languages. Director picks language to match setting (Tokyo→Japanese, Paris→French, Mumbai→Hindi)
  8. Mix - ffmpeg with per-shot vo aligned via adelay

Wan 2.2 specifics (the bit this sub will care about):

  • 1280×720, not 640×640 default. Costs more but matches what producers want
  • 121 frames at 24 fps was my first attempt - gave temporal rippling. Switched to 81 @ 16 fps native (the distribution Wan was trained on) and it cleaned up
  • flow_shift = 5 for hero shots, 8 for b-roll (upstream wan_i2v_A14B.py defaults)
  • Negative prompt: verbatim Chinese trained negative from shared_config.py. umT5 was multilingual-pretrained against those exact tokens. English translation is observably weaker
  • Camera language: ONE camera verb per shot, sentence-case, placed first ("Tracking shot following from behind"). Multiple verbs in one prompt cancel each other out
  • Avoid the word "cinematic" - triggers Wan's stylization branch, gives the AI look. Use lens/film tags instead ("Arri Alexa, anamorphic, 35mm film grain")

Performance work:

  • ParaAttention FBCache (lossless 2× on Wan2.2)
  • torch.compile on transformer_2 (selective, the dual-expert MoE makes full compile flaky) - another 1.2×
  • AITER MoE acceleration on Qwen director (vLLM)
  • End-to-end: 25.9 min → 10.4 min per 720p clip on MI300X

Why a single MI300X: 192 GB HBM3 lets a 35B MoE, 4B diffusion, 14B I2V MoE, 3.5B music, and a TTS share the same card sequentially. Same stack on a 24 GB consumer GPU would need 4-5 boxes wired together.

Code (public, Apache 2.0): https://github.com/bladedevoff/studiomi300

Hugging Face (documentation, like this space 🙏) https://huggingface.co/spaces/lablab-ai-amd-developer-hackathon/studiomi300

Live demo on HF Space is temporarily offline while infra restores - should be back within hours. In the meantime the showcase reels in the repo are real pipeline outputs, no human re-edited shots.

Happy to dig into AITER MoE setup, FBCache tuning, FLF2V anchoring, or the vision critic's failure taxonomy in comments.

u/Inevitable-Log5414 — 8 days ago

The first project I completed and released into production as a student!

I'm a university student from Moldova, and I just completed my first project. My website is a game catalog and price aggregator.

I started this website with the idea of ​​creating something cool and useful. I settled on the idea of ​​a game price aggregator because I understand how tedious and challenging it can be to find a really good deal on a game I'm interested in.

I used Django as the backend, Postgres as the database, and the "meilisearch" search engine. It was exciting to figure everything out and put it all together to make it work. It was exhausting, but exciting.

I realize there's still a lot I don't know, and a lot that could be added to the site. So I'm happy to hear any criticism and suggestions on how to improve it.

https://game-vault.dev

reddit.com
u/Itachi_22 — 5 days ago
▲ 161 r/PythonProjects2+14 crossposts

Starting today, I declare scraping free again.

I got tired of anti-bot systems constantly breaking my Playwright AI agent, so I built Invisible_Playwright: an open-source, MIT-licensed Playwright and Firefox fork patched at the C++ level.

Instead of reusing the same noisy automation fingerprint, Invisible_Playwright generates a different but internally consistent browser fingerprint for each session. The goal is to remove the Playwright automation signals while keeping the browser environment coherent and reproducible.

Category Invisible_Playwright result
Fingerprint generation ✅ Different, coherent per-session fingerprint
WebRTC ✅ Pass — no public IP leak
PixelScan ✅ Pass — no inconsistencies
CreepJS ✅ Pass — 0 lies
SannySoft ✅ Pass — all green
BrowserLeaks WebRTC ✅ Pass — no public IP leak
reCAPTCHA v3 ✅ Pass — 0.90
Fingerprint Pro ✅ Pass — bot=false, tampering=false
Cloudflare / Turnstile ✅ Pass
hCaptcha ✅ Pass
DataDome-style checks ✅ Pass
Kasada-style checks ✅ Pass
Akamai-style checks ✅ Pass
Imperva-style checks ✅ Pass
HUMAN / PerimeterX-style checks ✅ Pass
Arkose-style checks ✅ Pass

Repo: https://github.com/feder-cr/invisible_playwright

github.com
u/bolaretyr — 8 days ago
▲ 2 r/PythonProjects2+3 crossposts

Pulumi Gcp And Python Up And Running

I focus on the practical path to getting started quickly while still building a solid foundation. That includes setting up the Pulumi project, configuring the GCP provider, working with a Python-based infrastructure definition, and understanding how Pulumi tracks state and applies changes. I also cover the basic developer workflow for previewing updates, deploying resources, and making iterative changes safely. The goal is to make the first experience with Pulumi and GCP feel approachable, especially if you already know Python and want to use that skill set to manage cloud resources.

youtu.be
u/Efficient-Public-551 — 5 days ago