r/Python • • Feb 26 '26

Showcase I built a local-first task manager with schedule optimization, TUI, and Claude AI integration

0 Upvotes

What My Project Does

Taskdog is a personal task management system that runs entirely in your terminal. It provides a CLI, a full-screen TUI (built with Textual), and a REST API server — use whichever you prefer.

Key features:

  • Schedule optimization with multiple strategies (greedy, deadline-first, dependency-aware, etc.)
  • Gantt chart visualization in the terminal
  • Task dependencies with circular detection
  • Time tracking with planned vs actual comparison
  • Markdown notes with Rich rendering
  • MCP server for Claude Desktop integration — manage tasks with natural language

Target Audience

Developers and terminal-oriented users who want a local-first, privacy-respecting task manager. This is a personal project that I use daily, but it's mature enough for others to try.

Comparison

  • Motion / Reclaim: AI-powered scheduling, but cloud-only, $20+/month, and the optimization is a black box. Taskdog runs locally with transparent algorithms you can inspect and choose from.
  • Taskwarrior: Great CLI task manager, but hasn't seen major updates in years and lacks built-in schedule optimization or TUI.
  • Todoist / TickTick: Full-featured but cloud-dependent. No terminal interface, no schedule optimization.

Taskdog sits between these — terminal-native like Taskwarrior, with scheduling capabilities like Motion, but fully local and open source.

Tech stack:

  • Python 3.12+, UV workspace monorepo (5 packages)
  • FastAPI (REST API), Textual (TUI), Rich (CLI output)
  • SQLite with ACID guarantees
  • Clean Architecture with CQRS pattern

Links:

Would love any feedback — especially on UX, missing features, or things that could be improved. Thanks!


r/Python • • Feb 25 '26

Showcase MolBuilder: pure-Python molecular engineering -- from SMILES to manufacturing plans

14 Upvotes

What My Project Does:

MolBuilder is a pure-Python package that handles the full chemistry pipeline from molecular structure to production planning. You give it a molecule as a SMILES string and it can:

  1. Parse SMILES with chirality and stereochemistry
  2. Plan synthesis routes (91 hand-curated reaction templates, beam-search retrosynthesis)
  3. Predict optimal reaction conditions (analyzes substrate sterics and electronics to auto-select templates)
  4. Select a reactor type (batch, CSTR, PFR, microreactor)
  5. Run GHS safety assessment (69 hazard codes, PPE requirements, emergency procedures)
  6. Estimate manufacturing costs (materials, labor, equipment, energy, waste disposal)
  7. Analyze scale-up (batch sizing, capital costs, annual capacity)

The core is built on a graph-based molecule representation with adjacency lists. Functional group detection uses subgraph pattern matching on this graph (24 detectors). The retrosynthesis engine applies reaction templates in reverse using beam search, terminating when it hits purchasable starting materials (~200 in the database). The condition prediction layer classifies substrate steric environment and electronic character, then scores and ranks compatible templates.

Python-specific implementation details:

  • Dataclasses throughout for the reaction template schema, molecular graph, and result types
  • NumPy/SciPy for 3D coordinate generation (distance geometry + force field minimization)
  • Molecular dynamics engine with Velocity Verlet integrator
  • File I/O parsers for MOL/SDF V2000, PDB, XYZ, and JSON formats
  • Also ships as a FastAPI REST API with JWT auth, RBAC, and Stripe billing

Install and example:

pip install molbuilder

from molbuilder.process.condition_prediction import predict_conditions

result = predict_conditions("CCO", reaction_name="oxidation", scale_kg=10.0)

print(result.best_match.template_name) # TEMPO-mediated oxidation

print(result.best_match.conditions.temperature_C) # 5.0

print(result.best_match.conditions.solvent) # DCM/water (biphasic)

print(result.overall_confidence) # high

1,280+ tests (pytest), Python 3.11+, CI on 3.11/3.12/3.13. Only dependencies are numpy, scipy, and matplotlib.

GitHub: https://github.com/Taylor-C-Powell/Molecule_Builder

Tutorials: https://github.com/Taylor-C-Powell/Molecule_Builder/tree/main/tutorials

Target Audience:

Production use. Aimed at computational chemists, process chemists, and cheminformatics developers who need programmatic access to synthesis planning and process engineering. Also useful for teaching organic chemistry and chemical engineering - the tutorials are designed as walkable Jupyter notebooks. Currently used by the author in a production SaaS API.

Comparison:

vs. RDKit: RDKit is the standard open-source cheminformatics toolkit and focuses on molecular properties (fingerprints, substructure search, descriptors). MolBuilder (pure Python, no C extensions) focuses on the process engineering side - going from "I have a molecule" to "here's how to manufacture it at scale." Not a replacement for RDKit's molecular modeling depth.

vs. Reaxys/SciFinder: Commercial databases with millions of literature reactions. MolBuilder has 91 templates - far smaller coverage, but it's free, open-source (Apache 2.0), and gives you programmatic API access rather than a search interface.

vs. ASKCOS/IBM RXN: ML-based retrosynthesis tools. MolBuilder uses rule-based templates instead of neural networks, which makes it transparent and deterministic but less capable for novel chemistry. The tradeoff is simplicity and no external service dependency.


r/Python • • Feb 25 '26

Showcase I built an NBA player similarity search with FastAPI, Streamlit, Qdrant, and custom stat embeddings

10 Upvotes

What My Project Does

Finds NBA players with similar career profiles using vector search. Type "guards similar to Kobe from the 90s" and get ranked matches with radar chart comparisons.

Instead of LLM embeddings, the vectors are built from the stats themselves - 25 features normalized with RobustScaler, position one-hot encoded, stored in Qdrant for cosine similarity across ~4,800 players.

