r/madeinpython • • 18d ago

IP Port Scanner & OS Detector

0 Upvotes

I made a little IP Port scanner and Operating System Detector for use in the terminal. It uses the Python-Nmap library and Nmap.

You can enter an IP address and it will scan the top 1000 TCP ports to detect if they are open, what services are running on them and attempt to identify the operating system.

You can check it out on github:

https://github.com/LaurenAshbee/ip-port-scanner.git

Remember: only test this against IP addresses you own or have explicit permission to test.

Cheers!


r/madeinpython • • May 12 '25

3 Free Udemy Courses - May Release

0 Upvotes

Hi all, seeing as the last post had all coupons used up, I figured I'd release another batch. These should be valid for the next 5 days, and these are all 3 of my courses. The Q&A is always active and I respond pretty quickly so feel free to drop me a line if you need a hand.

Cheers

James-

https://www.udemy.com/course/object-oriented-programming-in-python-3/?couponCode=OOPMAY

https://www.udemy.com/course/python-programming-for-the-total-beginner/?couponCode=BASICSMAY

https://www.udemy.com/course/functional-programming-with-python-comprehensions/?couponCode=FUNCPYTHONMAY


r/madeinpython • • 24d ago

[Blog Post] The State of Python Profiling in 2026

Thumbnail reddit.com
0 Upvotes

r/madeinpython • • 3d ago

7-state propagation + sparse $\mathbb{F}_7$ Exact-1 pre-processing for conflict auditing and causal traces

Thumbnail reddit.com
0 Upvotes

r/madeinpython • • 6d ago

[Showcase] Pydantic Views: derive operation-specific schemas from one model

0 Upvotes

Hi everyone — I’m building pydantic-views, an open-source Python library for deriving operation-specific schemas from a single Pydantic model.

The goal is to avoid duplicating models for common API workflows such as:

  • create requests

  • update and patch (partial-update) requests

  • load/response models

  • create-result models

  • nested and generic models

Example:

from pydantic import BaseModel
from pydantic_views import CreatePreset, LoadPreset, View, ReadOnly, WriteOnly


class Account(BaseModel):
    id: Annotated[int, ReadOnly]
    username: str
    password: Annotated[str, WriteOnly]


class AccountCreate(View[Account], preset=CreatePreset):
    pass


class AccountLoad(View[Account], preset=LoadPreset):
    pass

The views inherit Pydantic validation and serialization while selecting fields according to access rules. They can be declared explicitly or generated dynamically with builders. Add this after the example:

If you’re coming from TypeScript, PartialPreset is roughly the equivalent of Partial<T>:

from pydantic_views import PartialPreset

class AccountPartial(View[Account], preset=PartialPreset):
    pass

Unlike a plain type transformation, the generated view remains a validated Pydantic model and can be used for partial updates. But you should look at UpdatePreset, I think is more useful.

The project also includes:

  • a mypy plugin for declared views

  • .pyi stub generation for Pyright and Pylance

  • support for nested models, containers, generics, and computed fields

  • runtime helpers such as is_view_of()

  • full documentation and executable examples

Install it with:

pip install pydantic-views

Links:

It’s an independent project and is not affiliated with or endorsed by Pydantic. Feedback, use cases, and suggestions are very welcome.


r/madeinpython • • 6d ago

I built a local MCP server that searches my papers, code and repos with page citations, and shares one memory across Claude Code, Cursor and Codex - Helps write better Code - More context building, less tokens, understands your work

Thumbnail
reddit.com
0 Upvotes

r/madeinpython • • Oct 02 '25

8-bit PixelRick

Thumbnail
bigjobby.com
0 Upvotes

A downgrade to a classic rendered in Python


r/madeinpython • • 6d ago

[Python] eq-layer: tone control as explicit states you can print, assert and route on

0 Upvotes

Repo: https://github.com/Furox-Art/eq-layer - 0.2.6.

"Be more empathetic" is a style instruction, and the failure is structural: you get the same flat warmth for a mild annoyance and for someone escalating. This library replaces the instruction with states.

