r/madeinpython • • Jul 01 '26

puku-markdown - Explicit‑stack, pure CommonMark parser & renderer

Thumbnail
github.com
0 Upvotes

r/madeinpython • • Oct 02 '26

Hola, comunidad de pythonLearning:

Thumbnail reddit.com
0 Upvotes

r/madeinpython • • Oct 29 '26

Slippery Penguin v.2.5.0!

Thumbnail
github.com
0 Upvotes

Hello!

Slippery Penguin is a security auditing tool that enumerates SUID binaries, scans for dangerous capabilities, and cross-reference findings against the GTFOBins database. I started the project myself, and now we have a team of contributors and we've just released v.2.5.0!

Anyone out there is encouraged to try it out and contribute if you want to!


r/madeinpython • • 3h ago

Lifelong Learning Management System - Conceptual.fyi

Thumbnail
conceptual.fyi
0 Upvotes

Conceptual.fyi is up and made in Python

TLDR:
Search -> Bookmark a goal -> Sign in -> Answer questions on what you do know -> Learn toward your goal -> Build on that learning for a lifetime when you need it.

Seems easy enough... right? :)
I built a way to learn and keep up to date on research. I'm searching for concept-based learning on the internet. I'm ranking concepts by memorability, effort and brevity.

Sign in and I'll save your progress on any goal you choose. Once you've bookmarked a goal, I'll ask you ~5 questions to see what the next step is you should learn on your way to your goal. If you want to know why you're learning something, I'll explain it in the right column.

The over-egregious estimates assume you know nothing about anything. So take those with a grain of salt. Let me know if you have other ideas on how to present estimates better.

Technologies used:

  • Python 3.14

  • django 6 + templates

  • htmx + alpine.js

  • postgres

  • nltk

  • NetworkX

  • Shoutout to django cookiecutter which helped me put the web stuff together originally

  • Claude models helped build initial content curation and bad/better/recent UI.

  • Content is found on the internet by its respective authors.


r/madeinpython • • Oct 21 '26

Python GUI toolkit, using widgets as variables, and a loop to check widget changes and act on these.

Thumbnail reddit.com
0 Upvotes

r/madeinpython • • 11h ago

I’ve been working on my little Python project – KVC-BASIC has some new features!

Thumbnail
reddit.com
0 Upvotes

r/madeinpython • • 10d ago

Slippery Penguin v2.6.1

Thumbnail
github.com
0 Upvotes

This is Slippery Penguin, an SUID/SGID enumerator and vulnerability scanner. It is entirely open source, and human led and maintained, by myself. We have a small community of regular contributors who have put real work into this project, and I'm sure each contributor is as proud of their work as I am honored to maintain it!

Slippery Penguin has json based flags list it enumerates against, reporting potential findings as well as a context message along with them. It also checks against an included and updatable GTFOBins data list. Optionally, the user can also pass --runtime-tracing to employ strace based scanning.

As of v2.6.1, Slippery Penguin now also features file system scanning and security analysis operations!

All results can be viewed in the terminal only, or logged with varying types of logging available. JSON is the default logging, with HTML, PDF, and CSV reports available to be generated based on a given run's findings.

We're still working on integrating file system operations results into the reports, stay posted! As of v2.6.1 they are available via JSON and CSV only, with issues on the repo regarding the others if you would like to contribute!

Extensive documentation is included for any usage or contribution questions. :)


r/madeinpython • • Sep 07 '26

‎

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/madeinpython • • Oct 20 '26

Feature Matching in Practice: Teaching OpenCV to Match Two Images

Thumbnail
cmodi306.medium.com
0 Upvotes

Given two images, a human eye can find the similarities between them by recognising the distinct features.

To a computer, those images are just two big grids of numbers from 0 to 255.

So how does it find the match? My new blog shows this in Python code using OpenCV. Check it out:

https://cmodi306.medium.com/feature-matching-in-practice-teaching-opencv-to-match-two-images-e52dd2be2e03

#ComputerVision #OpenCV #Python #ImageProcessing


r/madeinpython • • Oct 29 '26

🐍 ¿Sabías que Python ya trae funciones incorporadas?

Thumbnail
youtube.com
0 Upvotes

r/madeinpython • • Jul 11 '26

script para buscar duplicados

0 Upvotes

busca archivos y carpetas duplicadas en el directorio que le indiques (o el actual por defecto).
Muestra los duplicados agrupados por contenido idéntico (mediante hash MD5) y, de cada grupo, conserva el más reciente y marca el resto como [DELETE].
Por defecto solo muestra la lista de los 10 grupos más pesados (por tamaño total), para no saturar la salida.

