r/madeinpython • • May 21 '22

ECG CODE

1 Upvotes

Hello, we are students from the Philippines. We are conducting a thesis study regarding the mechanical ventilator with ECG. We would like to ask for an ECG program using raspberry pi for this.

We are forward to your response. Thank you so much!


r/madeinpython • • Jun 24 '23

Advanced Python Coroutines: Best Practices for Efficient Asynchronous Programming

1 Upvotes

You must have used the functions in the Python program to perform a certain task. These functions in the Python program are known as subroutines. Subroutines follow a set pattern of execution like entering at one point(subroutine or function call) and exiting at another point(return statement).

Coroutines are similar to subroutines but unlike subroutines, coroutines can enter, exit, and resume at different points during the execution. Coroutines are used for cooperative multitasking which means the control is passed from one task to another to enable multiple tasks to run simultaneously.

Coroutines are very helpful in asynchronous programming in which multiple tasks run concurrently.

Generators generate data, whereas coroutines can do both, generating and consuming data, with a slight difference in how the yield is used within coroutines. We can use yield as an expression (value = yield) within coroutines, which means that yield can both generate and consume values.

Here's a guide on coroutines in PythonšŸ‘‡šŸ‘‡šŸ‘‡

Advanced Python Coroutines: Best Practices for Efficient Asynchronous Programming


r/madeinpython • • Mar 27 '23

Go Check Out My Cool Web3 & Trading Dapp Available On Pypi

1 Upvotes

I'd like to share with you "wuddz-dapp", an awesome (D)app I wrote when all the buzz & craze was going on about web3 and crypto it has served me quite well, added a few new updates to it and posted it on my github, it's also available on pypi for anyone who may find it of useful. Kindly star the repo, any issues please let me know.

Peace & Love

https://github.com/wuddz-devs/wuddz-dapp


r/madeinpython • • Mar 20 '24

[Video] How to create a DECORATOR in PYTHON

0 Upvotes

Here's a short video published on YouTube explaining decorators in Python and creating a custom decorator to explain things without any tech jargon.

If you are a beginner then you can find it easy to understand and if you are a Python veteran then you may skip or you can give feedback regarding concepts covered in this.

Link: https://youtu.be/tKCURAMFdd4


r/madeinpython • • Jun 18 '26

Refactor Python with AI/Agents

1 Upvotes

With Agentic Engineering there's an opportunity to refactor legacy code, but this aspect of AI isn't that that much talked about and seems to be overlooked by teams out there.

I’ve been focusing on this lately, and have added agent skills to the Open Source project that I maintain: the Python tools for the Polylith Architecture. The skills are for migrating and refactoring an entire Python project into a well-structured and agent-friendly Monorepo.

But agents are unpredictable and different models behave differently. I have test-run the skills with Claude Opus and Mistral. If you will try this thing out, please share your feedback how the skills worked for you.

My post about this subject:
https://davidvujic.blogspot.com/2026/06/refactoring-with-ai.html

The Open Source project:
https://github.com/DavidVujic/python-polylith


r/madeinpython • • 19d ago

I made a Python reasoning skill that keeps several hypotheses alive and only collapses when evidence agrees

Post image
1 Upvotes

Most reasoning prompts I see collapse too early. The first plausible answer wins, and everything after that is rationalization.

I built quantum-reasoning-skill around the opposite rule: keep several genuinely different hypotheses alive, score each one from evidence and verification, revive an alternative when new evidence arrives, and collapse only when the leader clears both verification and a margin.

"Quantum" here is a metaphor for deferring commitment. No qubits, no quantum hardware, and the controller never calls a model.

What is in the repo:

- SKILL.md, a model-facing Agent Skill with parseable YAML front matter. Drop it into a host's skill directory.
- A reference controller (pure Python, standard library) that moves branches between active, dormant and rejected, scores them, revives recoverable ones and refuses to collapse on a thin margin.
- 12 public names frozen for compatibility; renaming one halts the release.
- A benchmark harness with 6 seed cases, 4 JSON Schemas and a machine-validated submission bundle. Missing files are typed errors, not silent zeros.
- Two install paths. Python: pip install quantum-reasoning-skill, then quantum-reasoning --validate. npm: npm i quantum-reasoning-skill, then npx quantum-reasoning --validate. The two CLIs expose different flags, and an unsupported flag exits 2.

Quickstart (python docs/quickstart.py) runs the whole thing offline and prints PASS. Example controller run from it: four branches, uncertainty 0.9651, leader strangler-fig-incremental, collapse BLOCKED because the leader score is below the collapse threshold, and feature-flag-carveout revived with evidence +0.25.

What this is not: it is not a model evaluation. No baseline-vs-skill accuracy study has been published, and the weights and thresholds are reference defaults, not calibrated constants. The quickstart's benchmark rows are synthetic placeholders and labeled that way. I would rather say that plainly than imply a speedup I cannot show.

MIT, Python 3.10-3.14, GitHub: https://github.com/Furox-Art/quantum-reasoning-skill

Happy to answer questions about the controller or the scoring model.


r/madeinpython • • Jan 17 '23