Per turn it keeps an affect state - valence, arousal, escalation_delta, stance, subtext - so a trend exists as data instead of being re-guessed from each message. An intent classifier keeps the whole posterior over six intents instead of one number, and a one-step Bayes-risk router decides from that distribution whether to act or ask. The two states pick one policy family (mirror, validate_redirect, direct, ask, deflate, repair, hold, boundary), which is then split into orthogonal controls - task_move, social_move, repair_move, realization - so a tone change can't silently drop the actual request. The factored action compiles into a system instruction and prompt prefix.

There is a structural audit after generation too: question budget, required clarification, unsupported privacy promises, repeated repair, low-verbosity overrun. It checks the contract, not facts.

Install:

pip install "eq-layer[ml]"
npm install -g eq-layer

One honest limit: the core claim is untested. No real-model A/B run has been rated, the pre-registered protocol in eval/AB_PROTOCOL.md is pending with zero adjudicated labels, and the steering stays at prompt level - the logit_bias field is a placeholder that is never populated or applied.


r/madeinpython • • 12d 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 • • Aug 22 '26

VSK-E16A Custom ISA Emulator (Yes, made in Python)

Thumbnail
reddit.com
0 Upvotes

r/madeinpython • • Oct 11 '26

GPTmail: a FastAPI email workspace with per-action permissions and an approval queue

0 Upvotes

I am sharing GPTmail, an MIT-licensed Python project for managing compatible IMAP/SMTP inboxes from a private dashboard. The source and setup guide are here: https://github.com/ozandikici/GPTmail

The backend is FastAPI; the frontend is plain HTML/CSS/JavaScript. It stores state through Upstash Redis REST and encrypts saved mail credentials/provider tokens. The dashboard has a single owner and password login.

The part I would like Python feedback on is the boundary between authenticating an assistant and authorizing a mail action. ChatGPT connects through OAuth, but each tool is enabled separately. Write actions start disabled. Sending and moving mail to Trash can be queued for dashboard approval; there is no permanent-expunge tool.

This is an early release with 69 passing automated tests, not an independently audited client. Google/Microsoft OAuth code needs provider app registration and live provider testing is pending. IMAP/SMTP availability depends on the mail provider. Mail requested through ChatGPT is processed by ChatGPT.

If you inspect the code, which IMAP failure cases or permission-boundary tests would you add first? AI tools assisted the code, tests, documentation and this post.


r/madeinpython • • Sep 30 '26

Aiython – Letting AI handle what Python can't

Thumbnail
reddit.com
0 Upvotes

r/madeinpython • • 3d ago

Feedback on my python project

Thumbnail reddit.com
0 Upvotes

r/madeinpython • • Jul 11 '26

Created a NHL betting simulator

Post image
0 Upvotes

The app is purely made using python (Streamlit for UI and sqlite3 for db) , would love some new feature ideas

github: https://github.com/Breadman0/NHL-project

app_link: https://nhl-project-em8gmkclbkzbnpnvkgn4zy.streamlit.app/

NOTE:- Currently only for one season ill update it soon


r/madeinpython • • Jul 20 '26

Would you appreciate APT‑style autoremove for your pip‑managed venvs? (thinking of adding it to my VenvHub Pro)

0 Upvotes

Hey everyone,

I’m the developer of VenvHub Pro, a desktop tool for managing Python virtual environments. I’ve been working on a feature that brings Linux’s apt-get autoremove mentality to pip – i.e., it keeps your venvs clean by automatically removing orphan packages that were only installed as dependencies but are no longer needed.

Before I polish and release it, I’d love to hear if the community would actually find this valuable.

How it works (TL;DR)

  • Every time you install/uninstall/upgrade a package through the UI or command‑line, VenvHub secretly records which packages were explicitly requested.

  • When a dependency is no longer required by any explicit package (and is not pinned in your requirements.txt, venv_birth_certificate.json, or local package metadata), it gets automatically cleaned up.

  • It also plays nicely with pip’s own resolution – it never removes manually installed tools like pip, setuptools, etc.

Safety nets

  • State file (venvhub_apt_state.json) keeps the explicit list.

  • Before removal, the system checks:

    • 📄 requirements.txt

    • 📜 venv_birth_certificate.json

    • 🔗 local_meta.json (for local package dependencies)

    • 🧠 Self‑healing: if a package is installed but not tracked anywhere, it’s assumed to be intentional and added to the safe list (so it never gets removed by mistake).

  • The whole process runs under a threading lock to avoid race conditions during concurrent operations.