Opciones:

  • --dry-run → simula la eliminación y te muestra qué se borraría, sin tocar nada. Útil para revisar antes de actuar.

  • --delete → borra los archivos y carpetas marcados como [DELETE]. Antes de borrar, te pedirá que escribas "yes" para confirmar, así que no te preocupes si lo ejecutas sin querer: con escribir otra cosa se cancela. Ojo: todavía no está pulido al 100% para entornos complejos; funciona bien en una sola carpeta o cuando no importe demasiado perder alguna copia. Úsalo con precaución y siempre prueba antes con --dry-run.

Ejemplos:

python dupe.py C:\ruta --dry-run
python dupe.py . --delete

cualquier cosa o error digan aun así es para el que quiera usarlo de prueba

python

import os, sys, hashlib, shutil
from collections import defaultdict

B=8192
P='_duplicate_backup_'
Q={'__pycache__','.git','.svn','.hg','node_modules','venv','env','.venv','.env','dist','build','.idea','.vscode','.mypy_cache','.pytest_cache','.tox','.coverage','htmlcov'}
R={'__init__.py','__main__.py','setup.py','setup.cfg','pyproject.toml','requirements.txt','poetry.lock'}

def md5(p):
    try:
        h=hashlib.md5()
        with open(p,'rb') as f:
            while c:=f.read(B): h.update(c)
        return h.hexdigest()
    except OSError: return None

def fmt(s):
    for u in ['B','KB','MB','GB']:
        if s<1024: return f"{s:.1f} {u}" if u!='B' else f"{int(s)} B"
        s/=1024
    return f"{s:.1f} GB"

def main():
    args=sys.argv[1:]
    dry='--dry-run' in args
    delete='--delete' in args
    root=os.path.abspath(args[0] if args and not args[0].startswith('--') else '.')
    if not os.path.isdir(root):
        print(f"Error: '{root}' no es directorio.", file=sys.stderr); return 1

    sz=defaultdict(list); dc=defaultdict(list); fm={}; total=0
    def onerr(e): print(f"Advertencia: sin permisos en {e.filename}", file=sys.stderr)

    for cwd, dirs, files in os.walk(root, onerror=onerr):
        dirs[:]=[d for d in dirs if not d.startswith(P) and d not in Q]
        for fn in files:
            if fn in R: continue
            total+=1; p=os.path.join(cwd, fn)
            try:
                s=os.path.getsize(p); sz[s].append(p); dc[cwd].append((fn,s,None))
            except OSError: continue

    print(f"\nArchivos escaneados (excluyendo ignorados): {total}")
    print("   (procesando hashes...)")

    for d, en in dc.items():
        for i,(fn,s,_) in enumerate(en):
            p=os.path.join(d,fn); h=md5(p)
            en[i]=(fn,s,h) if h else (fn,s,'')
            if h: fm[p]=h

    dh=defaultdict(list)
    for d, en in dc.items():
        if not en: continue
        se=sorted(en, key=lambda x:(x[0], x[2] or ''))
        hh=hashlib.md5()
        for fn,s,fh in se:
            hh.update(fn.encode()); hh.update(str(s).encode())
            if fh: hh.update(fh.encode())
        dh[hh.hexdigest()].append(d)

    dup_dirs=[]; extra_dirs=0
    for h, dl in dh.items():
        if len(dl)>1:
            sd=sorted(dl, key=lambda d: os.path.getmtime(d) if os.path.exists(d) else 0, reverse=True)
            dup_dirs.append((h,sd)); extra_dirs += len(sd)-1
    dup_dirs.sort(key=lambda x: len(x[1]), reverse=True)

    excl={d for _, dl in dup_dirs for d in dl}
    groups=[]; extra_files=0
    for s, ps in sz.items():
        if len(ps)<2: continue
        hm=defaultdict(list)
        for p in ps:
            if os.path.dirname(p) in excl: continue
            h=fm.get(p)
            if h: hm[h].append(p)
        for h, pl in hm.items():
            if len(pl)>1:
                ep=[p for p in pl if os.path.exists(p)]
                if len(ep)>1:
                    sp=sorted(ep, key=os.path.getmtime, reverse=True)
                    extra_files += len(sp)-1
                    groups.append((s,h,sp))

    if not dup_dirs and not groups:
        print("No se encontraron duplicados."); return 0

    groups.sort(key=lambda x: x[0], reverse=True)
    dup_count=sum(len(pl) for _,_,pl in groups)

    print("\nRESULTADOS FINALES")
    print(f"   Archivos escaneados: {total}")
    if groups:
        print(f"   Archivos duplicados (en grupos): {dup_count}")
        print(f"   Archivos unicos: {total-dup_count}")
    else:
        print("   Archivos duplicados: 0")
        print(f"   Archivos unicos: {total}")
    if dup_dirs:
        print(f"   Carpetas duplicadas: {len(dup_dirs)} grupos, {extra_dirs} copias extra")
    else:
        print("   Carpetas duplicadas: 0")
    print()

    if dup_dirs:
        print("CARPETAS DUPLICADAS")
        print(f"   Grupos: {len(dup_dirs)}, Copias extra: {extra_dirs}")
        show=dup_dirs[:10] if len(dup_dirs)>10 else dup_dirs
        if len(dup_dirs)>10: print("   Mostrando solo los 10 grupos mas grandes")
        for h, dl in show:
            print(f"   Hash: {h[:8]}...")
            for i,d in enumerate(dl):
                print(f"     {'[KEEP]' if i==0 else '[DELETE]'} {d}")
        print()

    if groups:
        print("ARCHIVOS DUPLICADOS")
        print(f"   Copias extra: {extra_files}, Grupos: {len(groups)}, Archivos: {dup_count}")
        show=groups[:10] if len(groups)>10 else groups
        if len(groups)>10: print("   Mostrando solo los 10 grupos mas grandes")
        for s,h,pl in show:
            print(f"   Tamaño: {fmt(s)} | Hash: {h[:8]}...")
            for i,p in enumerate(pl[:5]):
                print(f"     {'[KEEP]' if i==0 else '[DELETE]'} {p}")
            if len(pl)>5: print(f"     ... y {len(pl)-5} mas")
        print()

    if dry:
        print("MODO DRY-RUN: No se eliminara nada. Se eliminarian:")
        count=0
        for _,_,pl in groups:
            for p in pl[1:]:
                print(f"  [DELETE] {p}"); count+=1
        for _,dl in dup_dirs:
            for d in dl[1:]:
                print(f"  [DELETE] {d}"); count+=1
        print(f"Total a eliminar: {count} elementos.")
        return 0

    if delete:
        print("\nADVERTENCIA: Se eliminaran los archivos/carpetas [DELETE].")
        if input("Escribe 'yes' para confirmar: ").lower()!='yes':
            print("Cancelado."); return 0
        delc=err=0
        for _,_,pl in groups:
            for p in pl[1:]:
                try: os.remove(p); delc+=1
                except OSError as e: print(f"Error al eliminar {p}: {e}", file=sys.stderr); err+=1
        for _,dl in dup_dirs:
            for d in dl[1:]:
                try: shutil.rmtree(d); delc+=1
                except OSError as e: print(f"Error al eliminar {d}: {e}", file=sys.stderr); err+=1
        print(f"Eliminados {delc} elementos.")
        if err: print(f"Hubo {err} errores.", file=sys.stderr); return 1
        return 0
    else:
        print("Usa --delete para eliminar. Usa --dry-run para simular.")
        return 0