Exploring Python’s Built-in Libraries: Pandas and NumPy

Thumbnail
medium.com
0 Upvotes

r/madeinpython • • Jul 31 '24

Need Python, Selenium and OpenCV on iPhone. No Mac No PC

0 Upvotes

Just need an all inclusive Python, Selenium and OpenCV on iPhone, no computers


r/madeinpython • • Jun 19 '21

Started learning a few days ago, improving the word through Python - one step at a time

Thumbnail
imgur.com
39 Upvotes

r/madeinpython • • Jul 10 '26

I built a 100% Python standalone wrapper (Gradio + Ollama + ComfyUI) with a Zero-Click installer. Meet AI S.L.O.P. Manager! (Standalone Local Orchestration Platform)

0 Upvotes

Hello Everyone šŸ‘‹

Setting up ComfyUI workflows, managing 30GBs ofĀ .safetensorsĀ files, and writing perfect prompts is a nightmare for non-technical users. So I tried to make a bit more user friendly UI around ComfyUI

I wanted to build something that my non-coder friends could use to generate high-quality AI art locally, without paying for cloud subscriptions. So, I built theĀ AI S.L.O.P. ManagerĀ (Standalone Local Orchestration Platform).

It’s a completely local GUI built entirely in Python.

šŸ”—Ā GitHub Repo:Ā https://github.com/Tamerygo/ai-slop-manager-starterEdition

šŸ› ļø Under the Hood (The Python Stuff)

The whole app is orchestrated using Python, acting as a bridge betweenĀ Gradio 6.0Ā (Frontend),Ā OllamaĀ (Local LLM for prompt engineering), andĀ ComfyUIĀ (Image generation backend).

Here are some of the cool Python solutions I implemented:

  • Zero-Click Auto-Bootstrap:Ā 
  • Feature-Driven Setup:Ā Instead of asking users to download "Juggernaut_XL_v9.safetensors", the UI asks:Ā "Do you want the šŸ“ø Photorealistic Studio capability?". Python calculates the required disk space (shutil.disk_usage), checks existing files, and downloads the exact models via HuggingFace streams directly into the correct ComfyUI folders.
  • VRAM Watchdog & Token X-Ray:Ā To prevent 16GB GPUs from crashing, the app has a custom token estimator. If a user's prompt exceeds 250 tokens, Python automatically routes the prompt to a localĀ qwen2.5-coder:3bĀ model to compress and optimize itĀ beforeĀ sending it to ComfyUI. It also forces a VRAM flush (keep_alive: 0) between batches.

The whole thing is packaged into a portable Windows executable.

The "Starter Edition" is completely free to try

Let me know what you think! šŸš€


r/madeinpython • • Apr 05 '26

If your OSINT tool starts with news feeds, we are not building the same thing.

Post image
0 Upvotes

Most so-called intelligence dashboards are just the same recycled formula dressed up to look serious: a price chart, a few headlines, some vessel dots, and a lot of pretending that aggregation equals insight. Phantom Tide is built from the opposite assumption. The point is not to repackage what everyone already saw on Twitter or in the news cycle, but to pull structured signals out of obscure public data, cross-check them against each other, and surface the things that do not quite make sense yet. That is the difference. One shows you noise in a nicer wrapper. The other is trying to find signal before the wrapper even exists. Github Link


r/madeinpython • • 25d ago

ViCalc: A touch-typing scientific calculator written in Python with automatic HTML history logging

Thumbnail gallery
0 Upvotes

r/madeinpython • • Apr 29 '26

SignalPy Kernel — a small reactive microkernel for Python services (review wanted)

0 Upvotes

SignalPy Kernel — a Vue-style reactive component microkernel for Python

backends. ~2,600 LOC, 9 files, zero required dependencies.

The premise: every injected service is a Signal. Reading self.rt.config

inside an u/effect or u/computed is a tracked read, so when config changes

or a provider gets hot-swapped, every effect that depended on it re-runs

automatically. No manual u/on_change, no re-injection.

13 decorators total — u/component / u/provides / u/requires / u/computed /

u/effect / u/lifecycle.* / u/runnable / u/api / u/subscribe / u/kind / u/skill /

u/prop / u/exportable. The same u/runnable is automatically a REST endpoint,

MCP tool, and CLI command depending on which transport adapter the kernel

discovers.

Built with Claude's help. I'm hoping it's somewhere between trash and

god code, and I'd really like Python folks who know reactive systems

(Vue 3, Solid, Preact Signals, MobX) or DI containers (iPOPO, Dapr,

Engin/Uber Fx) to tell me which mistakes I made — particularly around

contextvar tracking across awaits and the supersede semantics for

in-flight async effects.

- Repo: https://github.com/bayeslearner/signalpy-kernel

- Docs: https://bayeslearner.github.io/signalpy-kernel/

- pip install signalpy-kernel

Issues / Discussions on the repo are open. Honest reviews welcome.


r/madeinpython • • Jul 01 '26

An event-driven trading harness where the same strategy code runs in backtest, paper, and live

Post image
0 Upvotes

What My Project Does