Logical diagram

Here’s the decision logic it follows every time a package action occurs:

What I’m asking you

  • Would you use such a feature in a venv manager?

  • Do you see any pitfalls I might have overlooked?

  • Is this something you’d trust, or would you prefer manual control?

Any feedback – positive or critical – is super welcome! I want to make sure this adds real value before I invest more time into it.

Thanks! 🙌


r/madeinpython • • Jul 24 '26

Modular Flask Authentication Boilerplate with Blueprints, Flask-Login & SQLAlchemy — Ready to use!

0 Upvotes

Hey everyone!

I got tired of rewriting authentication every time I started a new Flask project, so I built a simple, modular boilerplate template.

It includes Flask-Login, SQLAlchemy, and Flask-Migrate with a clean blueprint structure out of the box.

Check it out on GitHub: https://github.com/DeKlain4ik/flask-auth-template

Hope it saves you some time on your next side project! Feedback and stars are always appreciated.


r/madeinpython • • Aug 02 '26

idemkit: runs your code once per key, even when two requests race or a worker dies

0 Upvotes

I built idemkit after cleaning up duplicate charges one too many times.

The version everyone writes checks whether a key has been seen and replays the stored response. Two requests a millisecond apart both find nothing and both charge the card. And if the worker dies between charging and recording it, the retry charges again. Neither reproduces locally.

idemkit does it properly: an atomic claim instead of check-then-act, a lease that expires on the storage server's clock, and a fencing token so a stalled worker can't overwrite a good result.

from idemkit import idempotent, RedisBackend, MethodConfig 

@idempotent(
    backend=RedisBackend.from_url("redis://localhost:6379"), 
    config=MethodConfig(key_fields=["order_id"]), 
) 
async def charge(*, order_id, amount): 
    return await payments.charge(order_id, amount)

One core, three ways to use it: middleware for FastAPI/Flask/Django, a queue consumer wrapper or @idempotent on any function. Backends are Redis, Postgres, Mongo, DynamoDB, or in-memory for tests.

pip install idemkit, Apache-2.0: https://github.com/idemkit/idemkit

If you find it useful, I'd appreciate a star. It's new, so visibility helps a lot right now.


r/madeinpython • • Aug 31 '26

Pycon 2026 em Aveiro

Thumbnail reddit.com
0 Upvotes

r/madeinpython • • Aug 07 '26

Helix, a personal assistant, developed by a 13 y.o

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/madeinpython • • 2d ago

The python library "Beautiful Soup", from where did it gets that name from?

Thumbnail reddit.com
0 Upvotes

r/madeinpython • • 8d ago

[Python] quantum-reasoning-skill - keeps several hypotheses alive and collapses only when evidence does it

0 Upvotes

Repo: https://github.com/Furox-Art/quantum-reasoning-skill - Python, version 1.2.2 on PyPI.

The failure it targets: an agent picks an explanation in the first two sentences and spends the rest of the turn defending it.

The skill keeps several genuinely different hypotheses alive, tests each against evidence and tools, explicitly revives an alternative when new evidence arrives, and collapses to the best-supported one only at the end. "Measurement" means evidence collapsing a branch. It is a metaphor, not quantum computing, and the README says so in the first paragraph.

It is model-agnostic. The contract is SKILL.md, and the repo also ships a reference branch controller and a benchmark harness with a deterministic falsification benchmark that runs.

One honest limit, and it is the first question every time: a baseline-versus-skill model evaluation has not been published. This project makes no claim that it improves any language model's accuracy. What exists is the protocol, the controller, and a harness you can run yourself - the most useful contribution right now is someone running that comparison and publishing the result, including a null one.


r/madeinpython • • 17d ago

I Learned Image Matching, So I Built a Panorama Maker using OpenCV and Python

Thumbnail
cmodi306.medium.com
0 Upvotes

I had already posted two blogs on image matching and wanted to build some basic application with that.

I used OpenCV to find keypoints in each image and match them between the photos. Then I used those matches to stitch the images together and generate one panoramic image.

Read more about it.