r/madeinpython • • May 05 '20

Meta Mod Applications

28 Upvotes

In the comments below, you can ask to become a moderator.

Upvote those who you think should be moderators.

Remember to give reasons on why you should be moderator!


r/madeinpython • • 1h ago

my python flight search library refuses checked bags instead of guessing the fee

1 Upvotes

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.

from viajante import get_flights

report = get_flights("MAD-LHR:2026-12-18", baggage_buffer=40, top=5)

repo: https://github.com/felipebasurto/viajante

would you rather get the error, or a price with a "bags not included" warning?


r/madeinpython • • 7h ago

Reaktiv Workbook – A spreadsheet where every cell is Python

0 Upvotes

Hey guys! After I tried to reintroduce Signals Reactivity state management (inspired by Angular and SolidJS) to the Python community with my reaktiv package, I like to go one step further to reimagine how Python Notebooks (Jupyter Notebook, Marimo, …) could look like, if Signals gets used as the core mechanism for reactive data pipelines.

The clue here: each cell in the spreadsheet represents a signals primitive under the hood! Say hello again to Signal, Computed, Effect, Linked and Resource!

So effectively you are using the spreadsheet interface as a canvas to model your business logic around these core primitives. Each cell represents a data pipeline execution.

I am working in the signal processing field and like seeing dense data and see how parameters changes and affects the outcome. I also always liked how spreadsheets used data as part of their UI instead of writing an UI on top of the data.


r/madeinpython • • 8h ago

I made a time app.. but with neko characters

0 Upvotes

This is a simple time app. But instead of numbers - it uses neko characters!

Made it in 45 minutes just for fun

Repo


r/madeinpython • • 8h ago

Aide avec Trinket Python

Post image
0 Upvotes

r/madeinpython • • 16h ago

Build Your Own Coding Agent - A Python book and written course, with tests that don’t call an LLM

2 Upvotes

I’m the author of Build Your Own Coding Agent. It walks through building Nanocode, a small Python coding agent, without an agent framework.

One part you can use independently is the testing approach: replace the model with a FakeBrain that returns predetermined responses. The Chapter 3 tests use it to check that conversation history grows correctly, and that a failed model call doesn’t leave a stray user message in the history.

That gives you repeatable checks on conversation handling without making API calls. You still need separate tests with a real model to learn whether it makes good decisions.

The tests are here: https://github.com/optimalone/build-your-own-coding-agent/blob/main/ch03/test_nanocode.py

The chapter snapshots are MIT-licensed, and Chapters 1, 2, 3 and 12 are free to read. The full book and a written course with practice questions and quizzes are sold separately: https://buildyourowncodingagent.com/

Nanocode is a teaching implementation. Its file and shell tools aren’t sandboxed, and act mode doesn’t ask permission for each operation. Use a disposable environment if you try those parts.


r/madeinpython • • 13h ago

Bubble Bobble for 10 players

Thumbnail
github.com
1 Upvotes

Finally, a DHTML and python3 version is back! Enjoy


r/madeinpython • • 18h ago

Learning Project: Word-level Markov chain text generator

Thumbnail reddit.com
1 Upvotes

r/madeinpython • • 19h ago

From timed words to subtitle cues: extracting a Python library from my video editor

0 Upvotes

I maintain CUEVA Studio and pulled its subtitle segmentation code into a standalone Python package. The input is a sequence of words with start and end times. For example, Merhaba (0–0.45 s) and dünya! (0.5–1.2 s) become one SRT cue from 00:00:00,000 to 00:00:01,200.

The tricky part was applying character limits to Japanese text without spaces while keeping overlapping cues readable. The repository includes the segmenter, writers for SRT, WebVTT and ASS, and 13 tests. You can run the README example locally without a speech model or editor.

If you maintain a caption pipeline, how do you handle line breaks when the recognizer gives you one long unspaced segment? I’d welcome a short input and your expected split.

https://github.com/emreyunusbas/cueva-subtitle-core


