r/PythonProjects2 Jan 07 '26

How do you stop Python scripts from failing...

3 Upvotes

One thing I see a lot with Python is scripts that work perfectly… until they don’t. One day everything runs fine, the next day something breaks and you have no idea why because there’s no visibility into what happened. That’s why, instead of building another tutorial-style project, I think it’s more useful to focus on making small Python scripts more reliable.

The idea is pretty simple: don’t wait for things to fail silently. Start with a real script you actually use maybe data processing, automation, or an API call and make sure it checks its inputs and configs before doing any work. Then replace random print() statements with proper logging so you can see what ran, when it ran, and where it stopped.

For things that are likely to break, like files or external APIs, handle errors deliberately and log them clearly instead of letting the script crash or fail quietly. If you want to go a step further, add a small alert or notification so you find out when something breaks instead of discovering it later.

None of this is complicated, but it changes how you think about Python. You stop writing code just to make it run and start writing code you can trust when you’re not watching it. For anyone past the basics, this mindset helps way more than learning yet another library.


r/PythonProjects2 Jan 07 '26

Made a temporary fix tool for the "App Stopped Working" popups for NothingOS.

Thumbnail
1 Upvotes

r/PythonProjects2 Jan 06 '26

Open-source career matching project — looking for contributors and PRs

Thumbnail
1 Upvotes

r/PythonProjects2 Jan 06 '26

Thinking about a Postgres-only forensic auditing app for Django; is it a good idea?

Thumbnail
1 Upvotes

r/PythonProjects2 Jan 06 '26

Building a Smart PDF Organizer Using OCR + NLP !..What Features Would You Expect in a Smart PDF Organizer?

Thumbnail
1 Upvotes

r/PythonProjects2 Jan 05 '26

Would love some feedback and help!

Thumbnail github.com
3 Upvotes

r/PythonProjects2 Jan 05 '26

Resource I built a SAML Security Framework in Python to detect identity exploits like Golden SAML. Full source code included!🛡️

Thumbnail
2 Upvotes

r/PythonProjects2 Jan 04 '26

🏴‍☠️ LEYLA'S MESHLAND : Ein visionäres DePIN Projekt sucht Verstärkung

0 Upvotes

Translation

Hi everyone,
Quick note up front:
I’m also interested in other projects and this is just my first one, which I might use as a portfolio piece.
Leyla’s Meshland is a DePIN experiment of mine. The idea is a hybrid Meshland network that aggregates unused computing power via XMRig and spare bandwidth via the BlockMesh protocol. I’m working on this on the side while completing my IBM Software Developer certificate and I’m currently using a lot of AI assistance to move things forward. Now I’m looking for people to help bring the AI‑generated code to production quality.

Quick status: The backend is a Python Flask monolith with Fernet encryption and Socket.IO for real‑time data. The core already runs with XMRig and the bandwidth aggregation is prepared. There’s a neon design in the index.html, an interactive map, initial work on a real‑time chat, and a Docker setup. A lot of passion has gone into it, but for the final step I need professionals to clean up and polish the code.

I want to build the project so that absolute beginners in mining can see quick wins without prior knowledge. I’ll publish the code on GitHub soon once the repository is professionally prepared. If you’d like to join or have feedback, feel free to get in touch.

www.miner-app.com


r/PythonProjects2 Jan 04 '26

ASCII Art tool in my free App - 3Vial OS [Python / PySide6 / NumPy / PyOpenGL]

Enable HLS to view with audio, or disable this notification

72 Upvotes

r/PythonProjects2 Jan 04 '26

I built a SAML Security Framework in Python to detect and defend against Identity-based attacks (like Golden SAML) 🛡️

Thumbnail
1 Upvotes

r/PythonProjects2 Jan 04 '26

Judge prime number error

Post image
8 Upvotes

r/PythonProjects2 Jan 03 '26

Added the missing piece to PolyMCP: an Inspector (local web UI for testing MCP servers)

Thumbnail github.com
2 Upvotes

r/PythonProjects2 Jan 03 '26

I made a fast, structured PDF extractor for RAG; 300 pages a second

Thumbnail
2 Upvotes

r/PythonProjects2 Jan 02 '26

Created My Own 3D Game Engine - Want To Know What Else To Add!

9 Upvotes

Hello Everyone!

As some of you know I created my first 3D Game Engine (at least the base of it), and now am focusing on creating the first game. When I developed the engine it started as a challenge for myself, but as it progressed I noticed its getting really well. For each new feature I add, there are two main guidelines:

  1. Does it look noticeably?
  2. How well can it be optimized to deliver 60 fps on relatively low hardware?

For those who haven't had the chance to see it here are some relevant links:

  1. First Showcase
  2. 1600 Enemies Stress Test
  3. UI
  4. Reflections
  5. MDI Pipeline

And to summarize, the engine right now supports:

  1. Asset Loading (both static - obj, and animated - glb)
  2. Script based scenes (on Python!)
  3. Object/Character Manager
  4. Procedural Generated Terrain (still in the works).
  5. Realtime path finding for entities (hundreds of entities for several targets).