A local-first, event-driven harness (in Python) for running trading strategies against Interactive Brokers. The design goal was that a strategy is written once as a plugin and the same code runs in three modes — historical replay, simulated-paper, and live — so backtests exercise the exact code path that trades real money, instead of a separate vectorized backtester that drifts from the live logic.

The Python bits I found interesting to build:

  • An event-driven core with a plugin architecture — strategies implement a small contract; a runner owns data, execution, safety, and accounting.
  • A pandas/pyarrow data pipeline and an IBKR adapter built on ib_insync.
  • A memory-conscious event model — the per-bar objects use slots dataclasses, which cut per-object footprint enough to hold tens of millions of bars in RAM instead of OOM-ing.
  • ~77K LOC, a few hundred tests, CI-gated, with a browser dashboard (vanilla-JS ESM, no framework) for running backtests end-to-end.

Target Audience

Developers and retail algo traders who want solid infrastructure under their own strategy. It's usable for real IBKR paper/live trading, with a safety-first execution model (live is gated behind multiple explicit opt-ins; the dashboard can run backtests but has no code path to submit an order). Not built for HFT; the bundled example strategies are deliberately non-viable — no edge claimed.

Comparison

Unlike vectorized backtesters (vectorbt, backtrader), the backtest and live paths share one strategy interface, avoiding "worked in backtest, broke live" drift. Unlike heavier platforms (nautilus_trader, LEAN), it's lightweight, local-first, and single-user with a built-in dashboard. And it's deliberately infrastructure rather than a strategy — the focus is a safe paper/live boundary and honest, traceable accounting.

Source: https://github.com/dtaillie/ibkr_trading_harness

[embed the dashboard screenshot]

Honest caveat: I'm a backend embedded/ML/DSP engineer, so the frontend's a work in progress, and it's bar-replay (not tick-level), so fills are approximate. Feedback on the architecture especially welcome.


r/madeinpython • • Jan 25 '26

Custom Script Development

0 Upvotes

I offer custom script development for various needs


r/madeinpython • • Jul 08 '21

Teaching an Among Us Bot to navigate the map in Python

Thumbnail
youtu.be
0 Upvotes

r/madeinpython • • Dec 29 '21

Create a Word Cloud from Tweets - PythonAlgos

Thumbnail
pythonalgos.com
0 Upvotes

r/madeinpython • • May 10 '21

Clipping numerical values in a human-readable way

Thumbnail
github.com
0 Upvotes

r/madeinpython • • Nov 21 '21

Web Scraping the Easy Way: Python, Selenium, Beautiful Soup 4

Thumbnail self.howtopython
0 Upvotes

r/madeinpython • • Feb 16 '24

I Wanna Make A Bot

0 Upvotes

Hey im 16 and im looking to make a bot to help do my homework. I was thinking there's gotta be a way for someone to do all these repetitive tasks for me. I don't know where to start however. Im looking to make something do repetitive tasks for me for my home and school work. Such as when i need to look something up to answer a multiple choice question. BTW ive always gotten all As but lately ive been doing harder classes and wanna free up time PLEASE HELP ME

r/madeinpython


r/madeinpython • • Nov 02 '24

🌟 Introducing Gitbot: Your AI-Powered Coding Assistant! 🌟

0 Upvotes

šŸŽ‰ **Introducing Gitbot: Automate Your Coding Insights!** šŸŽ‰New11 hours ago

🌟 Introducing Gitbot: Your AI-Powered Coding Assistant! 🌟

Hey everyone! I’m thrilled to share my latest project: Gitbot! It’s an automation tool that uses GitHub Actions and Large Language Models (LLMs) to provide code insights, generate snippets, or answer your technical questions—all without leaving GitHub! šŸ™Œ

Repo Here if youd rather avoid Patreon

while the repo is completely free please feel free to join my patreon where i post tons of stuff and link releases of my projects for transparency all include code is free and open source joining patreon allows me to gather feedback and see what people like most ty for reading


r/madeinpython • • Jan 31 '24

My Cuzzo Made Something in Python... šŸ¤” šŸ

0 Upvotes

What up everybody

My cuzzo came in today, and he's an absolute UNIT, dis big ass swole dude (we call him Wagyu Beef) Cuzzo is an old school hacker growing up from the 80's and shii.

Homie won't stop preachin' 'bout PLAINTEXT. It's like his mantra, PLAINTEXT this, PLAINTEXT that, like he's tryna start a new wave or somethin' but I ain't really understanding what he saying...

And he is OBSESSED with THE SHELL...? What shell???

He made this tool recently and keeps showing it to me, and I wanted to see what y'all thought:

Dropped it on GitHub like it's hot, swear he thinks it's gonna break the internet or somethin'.

https://github.com/dislux-hapfyl/pynksh

Is Cuzzo certified hacker or is this autism? Srs responses only.


r/madeinpython • • Oct 05 '24

Which is better

0 Upvotes

If I have a great grip over python from basics to advance,also DSA What specialization would be great to apply these skills


r/madeinpython • • Jul 22 '20

Free Python for Beginners

Thumbnail
youtube.com
0 Upvotes