r/madeinpython • • 19h ago

Build Your Own Coding Agent - A Python book and written course, with tests that don’t call an LLM

0 Upvotes

I’m the author of Build Your Own Coding Agent. It walks through building Nanocode, a small Python coding agent, without an agent framework.

One part you can use independently is the testing approach: replace the model with a `FakeBrain` that returns predetermined responses. The Chapter 3 tests use it to check that conversation history grows correctly, and that a failed model call doesn’t leave a stray user message in the history.

That gives you repeatable checks on conversation handling without making API calls. You still need separate tests with a real model to learn whether it makes good decisions.

The tests are here: https://github.com/optimalone/build-your-own-coding-agent/blob/main/ch03/test_nanocode.py

The chapter snapshots are MIT-licensed, and Chapters 1, 2, 3 and 12 are free to read. The full book and a written course with practice questions and quizzes are sold separately: https://buildyourowncodingagent.com/

Nanocode is a teaching implementation. Its file and shell tools aren’t sandboxed, and act mode doesn’t ask permission for each operation. Use a disposable environment if you try those parts.


r/madeinpython • • 1d ago

Feast Feature Store with Python: Train a Model and Verify Online Features

Thumbnail
youtube.com
1 Upvotes

r/madeinpython • • 1d ago

eStockes: a stock research web app with a Python/FastAPI backend

0 Upvotes

I’m building eStockes for researching US stocks and ETFs. Python/FastAPI serves the market-data backend, with a separate browser frontend. The app brings company lookup, charts, screening and watchlists into one workspace.

The Python work includes merging company-name and ticker search results, ranking exact ticker matches first, and filtering equity results to supported US instruments. For market-data reads, the service uses caching, shared in-flight async requests and concurrency limits so repeated requests for the same data do not each start a separate upstream fetch.

The part I’d like feedback on is how those data states reach the person using the app. A cached result, an unavailable symbol and an in-progress request should be understandable from the screen, rather than just looking like an empty chart.

You can try the live interface at https://estockes.com/dashboard. Search for a familiar company by its name, then open its chart. Was the matching result clear? If anything stayed loading or showed no data, what did the screen lead you to think had happened? Browser and device details would help reproduce it.

eStockes has a free account and paid Pro plans. This is a project showcase and an optional usability check; you can stop before registration or payment. Suggestions from people who have built similar Python data services are welcome too.


r/madeinpython • • 1d ago

I welcome constructive criticism.

1 Upvotes

import sqlite3

from pathlib import Path

from datetime import datetime

import math

def crear_tabla(archivo):

conexion = sqlite3.connect(f'{archivo}', isolation_level=None)

cursor = conexion.cursor()

cursor.execute("""

CREATE TABLE IF NOT EXISTS registros (

id INTEGER PRIMARY KEY AUTOINCREMENT,

tipo_vehiculo TEXT NOT NULL,

placas TEXT NOT NULL,

color TEXT NOT NULL,

hora_entrada TEXT NOT NULL,

hora_salida TEXT,

monto_pagado REAL

)

""")

cursor.close()

menu(conexion)

def menu(conexion):

while True:

print('~~~~~~~BIENVENIDO AL MENU~~~~~~~')

print('1-Registrar Entrada.')

print('2-Ver Vehiculos Estacionados.')

print('3-Registrar Salida y Cobrar.')

print('4-Borrar Vehiculo.')

print('5-Salir.')

opcion = int(input('>'))

if opcion == 1:

registrar_entrada(conexion)

elif opcion == 2:

ver_vehiculos(conexion)

elif opcion == 3:

salida_cobrar(conexion)

elif opcion == 4:

borrar_vehiculo(conexion)

elif opcion == 5:

conexion.close()

break

def ver_vehiculos(conexion):

cursor = conexion.cursor()

while True:

print('##===BUSCAR EN EL REGISTRO===##')

print('1-Ver tabla completa.')

print('2-Buscar en la tabla.')