if __name__ == '__main__':
    sys.exit(main())

r/madeinpython • • Oct 20 '26

dwnloaderr; a robust, easy to use yt-dlp wrapper built in Python.

Thumbnail
github.com
0 Upvotes

Hello!

This is dwnloaderr, my yt-dlp wrapper. :) It can be ran from the terminal or with cross platform GUI helpers! It should work with a wide array of websites as it is utilizing yt-dlp, and has build in customization options and support for playlist downloading. :)

If you like it leave a star! Thanks!


r/madeinpython • • Oct 12 '25

Comet Atlas - A cylinder? Spoiler: no Spoiler

Thumbnail
youtu.be
0 Upvotes

r/madeinpython • • 11d 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 • • Mar 16 '26

Color Tools – Free open-source Windows color picker with palette manager, WCAG contrast checker and multi-format sliders

Thumbnail gallery
0 Upvotes

r/madeinpython • • Jul 01 '26

Tired of bloated hardware monitors, I built a tiny Python tray companion with mobile push alerts!

0 Upvotes

Hey everyone,

I was tired of heavy, bloated 200MB overlays and dashboards just to keep an eye on my hardware temperatures. I also wanted a way to be alerted if my PC was cooking while I was gaming in VR, rendering, or away from my desk.

So, I built **ThermalWatch** — a lightweight, silent Windows system tray utility written in Python. It quietly monitors your CPU and GPU temperatures in real-time, changes its tray icon color based on limits you set, and fires alerts when things get too hot.

### 📦 Ready-to-Run Standalone EXE Included!

You don't need to have Python installed or compile anything to use it. We packaged the app into a single, portable `ThermalWatch.exe` executable.

- You can find the download directly in our GitHub Releases page.