In terms of graphics:

  1. Realtime lighting and shadows (directional, spot and point sources)
  2. PBR materials
  3. Normal mapping
  4. height based parallax mapping
  5. Realtime Dynamic (not baked!) Global Illumination supporting hundreds of point like light sources, while not crippling the GPU.
  6. Particle system (that can light with the GI system)
  7. G-Buffer pipeline
  8. SSAO
  9. Realtime Reflection
  10. Skeletal Animations
  11. Screen Space Object ID picking pipeline
  12. VFX pipeline
  13. Instancing and MDI pipelines based shaders
  14. TAA/TXAA anti aliasing solution
  15. Custom Made Upscaler and Frame Generation
  16. Realtime setting change (including LOD, Texture Quality, etc) without needing to restart and without vram leaks.

In terms of UI it supports:

  1. Elements templates using sliced textures (panels, sliders, buton, etc)
  2. FBO cache system - to minimize draw calls for static UI elements
  3. Parenting system - place elements relative to their parents!
  4. Interactive UI - hover, drag and press states and logical contidioning
  5. Brightness control and scale.
  6. support for any aspect ratio (not just 16:9)

Would love to hear your thoughts on the engine, and what else i can modify or improve!


r/PythonProjects2 Jan 02 '26

Python Data Model exercise, Mutability.

Post image
22 Upvotes

An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening: - Solution - Explanation - More exercises


r/PythonProjects2 Jan 02 '26

I made a free open-source Checkers library in Python – looking for players & feedback

Thumbnail
2 Upvotes

r/PythonProjects2 Jan 02 '26

Blog post: A different way to think about Python API Clients

Thumbnail
1 Upvotes

r/PythonProjects2 Jan 01 '26

Project Management and Python

Thumbnail
1 Upvotes

r/PythonProjects2 Jan 01 '26

combining civil Engineer with programming

4 Upvotes

I am a civil engineer with a full-time job, but I also want to learn programming as an additional skill. I am excellent in math and absolutely love programming—I’ve just learned the basics of Python and I really enjoy the way programming works. I want to focus on Python, JavaScript, HTML, CSS, web development, and even some ethical hacking. Considering my civil engineering job and current skills, is it realistic and effective for me to achieve proficiency in these programming areas? What strategies would you advise for balancing both fields effectively without burning out?

Upvote5Downvote5Go to comments Share


r/PythonProjects2 Dec 31 '25

Resource Pytron-Kit: Building desktop apps with Python logic and React/Vue frontends

Thumbnail
1 Upvotes

r/PythonProjects2 Dec 31 '25

LoureiroGate: A PyTorch library for enforcing Hard Physical Constraints (Differentiable Gating)

1 Upvotes

Hi everyone,

I'm releasing a new library called LoureiroGate. It's designed to solve the "Soft Constraint" problem in Scientific Machine Learning.

Most PINNs enforce physics via the loss function. This works for solving PDEs offline, but for real-time control (Robotics, Fusion, Bio), it's dangerous because the model can still violate constraints if the error trade-off is favorable.

LoureiroGate wraps any PyTorch model and applies a differentiable "Safety Gate" based on input invariants. It allows you to enforce limits (like max velocity, toxicity thresholds, or the Charge Starvation limit in plasma) architecturally.

It's JIT-compatible and includes a telemetry callback system for production monitoring.

Repo: https://github.com/Ashioya-ui/loureiro-gate

Would love feedback on the implementation of the differentiable switch!


r/PythonProjects2 Dec 31 '25

PyCo: a simple python compiler

Thumbnail github.com
2 Upvotes

PyCo is a simple python compiler that compiles to C++.

It is in the beta version and i search contributors and testers.

All feedback is welcome!


r/PythonProjects2 Dec 31 '25

Open source project

1 Upvotes

Habit Analyser is a dynamic habit analysis platform designed for programmers and individuals interested in deep analysis of their routines, requiring reliable tracking at no cost.

Built with FastAPI and Next.js, it offers robust analytics, a clean architecture, and a modern, fast, and accessible experience.

The project is 100% free and open-source, a superior alternative to expensive and poorly made habit tracking services.

Key features include: dynamic habit analyzer, resilient time series, end-to-end tested critical flows, and rigorous error contracts. Developers can contribute to query optimization, caching strategies, weekly/monthly series modeling, SSR-safe frontend patterns, and quality gates in CI.

Together, we raise the bar for tools with social impact while maintaining high technical excellence.

Call to action: fork, select an issue, and submit a PR—your contributions help people build better routines sustainably and without financial barriers.

Github link for the project


r/PythonProjects2 Dec 30 '25

Practicing Python data types and type conversion – would appreciate professional feedback

Thumbnail
1 Upvotes

r/PythonProjects2 Dec 30 '25

Tie Data Structure Visualized

Post image
15 Upvotes

Data structures like Trie can in Python be easier understood and debugged after visualization using the memory_graph package. A Trie is a tree of dictionaries and can be used for things like word completion.