print('3-Salir')

desicion = int(input('>'))

if desicion == 2:

print('1-Por nombre.')

print('2-Por matricula.')

desicion2 = int(input('>'))

if desicion2 == 1:

buscar = str(input('Ingrese el nombre del vehiculo (s para salir): ')).upper()

if buscar != 'S':

cursor.execute('SELECT * FROM registros WHERE tipo_vehiculo LIKE ?', (f"%{buscar}%",))

encontrar = cursor.fetchall()

if encontrar:

print('--------VEHICULO ENCONTRADO--------')

print(encontrar)

print('-----------------------------------')

else:

print('Vehiculo no encontrado, desea agregarlo?')

opcion = str(input('(Si/No): ')).upper()

if opcion == 'SI':

registrar_entrada(conexion)

cursor.close()

break

elif opcion == 'NO':

cursor.close()

break

else:

print('Solo si o no.\n')

else:

break

elif desicion2 == 2:

buscar2 = str(input('Ingrese el nombre del vehiculo (s para salir): ')).upper()

if buscar2 != 'S':

cursor.execute('SELECT * FROM registros WHERE placas LIKE ?', (f"%{buscar2}%",))

encontrar2 = cursor.fetchall()

if encontrar2:

print('--------VEHICULO ENCONTRADO--------')

print(encontrar2)

print('-----------------------------------')

else:

print('Vehiculo no encontrado, desea agregarlo?')

opcion2 = str(input('(Si/No): ')).upper()

if opcion2 == 'SI':

registrar_entrada(conexion)

cursor.close()

break

elif opcion2 == 'NO':

cursor.close()

break

else:

print('Solo si o no.\n')

else:

break

elif desicion == 1:

cursor.execute('SELECT * FROM registros ORDER BY tipo_vehiculo')

tabla = cursor.fetchall()

print('\n-----------------------------------TABLA----------------------------------')

for fila in tabla:

print(fila)

print('--------------------------------------------------------------------------')

salir = str(input('s para salir')).upper()

if salir == 'S':

cursor.close()

break

else:

print('Solo "s".')

elif desicion == 3:

cursor.close()

break

else:

print('Ingrese un numero valido.\n')

def registrar_entrada(conexion):

cursor = conexion.cursor()

while True:

opcion = str(input('Ingresar datos ala tabla?: (Si/No)')).upper()

if opcion == 'SI':

vehiculo = str(input('Nombre del vehiculo: '))

placas = input('Placas: ')

color = str(input('Color: '))

hora = datetime.now().strftime("%Y-%m-%d %H:%M:%S")

cursor.execute(f'INSERT INTO registros (tipo_vehiculo, placas, color, hora_entrada) VALUES (?, ?, ?, ?)', [vehiculo, placas, color, hora])

print('Agregado con exito!!.\n')

print(f'Vehiculo: {vehiculo}, Hora: {hora}')

continue

elif opcion == 'NO':

cursor.close()

break

else:

print('Solo si o no.\n')

def salida_cobrar(conexion):

cursor = conexion.cursor()

cursor.execute("""

SELECT id, tipo_vehiculo, placas, hora_entrada

FROM registros

WHERE hora_salida IS NULL

""")

autos_activos = cursor.fetchall()

if not autos_activos:

print('No hay autos estacionados.\n')

cursor.close()

return

print('\n------AUTOS ACTUALMENTE ESTACIONADOS------\n')

for indice, auto in enumerate(autos_activos, start=1):

id_reg, vehiculo, placa, entrada = auto

print(f"{indice}. Vehiculo: {vehiculo}, Placa: {placa} | Entrada: {entrada}")

try:

opcion = int(input('Seleccione el numero del vehiculo que saldra: '))

if opcion < 1 or opcion > len(autos_activos):

print('Opcion no valida.\n')

cursor.close()

return

except ValueError:

print('Por favor ingresa un numero valido.\n')

cursor.close()

return