Stack: FastAPI + Streamlit + Qdrant + scikit-learn, all Python, runs in Docker on a Synology NAS.

Demo: valme.xyz
Source: github.com/ValmeI/nba-player-similarity

Target Audience

Personal project/learning reference for anyone interested in building custom embeddings from structured data, vector search with Qdrant, or full-stack Python with FastAPI + Streamlit.

Comparison

Most NBA comparison tools let you pick two players manually. This searches all players at once using their full stat vector - captures the overall shape of a career rather than filtering on individual stat thresholds.


r/Python • • Feb 26 '26

Showcase We need a "FastAPI for Events" in Python. So I started building one, but I need your thoughts.

0 Upvotes

Hey r/Python,

I’ve been working with Event-Driven Architectures lately, and I’ve hit a wall: the Python ecosystem doesn't seem to have a truly dedicated event processing framework. We have amazing tools like FastAPI for REST, but when it comes to event-driven services (supporting Kafka, RabbitMQ, etc.), the options feel lacking.

The closest thing we have right now is FastStream. It’s a cool project, but in my experience, it sometimes doesn't quite cut it. Because it is inherently stream-oriented (as the name implies), it misses some crucial event-oriented features out-of-the-box. Specifically, I've struggled with:

  • Proper data integrity semantics.
  • Built-in retries and Dead Letter Queue
  • Outbox patterns.
  • Truly asynchronous processing (e.g., Kafka partitions are processed synchronously by default, whereas they can be processed asynchronously if offsets are managed very carefully).

So, I’m curious: what are you all using for event-driven architectures in Python right now? Are you just rolling your own custom consumers?

I decided to try and put my ideal vision into code to see if a "FastAPI for Events" could work.

The goal is to provide asynchronous, schema-validated, resilient event processing without the boilerplate. Here is what I’ve got working so far:

🚀 What The Framework does right now:

  • FastAPI-style dependency injection – clean, decoupled handlers.
  • Pydantic v2 validation – automatic schema validation for all incoming events.
  • Pluggable transports – Kafka, RabbitMQ, and Redis PubSub out-of-the-box.
  • Resilience built-in – Configurable retry logic, DLQs, and automatic acknowledgements.
  • Composable Middleware – for logging, metrics, filtering, etc.

✨ What it looks like in practice

Here is how you define a Handler. Notice the FastAPI-like dependency injection and middleware filtering:

from typing import Annotated
from pydantic import BaseModel
from dispytch import Event, Dependency, Router
from dispytch.kafka import KafkaEventSubscription
from dispytch.middleware import Filter

# 1. Standard Service/Dependency
class UserService:
    async def do_smth_with_the_user(self, user):
        print("Doing something with user", user)

def get_user_service():
    return UserService()

# 2. Pydantic Event Schemas 
class User(BaseModel):
    id: str
    email: str
    name: str

class UserCreatedEvent(BaseModel):
    type: str
    user: User
    timestamp: int

# 3. The Router & Handler
user_events = Router()

user_events.handler(
    KafkaEventSubscription(topic="user_events"),
    middlewares=[Filter(lambda ctx: ctx.event["type"] == "user_registered")]
)
async def handle_user_registered(
        event: Event[UserCreatedEvent],
        user_service: Annotated[UserService, Dependency(get_user_service)]
):
    print(f"[User Registered] {event.user.id} at {event.timestamp}")
    await user_service.do_smth_with_the_user(event.user)

And here is how you Emit events using strictly typed schemas mapped to specific routes:

import uuid
from datetime import datetime
from pydantic import BaseModel
from dispytch import EventEmitter, EventBase
from dispytch.kafka import KafkaEventRoute

class User(BaseModel):
    id: str
    email: str

class UserEvent(EventBase):
    __route__ = KafkaEventRoute(topic="user_events")

class UserRegistered(UserEvent):
    type: str = "user_registered"
    user: User
    timestamp: int

async def example_emit(emitter: EventEmitter):
    await emitter.emit(
        UserRegistered(
            user=User(id=str(uuid.uuid4()), email="test@mail.com"),
            timestamp=int(datetime.now().timestamp()),
        )
    )

🎯 Target Audience

Dispytch is meant for backend developers and data engineers building Event-Driven Architectures and microservices in Python.

Currently, it is in active development. It is meant for developers looking to structure their message-broker code cleanly in side projects before we push it toward a stable 1.0 for production use. If you are tired of rolling your own custom Kafka/RabbitMQ consumers, this is for you.

⚔️ Comparison

The closest alternative in the Python ecosystem right now is FastStream. FastStream is a great project, but it misses some crucial event-oriented features out-of-the-box.

Dispytch differentiates itself by focusing on:

  • Data integrity semantics: Built-in retries and exception handling.
  • True asynchronous processing: For example, Kafka partitions are processed synchronously by default in most tools; Dispytch aims to handle async processing while managing offsets safely avoiding race conditions
  • Event-focused roadmap: Actively planning support for robust Outbox patterns to ensure atomicity between database transactions and event emissions

(Other tools like Celery or Faust exist, Celery is primarily a task queue, and Faust is strictly tied to Kafka and streaming paradigms, lacking the multi-broker flexibility and modern DI injection Dispytch provides).

💡 I need your feedback

I built this to scratch my own itch and properly test out these architectural ideas, tell me if I'm on the right track.

  1. What does your current event-processing stack look like?
  2. What are the biggest pitfalls you've hit when doing EDA in Python?
  3. If you were to use a framework like this, what features are absolute dealbreakers if they are missing? (I'm currently thinking about adding a proper Outbox pattern support next).

If you want to poke around the internals or read the docs, the repo is here, the docs is here.

Would love to hear your thoughts, roasts, and advice!