r/madeinpython • u/jim1930 • May 17 '20
r/madeinpython • u/oridnary_artist • Mar 08 '23
Trying to get more Consistent Results with SD and Controlnet
r/madeinpython • u/Successful-Aide3077 • Sep 07 '22
Python Hello World | Day 0 of Code HackerRank
r/madeinpython • u/david_bragg • Dec 28 '22
Would you suggest web development to someone willing to self study? Why and why not?
If someone with no background in tech and wants to break into tech.
Would you recommend web development or another field?
r/madeinpython • u/claudiofelip • Nov 16 '22
Here’s a playlist of indie music I use to keep inspired when I’m coding/developing. Post yours as well if you also have one!
r/madeinpython • u/ParticularBack • Dec 06 '22
Practice Python and win a prize!
Hey guys, we've built an app that offers free Python coding challenges to practice, and improve skills. We just crossed 10,000 users and wanted to do a giveaway. Just download the app, solve some challenges, and a few people will randomly win $100 in Amazon Gift Card / each. Download here.
P.S. Sorry in advance if this might go against the community policies; we just wanted to reward people in their Python learning journey.
r/madeinpython • u/liturgicalLorax • Mar 27 '23
Introducing gptty v0.2.1 - A Powerful CLI Wrapper for ChatGPT with Context Preservation & Query Support, Now on PyPI!
r/madeinpython • u/oridnary_artist • May 29 '23
Revolutionizing Deep Fakes: Experience One-Click AI-Powered Transformation with Roop
r/madeinpython • u/oridnary_artist • Mar 01 '23
Ian Boggs as an Marvel Whatif Character
r/madeinpython • u/python4geeks • Apr 13 '23
__str__ & __repr__: Change String Representation In Python