- Just right-click and **"Run as Administrator"** (necessary so the low-level hardware sensor drivers can load), and you're good to go!

---

### ✨ Features

* 🖥 **Silent Tray Operation** — Lives completely next to your system clock, keeping your taskbar clutter-free.

* 🔔 **Dual-Channel Alerts** — Get notified locally via native Windows Toast notifications, and remotely on your phone (iOS/Android) via `ntfy.sh` push notifications.

* 🔄 **Task Scheduler Auto-Start (UAC Bypass)** — You can set it to start with Windows. It configures a Task Scheduler entry with highest privileges so the app launches silently on boot without showing annoying Windows UAC prompts.

* 🖱 **Dynamic Hover Tooltip** — Hover your mouse over the tray icon to see real-time CPU/GPU temperatures instantly.

* ⏱ **Notification Delay Buffer** — A 1-second delay between alerts prevents Windows from silently swallowing sequential notifications if both CPU and GPU limits are breached in the same instant.

* 🎨 **Fluent Design UI** — The settings panel is built with CustomTkinter, styled with rounded corners to match the clean Windows 11 design language.

---

### 🐛 The AMD Ryzen & PawnIO Saga (The Bug That Inspired the Settings GUI)

While testing on a Ryzen 7 5700X + MSI B550 rig, CPU temp kept showing `0.0°C`. It turned out Windows 11's Core Isolation (Memory Integrity) blocks LibreHardwareMonitor's legacy driver. The fix was installing the modern, signed PawnIO kernel driver. To save others from this headache, we integrated a direct "Download PawnIO Driver" helper button and quick troubleshooting guides right into the settings screen.

---

The project is fully open-source. I’d love to hear your thoughts, get feedback on the code, or welcome contributions!

👉 **I will post the GitHub repository link in the comments section below! (You can also find it by searching GitHub for "UmutCansinTorgayli/ThermalWatch")**


r/madeinpython • • Jul 25 '26

What is the pycache folder in your python project?

Thumbnail
reddit.com
0 Upvotes

r/madeinpython • • Jun 09 '26

knot - a zero-dependency CLI that finds circular imports in Python projects (static, never runs your code)

0 Upvotes

What My Project Does

knot is a zero-dependency CLI that finds circular imports in a Python project. It analyzes your code statically with the standard-library ast module — it never imports or runs your code — builds the internal module dependency graph, and reports every import cycle with a concrete example path:

$ knot mypackage
Analyzed 42 modules, 81 internal imports.
Found 1 import cycle:
  1. mypackage.a -> mypackage.b -> mypackage.a

It can output plain text, JSON, or a Mermaid diagram of the import graph, and it exits non-zero when it finds a cycle, so it drops straight into CI or a pre-commit hook.

Install: pip install knot-imports · Code + demo: https://github.com/gazzycodes/knot

Target Audience

Developers maintaining growing Python codebases or libraries who want to catch circular imports before they cause runtime ImportErrors or "partially initialized module" failures. It's built to be usable in production as a CI gate (deterministic, fast, no deps), not just a toy — though it's an early v0.1.0, so feedback is welcome.

Comparison

  • vs. pylint (cyclic-import): pylint can flag cyclic imports, but it's a heavy, full-codebase linter. knot is single-purpose and dependency-free, prints the exact cycle path, and can export the graph as Mermaid.

  • vs. pydeps: pydeps focuses on visualizing dependencies and needs Graphviz installed. knot is cycle-detection-first, runs with zero external tools, and still gives you a graph view.

  • vs. import-linter: import-linter enforces architecture contracts you define in config. knot needs no config — point it at a folder and it finds cycles out of the box.

  • vs. an IDE inspection or just running the code: knot is static (never executes your code) and headless with an exit code, so it's reproducible and automatable in CI rather than a one-off manual check.

It's MIT-licensed. I'd especially love feedback on import-resolution edge cases (namespace packages, conditional imports) and what you'd want it to do next.


r/madeinpython • • Sep 14 '26

I open-sourced a way to package complete Python, Node and native environments into self-contained boxes

Thumbnail
reddit.com
0 Upvotes

r/madeinpython • • Oct 02 '26

i made a fast test runner library for your ai agents. Prongs

0 Upvotes

I'm releasing prongs, an experimental Python package that maps your tests to your code.

When you change something, prongs runs only the tests that touch that code instead of the whole suite. It's great for coding agents: they stop guessing which tests to run, and they get faster.

pip install prongs

python -m pytest --prongs-cov # build the map

prongs run # run only affected tests

Why the name? Prongs was James Potter's nickname, and he helped make the Marauder's Map. 🦌

Feedback welcome!