id_registro, vehiculo, placa, entrada_str = autos_activos[opcion - 1]

hora_entrada = datetime.strptime(entrada_str, "%Y-%m-%d %H:%M:%S")

hora_salida = datetime.now()

diferencia = hora_salida - hora_entrada

horas_transcurridas = diferencia.total_seconds() / 3600

horas_a_cobrar = max(1, math.ceil(horas_transcurridas))

pesos_hora = 15

monto_pagado = horas_a_cobrar * pesos_hora

salida_str = hora_salida.strftime("%Y-%m-%d %H:%M:%S")

cursor.execute("""

UPDATE registros

SET hora_salida = ?, monto_pagado = ?

WHERE id = ?

""",

(salida_str, monto_pagado, id_registro),

)

print('Listo!!.\n')

print(f'Total: {monto_pagado}, Vehiculo: {vehiculo}, Placas: {placa}')

cursor.close()

return

def borrar_vehiculo(conexion):

cursor = conexion.cursor()

while True:

print('#----DESEA ELIMINAR UN VEHICULO DEL REGISTRO----#')

print('1-Eliminar')

print('2-Salir')

opcion = int(input('>'))

if opcion == 1:

cursor.execute('SELECT * FROM registros ORDER BY tipo_vehiculo')

tabla = cursor.fetchall()

print('\n-----------------------------------TABLA----------------------------------')

for fila in tabla:

print(fila)

print('--------------------------------------------------------------------------')

borrar = input('Seleccione el numero del vehiculo a borrar: ')

cursor.execute('DELETE FROM registros WHERE id = (?)', [borrar])

if cursor.rowcount > 0:

print('Borrado con exito!!.\n')

continue

else:

print('No se encontro el vehiculo, deseas salir? (Si/No)')

respuesta = input('>').upper()

if respuesta == 'SI':

cursor.close()

break

elif respuesta == 'NO':

continue

else:

print('Solo si o no.\n')

elif opcion == 2:

cursor.close()

break

##############################################################################################################################################

##############################################################################################################################################

print('#=====BIENVENIDO=====#')

nameArch = input('Ingresa el nombre del archivo: ')

archivo = Path(f"{nameArch}.db")

if archivo.exists():

print('Se abrio un archivo existente!!.\n')

conexion = sqlite3.connect(f'{archivo}', isolation_level=None)

menu(conexion)

else:

print('Archivo Creado!!.\n')

crear_tabla(archivo)

My github: https://github.com/oliverEliud/mini-projects-python


r/madeinpython • • 2d ago

I built OunceMCP, a Python framework on FastMCP that keeps tool results inside a token budget (1.0 release candidate, looking for feedback)

Post image
0 Upvotes

r/madeinpython • • 2d ago

I made a dragon Curve in Python. Github in comments

Post image
1 Upvotes

r/madeinpython • • 2d ago

Tired of fighting QDockWidget, so I built a docking and theming library for PySide6

Post image
3 Upvotes

Hi all,

For the past few months I’ve been working on Lace, a docking and layout library for PySide6. While building my own desktop engineering tools, I wanted a smooth, VS Code-like layout and cohesive theming experience in Python without the usual Qt layout headaches. It began as just the docking part and grew from there.

What My Project Does