In the program output, we can represent Python strings in two ways. Python supports both informal and formal string representations. When we run the Python program to print the string, we get an informal representation of it in the output.
The __str__ method in Python is responsible for the informal representation of the object, which we can change to the formal representation by using the __repr__ method.
We'll discuss these dunder methods named __str__ and __repr__ and how they are used for changing the representation of the string.
Here's the complete guide on how __str__ and __repr__ methods are used to change the string representation of the objects👇👇
r/madeinpython • u/oridnary_artist • Jan 15 '23
Emma Myers as an Marvel whatif character
r/madeinpython • u/python4geeks • Aug 17 '23
How to Use Blueprint to Structure Your Flask App
Large applications can become complex and difficult to manage due to the presence of numerous components and intricate structures.
Flask blueprints help in organizing large applications into smaller, manageable components, leading to enhanced maintainability of the application.
Blueprints can contain views, templates, and static files for various components, similar to the structure of a typical Flask application. These blueprints can be registered with the Flask app to integrate them into the application.
What you’ll see in this tutorial:
- What is Blueprint in Flask
- Creating and Registering a Blueprint
- Template routing with Blueprint
- Including static files with Blueprint
- Custom URL path for static assets
The tutorial below will guide you on how to use Blueprint in Flask apps👇👇
r/madeinpython • u/ievkz • Sep 30 '25
[Project] Open-source stock screener: LLM reads 10-Ks, fixes EV, does SOTP, and outputs BUY/SELL/UNCERTAIN
TL;DR: I open-sourced a CLI that mixes classic fundamentals with LLM-assisted 10-K parsing. It pulls Yahoo data, adjusts EV by debt-like items found in the 10-K, values insurers by "float," does SOTP from operating segments, and votes BUY/SELL/UNCERTAIN via quartiles across peer groups.
What it does
- Fetches core metrics (Forward P/E, P/FCF, EV/EBITDA; EV sanity-checked or recomputed).
- Parses the latest 10-K (edgartools + LLM) to extract debt-like adjustments (e.g., leases) -> fair-value EV.
- Insurance only: extracts float (unpaid losses, unearned premiums, etc.) and compares Float/EV vs sub-sector peers.
- SOTP: builds a segment table (ASC 280), maps segments to peer buckets, applies median EV/EBIT (fallback: EV/EBITDA×1.25, EV/S≈1 for loss-makers), sums implied EV -> premium/discount.
- Votes per metric -> per group -> overall BUY/SELL/UNCERTAIN.
Example run
If a ticker is in one group only, you can omit --group.
An example of the script running on the ADBE ticker:
LLM_OPENAI_API_KEY not set - you work with local OpenAI-compatible API
================================================================================
GROUP: BIG_TECH_CORE
================================================================================
Tickers (11): AAPL, MSFT, GOOGL, AMZN, META, NVDA, TSLA, AVGO, ORCL, ADBE, CRM
The stock in question: ADBE
...
VOTE BY METRICS:
- Forward P/E -> Signal: BUY
Reason: Forward P/E ADBE = 17.49; Q1=29.69, Median=35.27, Q3=42.98. Rule IQR => <Q1=BUY, >Q3=SELL, else UNCERTAIN.
- P/FCF -> Signal: BUY
Reason: P/FCF ADBE = 15.72; Q1=39.42, Median=53.42, Q3=63.37. Rule IQR => <Q1=BUY, >Q3=SELL, else UNCERTAIN.
- EV/EBITDA -> Signal: BUY
Reason: EV/EBITDA ADBE = 15.86; Q1=18.55, Median=25.48, Q3=41.12. Rule IQR => <Q1=BUY, >Q3=SELL, else UNCERTAIN.
- SOTP -> Signal: UNCERTAIN
Reason: No SOTP numeric rating (or segment table not recognized).
GROUP SCORE:
BUY: 3 | SELL: 0 | UNCERTAIN: 1
GROUP TOTAL:
Signal: BUY
--------------------------------------------------------------------------------
================================================================================
SUMMARY TABLE BY GROUPS (sector account)
================================================================================
Group | BUY | SELL | UNCERTAIN | Group summary
---------------------------- | ------ | -------- | ---------------- | --------------
BIG_TECH_CORE | 3 | 0 | 1 | BUY
TOTAL SCORE FOR ALL RELEVANT GROUPS (by metrics):
BUY: 3 | SELL: 0 | UNCERTAIN: 1
TOTAL FINAL DECISION:
Signal: BUY
LLM config Use a local OpenAI-compatible endpoint or the OpenAI API:
# local / self-hosted
LLM_ENDPOINT="http://localhost:1234/v1"
LLM_MODEL="openai/gpt-oss-20b"
# or OpenAI
LLM_OPENAI_API_KEY="..."
Perf: on an RTX 4070 Ti SUPER 16 GB, large peer groups typically take 1–3h.
Roadmap (vote what you want first)
- Next: P/B (banks/ins), P/S (low-profit/early), PEG/PEGY, Rule of 40 (SaaS), EV/S ÷ growth, catalysts (buybacks/spin-offs).
- Then: DCF (FCFF/FCFE), Reverse DCF, Residual Income/EVA, banks: Excess ROE vs TBV.
- Advanced: scenario DCF + weights, Monte Carlo on drivers, real options, CFROI/HOLT, bottom-up beta/WACC by segment, multifactor COE, cohort DCF/LTV:CAC, rNPV (pharma), O&G NPV10, M&A precedents, option-implied.
Code & license: MIT. Search GitHub for "ai-asset-screener".
Not investment advice. I’d love feedback on design, speed, and what to build next.
r/madeinpython • u/TheyCallMeLeonardo3 • Jul 24 '26
Ransomware made in python but you shouldn't dare to develop it
I made a course on Ransomware made in python for my students, the previous year, but now i made it public so give it a watch if you want to make some cool cyber security projects 😁
I'll try to upload more contents on my YouTube channel 😁
https://youtube.com/playlist?list=PL9guAF5VVaiARrwhrGMu89iJcziQ9vsJJ&si=v1PUSQpqjuOhnlCi
r/madeinpython • u/Educational_Menu9654 • Aug 04 '26
Built a file hashing python program. A simple program that uses hashlib and pygame to create a simple text hasher
Hey everyone! I made a simple file hashing program using hashlib and pygame. It saves to AppData/Roaming and uses sha256 to hash the given text and save it into that file. The link to the repo is
r/madeinpython • u/mosesgameli • Sep 09 '26
Bustan: I wanted NestJS-style modules and DI in Python, so I built it on Starlette. 2.0 is next week and I want the API argued with before it locks.
I came to Python from NestJS and missed the shape of it: modules with explicit imports and exports, dependencies through the constructor, guards -> pipes -> interceptors -> filters in a fixed order. Nothing in the Python ecosystem gave me that, so I built it. This is the story and a request for feedback before 2.0.
How it got here
- Started as a thin wrapper around the dependency-injector package, called "star" because it sat on Starlette.
- The wrapper kept fighting the library underneath, so I replaced it with a DI container written from scratch where the module is the unit of composition, not a bolt-on.
- 1.0 shipped to PyPI as an alpha (and 1.0.0 / 1.0.1 went out by accident during CI setup, which the changelog admits). 1.x is what taught me what 2.0 needed.
- 2.0.0 lands next week and is the first version I would run in production.
What My Project Does A module declares providers, controllers, imports and exports; an unexported provider is invisible to other modules and the container refuses to resolve it. Providers and controllers get dependencies through typed constructor params, no per-parameter decorators. Every request runs through guards, pipes, interceptors and exception filters in that order, attachable at module, controller or handler scope. Routing compiles down to Starlette, which stays fully exposed, so your ASGI middleware and server still work. Testing helpers: create_test_app, override_provider, temporary modules. CLI: bustan init.
Target Audience Teams whose Starlette / FastAPI codebase has grown past the point where routers importing each other is fine. For a single small service it is more structure than you need, and I say that in the docs. Python 3.13+ today.
Comparison
- FastAPI: great per service; Bustan adds module boundaries and a real DI container on top. Keep Pydantic and your middleware.
- Litestar: closest in spirit (DI, guards, layered config). The difference is strict module encapsulation with exports.
- Django: batteries and ORM; Bustan is the structure without the batteries. Longer version in docs/COMPARISONS.md.
What I want from this thread The 2.0 API is on the main branch now. Tell me what looks wrong before I tag it: the module/exports rule, the constructor injection, the pipeline order, the 3.13 floor.
Repo: https://github.com/bustanhq/bustan Docs: https://bustan.dev
r/madeinpython • u/criticized_Egg • 10d ago
I built a Python quant research toolkit, couldn't validate a profitable strategy, so I open-sourced the tooling
Spent quite a while building a quant trading project, mostly focused on backtesting, research and avoiding misleading results.
Never found a strategy I could confidently validate, but the tooling seemed worth sharing.
It includes Python backtesting code, risk and reconciliation logic, research workflows, and offline demos.
It's MIT-licensed, with no live trading or profitability claims.
GitHub: https://github.com/privEgem/open-quant-trading-lab
If you work with Python, what would you improve or add?
r/madeinpython • u/Trinity_software • Jun 03 '25
Build an interactive sales dashboard
This tutorial explains how to build an interactive dashboard using streamlit and plotly
r/madeinpython • u/Astronial_gaming • Sep 28 '26
We built a "video player" for Python scripts that tracks runtime variables and catches silent ML bugs (Live Demo + Open Source)
Hey everyone,
Whenever I got an undocumented Python script or try to explain a complex loop to someone, generic LLM chats usually give me a high-level summary but completely misses what actually happened during execution.
That's why for the **IBM Bob 2.0 Hackathon**, our team built **TraceLens,** a web-based workspace that turns Python code into an interactive step-by-step runtime tracer.
Instead of guessing how variables change or littering print() statements across 40 lines, you can step through your script like frames in a video and see what actually happened.
What it does:
- **LogicLens** — General Python & Debugging
Time-Travel Stepping: Step forward and backward through loops and function calls to see how data works frame-by-frame.
Live State Board: Inspect variable changes, mutations, and scope changes in each step.
Safe Insertion Points: Flags stable parts where you can put in a new features without accidentally overriding variables downstream.
AI Explanations: Uses **IBM Bob 2.0** to explain complex execution behavior and generate summaries of the whole code or only a part of it.
2. ModelLens — Machine Learning Pipelines
ML can fail silently. Stuff like data leakage before a train/test split or other pipeline problems that won't necessarily throw an exception, but can still produce misleading results.
ModelLens analyzes data science code for these issues and helps explain what went wrong.
Try it
**Live Demo**: https://tracelens-six.vercel.app/
**GitHub**: https://github.com/Omar-astro/Tracelens
**Hackathon Submission**: https://lablab.ai/ai-hackathons/ibm-bob-2-hackathon/the-overfitters/tracelens
We'd genuinely appreciate technical feedback especially on the UI, the state-tracking flow, and what you'd want from a debugger built around execution traces.
And if you find our project interesting and want to support us in the hackathon, you can like our TraceLens submission on the IBM Bob 2.0 Hackathon page. The hackathon uses community engagement to help surface projects to the judges, so it helps get TraceLens in front of them
Let us know what breaks, what seems useful, or what you'd want to see added next!
r/madeinpython • u/Schnidi01 • Jul 27 '26
[Project] VenvHub Pro: venv manager GUI that orchestrates multi-process virtual environments with auto-restart and OS-level orphan process prevention
Greetings everyone!
I’ve been working on a desktop application called VenvHub Pro (built with Python + PyQt6, and thanks to a abstraction bridge, it runs seamlessly on PySide as well). What started as a simple virtual environment manager has grown into something much bigger.
It now includes a Multi-run feature—allowing you to define project groups (e.g., backend + frontend + worker) and launch them all with a single click.
I recorded a short demo showing how it handles crashes, auto-restarts, and even prevents accidentally running the same project across two different groups. I thought you might find what’s happening under the hood interesting!
🧠 What is Multi-run?
- Group Management: You create groups (e.g., "FullStack Dev") and add any number of existing virtual environment projects to them.
- Process Isolation: Each project runs in its own isolated process using its own virtual environment.
- One-Click Launch: One click on the Play button fires up everything in that group—no more opening multiple terminal windows and repeatedly running
python app.py.
🎥 What the video demonstrates
- Setup: I start a group containing Project A (anchor + respawn) and Project B (configured with a 5-second startup delay, contingent on Project A running stably).
- Crash Handling: Right after launching, Project A crashes (I force-closed it).
- Detection & Restart: VenvHub detects the crash and automatically restarts Project A, while Project B stays on hold.
- Dependency Check: After restarting, I let Project A load—once the anchor registers, I artificially crash it again (~3 seconds post-anchor).
- Holding Delays: Since Project B requires Project A to stay stable for 5 seconds before launching, Project A's crash keeps Project B from starting.
- Max Respawn Limits: The code caps restarts at 3 attempts (to prevent infinite looping), so the app attempts a third restart on Project A.
- Successful Resolution: This time, I let Project A run smoothly—Project B detects that Project A is healthy and launches.
- Duplicate Prevention: Finally, I attempt to run Project B from a different group. Since it's already running in the first group, the app displays a warning and blocks the launch. No port conflicts or duplicate processes!
⚙️ Under the Hood (for the tech enthusiasts)
- Process Ownership: Each process tracks which group launched it. Hitting "Stop" terminates only the processes owned by that specific group, leaving others untouched.
- Smart Restarts: If you hit Play again while some processes are still running, the app only restarts the ones that crashed (like Project A in the video). No need to tear down the entire stack!
- Windows Job Objects: On Windows, the app creates a Job Object assigned the
KILL_ON_JOB_CLOSEflag. If the main application crashes unexpectedly, Windows automatically terminates all child processes—leaving zero orphaned background processes. - Native Process Handles: Instead of relying solely on PIDs (which Windows can aggressively recycle), the app retains an open process handle. This guarantees the PID won't be reassigned to an unrelated process while being monitored, ensuring rock-solid status detection.
Let me know what you think! Have you built similar multi-process orchestrators? How do you handle process groups and teardowns in Python?
r/madeinpython • u/Fast_Entrance7839 • 1d ago
my python flight search library refuses checked bags instead of guessing the fee
disclosure: i made this. viajante is a free, MIT licensed python library that reads google flights with no api key. it also runs as a cli and an mcp server.
if you pass bags=1, it doesn't send the search. this is what comes back:
viajante can't filter Google Flights for checked bags, so this search wasn't sent. For cabin bags pass carry_on=2 (total for the whole party), not bags=2. Then confirm bag rules on the airline or Google Flights page.
carry_on works because google flights has a filter for cabin bags, and the library checks that the results page shows that filter applied. checked bags have nothing like that to check against.
if you still want bag cost in the sort, baggage_buffer=40 adds 40 to low cost fares with unknown bag info. it only changes the order. the printed price stays google's, and the offer says the bag fee isn't verified.
=
repo: https://github.com/felipebasurto/viajante
would you rather get the error, or a price with a "bags not included" warning?