Lace is a pure-Python docking and theming library for PySide6:

  • Tabbed dock areas: Drag around, split, float into their own windows, and drag back with a live drop preview showing where the panel will land before you let go.
  • Auto-hide sidebars: Pin panels to an edge to slide them out on demand, with optional badge counters (roughly like VS Code's sidebars).
  • Layout persistence: Save and restore layouts as JSON, including named presets you can switch between.
  • Deep theming engine: It doesn't just color the docks. It themes the entire QPalette plus a custom style for standard widgets, menus, and dialogs so your own widgets match out of the box. It comes with 37 themes, and you can generate your own from just two colors.

Target Audience

  • People building larger multi-pane desktop apps in Python (simulation tools, editors, CAD-like or dashboard apps) who want more control over layout and a consistent look than stock Qt gives them.

Comparison

The main alternative is Qt Advanced Docking System (PySide6-QtAds). It’s older, more widely used and well tested across platforms, and if you only need docking it’s a solid choice. The differences:

  • Lace is pure Python, so it’s easy to read, debug and subclass, and there’s no compiled binding to keep in step with your Qt version.
  • Lace themes the whole application; Qt-ADS covers the docking panes only.

Details:

It’s at 0.10, so the API may still change before 1.0. I use it in my own optical simulation tools, so it gets real daily use. I’d really appreciate feedback from anyone building bigger Qt apps: what’s missing, what feels awkward, or what breaks on your platform (I’ve mostly tested on Windows).

Thanks for reading!


r/madeinpython • • 3d ago

CueKeeper: a Python SRT/WebVTT converter with timestamped exports and JSON reports

1 Upvotes

Disclosure: I own and sell CueKeeper. AI helped prepare this showcase.

CueKeeper is a local Python utility for an existing subtitle file, rather than an audio/video transcription tool. It converts SRT or WebVTT into readable Markdown/plain text, preserving cue intervals, and writes a separate quality report. An optional dialogue-only export drops the timing for reading.

The included example can be run from the extracted toolkit directory:

python3 app.py convert samples/valid.srt -o output --dialogue-only

That sample generates valid.md, valid.dialogue.txt, valid.report.json, and batch-summary.json. The two fictional cues become two timed passages; the report records parsed/emitted counts and any warnings or errors. A clean conversion report does not verify that captions match the recording.

The full toolkit needs Python 3.10+ and only the standard library. The ZIP includes Python source, tests, a sample, CLI, and local browser interface. It costs a one-time $1.00 USD through PayPal, or 1.00 USDC on Base: https://score.agentid.life/cuekeeper?ref=reddit-madeinpython-20261115

A separate free browser preview accepts up to 20 cues, so the output format is easy to inspect before purchasing: https://score.agentid.life/cuekeeper/try?ref=reddit-madeinpython-20261115

Public fictional sample input and generated files: https://github.com/nrk8286/agentid-services/tree/main/publishing/foundry-2026-11-12/samples/cuekeeper

It does not transcribe media, translate dialogue, or identify speakers. I would welcome feedback on which subtitle-quality findings are most useful alongside the reading copy.


r/madeinpython • • 3d ago

How to fix vulnerabilities in Python? Introducing a new version of VenvHub with a security scanner

1 Upvotes

Hi,

I’m currently working on developing add-ons for VenvHub Pro. It’s a new feature – a security audit of Python virtual environments (venv). The tool downloads vulnerability data directly from OSV.dev.

In the attached video, I demonstrate how the whole process works:

- Loading the list of packages from a specific venv environment.

- Then displaying an overview of which packages contain vulnerabilities.

- Clicking on a specific issue (CVE) in the tree structure immediately shows all the necessary details and description in the right panel and offers an update option.

- Clicking on the entire package shows an aggregated list of all its issues and available fixes in the right menu.

- Via the dropdown menu, the user can select a specific target version of the package with which they want to fix the given vulnerabilities.

From a technical perspective, the application is designed modularly. It uses dynamic UI generation based on the active provider’s schema (plugin auto-discovery). This means the architecture is not hard-wired only to OSV.dev, but can be extended with other security scanners.

Important note on versions:
The video and screenshots demonstrate the latest development version 2.6.08. The version currently published on my GitHub repository is 2.6.04, in which the scanner is not yet applied.

Since this is work in progress, I’ll be glad for any feedback. I’d be interested in your opinion on the UI/UX layout, as well as on the concept itself of selecting specific versions for fixes.

Thank you.


r/madeinpython • • 3d ago

[Showcase] Mirrors — A CLI media downloader built with Python & Rich (looking for feedback!)

1 Upvotes

Hey everyone! I built a small CLI utility in Python with a clean terminal UI (powered by rich) called Mirrors.

Features:

  • Downloads videos in MP4 (H.264) via URL (using yt-dlp).
  • Extracts audio from videos into MP3 (via FFmpeg).
  • Saves video thumbnails or direct image links as JPG.
  • Displays real-time download progress, speed, and logs right in the terminal (adapted for Windows CMD, Linux, and Termux).

This is one of my first projects. Everything runs smoothly on my machine, but I'd really appreciate it if you could test how it runs on other systems and check if all dependencies install properly. Any feedback or code review is welcome!

GitHub repo: https://github.com/justiceDev1/Mirrors


r/madeinpython • • 3d ago

I’ve been building an open-source Python toolkit for working with news — Open News

Post image
1 Upvotes

r/madeinpython • • 3d ago

I made a HomeSite-style HTML editor for Linux: TelaEdit 0.7

Post image
1 Upvotes

TelaEdit is for people who write web pages by hand and want a straightforward, familiar tool rather than a full IDE. It takes its inspiration from the classic HomeSite editor, with up-to-date features added.

Main features:

- Syntax colouring for HTML, CSS and JavaScript, with tag-pair and bracket highlighting

- Tabbed toolbar for inserting tags: HTML, formatting, lists, tables, forms, HTML 5, media and text, plus a Quickbar for your own favourite buttons

- Link and image dialogs that work out relative paths and fill in image sizes

- HTML Tidy integration and a built-in CSS checker: click a problem to jump straight to it

- Spell checking of the visible text of a page

- One-click preview in up to ten browsers

- Two-panel file Explorer, snippets, templates and customisable keyboard shortcuts

It is written in Python with PyQt6 and QScintilla and released under the GPL v3. A standalone download is provided that needs no Python or Qt installed, and it has been tested on Linux Mint, Debian and Lubuntu.

Project page, downloads and screenshots:

https://github.com/toxtoo/TelaEdit

TelaEdit is a hobby project. I'm not a programmer: I designed and tested it, and it was written with the help of the AI assistant Claude. It's shared in the hope that it's useful to others, and feedback is very welcome.

Thank you for your time.


r/madeinpython • • 3d ago

Clayvoyant - I made an open source Python tool that turns YAML scene descriptions into clay style films in Blender

Thumbnail
github.com
2 Upvotes

I made a 29 min clay film on a laptop. The part I didn't want to repeat was setting up every character, shot and voice by hand.

That turned into Clayvoyant. Write the scene in yaml viola it builds and films it in blender.

A quick look at how it works.


r/madeinpython • • 3d ago

leakscan: scan code, git history, notebooks, Docker images and packages for leaked API keys

0 Upvotes

leakscan finds leaked API keys and credentials. pipx install leakscan, then leakscan scan . and it works, no config needed.

Besides normal folders and git history (including secrets someone committed and later deleted), it can scan Jupyter notebooks and tell you which cell and whether the key was in the code or the output. It can also scan Docker images layer by layer, and published packages before you install them, e.g. leakscan scan pypi:requests==2.32.3.

Every finding says what the key could be used for and where to rotate it. There's a --verify flag that checks whether a key is still live, but it's opt-in and asks for --yes on anything that isn't yours. No telemetry.

It also has a Python API, a GitHub Action, and a pre-commit hook.

Target Audience

People who want secret scanning in CI or pre-commit without a Go binary, and people who work in notebooks or want to look inside a package before installing it. It's young, so I wouldn't call it battle-tested yet.

Comparison

gitleaks and trufflehog are the established tools and they're good. gitleaks is faster (about 4.4x on the full history of the requests repo in my own benchmark, details in the repo), and trufflehog covers far more detectors and sources. Where leakscan is different is the Python install and API, notebook support, and the package scanning. If you need raw speed or the widest verification coverage, use those instead.

Repo: https://github.com/Vasishta03/leakscan

I'd really like to hear about false positives, and about any providers you want rules for.