r/Python • • Mar 16 '26

Showcase Used FastF1, FastAPI, and LightGBM to build an F1 race strategy simulator

14 Upvotes

CSE student here. Built F1Predict, an F1 race simulation and strategy platform as a personal project.

**What My Project Does**

F1Predict simulates Formula 1 race strategy using a deterministic physics-based lap time engine as the baseline, with a LightGBM residual correction model layered on top. A 10,000-iteration Monte Carlo engine produces P10/P50/P90 confidence intervals per driver. You can adjust tyre degradation, fuel burn rate, safety car probability, and weather variance, then run side-by-side strategy comparisons (pit lap A vs B under the same seed so the delta is meaningful). There's also a telemetry-based replay system ingested from FastF1, a safety car hazard classifier per lap window, and a full React/TypeScript frontend.

The Python side specifically:

- FastAPI backend with Redis-backed simulation caching keyed on sha256 of normalized request payload

- FastF1 for telemetry ingestion via nightly GitHub Actions workflow uploading to Supabase storage

- LightGBM residual model with versioned features: tyre age x compound, sector variance, DRS activation rate, track evolution coefficient, qualifying pace delta, weather delta

- Separate 400-iteration strategy optimizer to keep API response times reasonable

- Graceful fallback throughout Redis unavailable means uncached execution, missing ML artifact means clean fallback to deterministic baseline

**Target Audience**

This is a toy/learning project not production and not affiliated with Formula 1 in any way. It's aimed at F1 fans who want to explore strategy scenarios, and at other students who are curious about combining physics-based simulation with ML residual correction. The repo is fully open source if anyone wants to run it locally or extend it.

**Comparison**

Most F1 strategy tools I found are either closed commercial systems (what actual teams use), simple spreadsheet models, or pure ML approaches trained end-to-end. F1Predict sits in a different spot: the deterministic physics engine handles the known variables (tyre deg curves, fuel load delta, pit stop loss) and the LightGBM layer corrects only the residual pace error that the physics model can't capture. This keeps the simulation interpretable you can see exactly why lap times change while still benefiting from data-driven correction. FastF1 makes the telemetry ingestion tractable for a solo student project in a way that wasn't really possible a few years ago.

Repo: https://github.com/XVX-016/F1-PREDICT

Live: https://f1.tanmmay.me

Happy to discuss the FastF1 pipeline, caching approach, or ML architecture. Feedback welcome.


r/Python • • Mar 16 '26

Showcase [Showcase] pytest-gremlins v1.5.0: Fast mutation testing as a pytest plugin.

7 Upvotes

Disclosure: This project was built with substantial assistance from Claude Code. The full test suite, CI matrix, and review process are visible in the repository.

  • Source: https://github.com/mikelane/pytest-gremlins
  • PyPI: https://pypi.org/project/pytest-gremlins/
  • Docs: https://pytest-gremlins.readthedocs.io/
  • GitHub Action: https://github.com/marketplace/actions/pytest-gremlins

What My Project Does

pytest-gremlins is a pytest plugin that runs mutation testing on your Python code. It injects small changes ("gremlins") into your source (swapping + for -, flipping > to >=, replacing True with False) then reruns your tests. If your tests still pass after a mutation, that's a gap in your test suite that line coverage alone won't reveal.

The core speed mechanism is mutation switching: instead of rewriting files on disk for each mutant, pytest-gremlins instruments your code once at the AST level and embeds all mutations behind environment variable toggles. There is no file I/O per mutant and no module reload. Coverage data determines which tests exercise each mutation, so only relevant tests run.

pip install pytest-gremlins
pytest --gremlins -n auto --gremlin-report=html

v1.5.0 adds:

  • Parallel evaluation via xdist. pytest --gremlins -n auto handles both test distribution and mutation parallelism. One flag, no separate worker config.
  • Inline pardoning. # gremlin: pardon[equivalent] suppresses a mutation with a documented reason when the mutant is genuinely equivalent to the original. --max-pardons-pct enforces a ceiling so pardoning cannot inflate your score.
  • Full pyproject.toml config. Every CLI flag has a [tool.pytest-gremlins] equivalent.
  • HTML reports with trend charts. Tracks mutation score across runs. Colors and contrast targets follow WCAG 2.1 AA.
  • Incremental caching. Results are keyed by content hash. Unchanged code and tests skip evaluation entirely on subsequent runs.

v1.5.1 (released today) adds multi-format reporting: --gremlin-report=json,html writes both in one run.

The pytest-gremlins-action is now on the GitHub Marketplace:

- uses: mikelane/pytest-gremlins-action@v1
  with:
    threshold: 80
    parallel: 'true'
    cache: 'true'

This runs parallel mutation testing with caching and fails the step if the score drops below your threshold.

Target Audience

Python developers who write tests and want to know whether those tests actually catch bugs. If you already use pytest and want test quality feedback beyond line coverage, this is on PyPI with CI across 12 platform/version combinations (Python 3.11 through 3.14 on Linux, macOS, and Windows).

Comparison

vs. mutmut: mutmut is the most actively maintained alternative (v3.5.0, Feb 2026). It runs as a standalone command (mutmut run), not a pytest plugin, so it doesn't integrate with your existing pytest config, fixtures, or xdist setup. Both tools support coverage-guided test selection and incremental caching. The key architectural difference is that pytest-gremlins embeds all mutations in a single instrumented copy toggled by environment variable, while mutmut generates and tests mutations individually. pytest-gremlins also provides HTML trend charts and WCAG-accessible reports.

vs. cosmic-ray: cosmic-ray uses import hooks to inject mutated AST at import time (no file rewriting, similar in spirit to pytest-gremlins). It requires a multi-step workflow (init, exec, report as separate commands); pytest-gremlins is a single pytest --gremlins invocation. cosmic-ray supports distributed execution via Celery, which allows multi-machine parallelism; pytest-gremlins uses xdist, which is simpler to configure but limited to a single machine.

vs. mutatest: mutatest uses AST-based mutation with __pycache__ modification (no source file changes). It lacks xdist integration and its last PyPI release was in 2022. Development appears inactive.

None of the alternatives offer a GitHub Action for CI integration.


r/Python • • Mar 16 '26

Daily Thread Monday Daily Thread: Project ideas!

8 Upvotes

Weekly Thread: Project Ideas šŸ’”

Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.

How it Works:

  1. Suggest a Project: Comment your project idea—be it beginner-friendly or advanced.
  2. Build & Share: If you complete a project, reply to the original comment, share your experience, and attach your source code.
  3. Explore: Looking for ideas? Check out Al Sweigart's "The Big Book of Small Python Projects" for inspiration.

Guidelines:

  • Clearly state the difficulty level.
  • Provide a brief description and, if possible, outline the tech stack.
  • Feel free to link to tutorials or resources that might help.

Example Submissions:

Project Idea: Chatbot

Difficulty: Intermediate

Tech Stack: Python, NLP, Flask/FastAPI/Litestar

Description: Create a chatbot that can answer FAQs for a website.

Resources: Building a Chatbot with Python

Project Idea: Weather Dashboard

Difficulty: Beginner

Tech Stack: HTML, CSS, JavaScript, API

Description: Build a dashboard that displays real-time weather information using a weather API.

Resources: Weather API Tutorial

Project Idea: File Organizer

Difficulty: Beginner

Tech Stack: Python, File I/O

Description: Create a script that organizes files in a directory into sub-folders based on file type.

Resources: Automate the Boring Stuff: Organizing Files

Let's help each other grow. Happy coding! 🌟


r/Python • • Mar 15 '26

Showcase Pymetrica: a new quality analysis tool

33 Upvotes

Hello everyone ! After almost a year and 100 commits into it, I decided to publish to PyPI my new personal tool: Pymetrica.

PyPI page: https://pypi.org/project/pymetrica/

Github repository: https://github.com/JuanJFarina/pymetrica

  • What My Project Does

Pymetrica analyzes Python codebases and generates reports for:

- Base Stats: files, folders, classes, functions, LLOC, layers, etc.
- ALOC: ā€œabstract lines of codeā€ (lines representing abstractions/indirections) and its percentage
- CC: Cyclomatic Complexity and its density per LLOC
- HV: Halstead Volume
- MC: Maintainability Cost (a simplified MI-style metric combining complexity and size)
- LI: Layer Instability (coupling between layers)
- Architecture Diagram: layers and modules with dependency arrows (number of imports)

Currently the tool outputs terminal reports. Planned features include CI/pre-commit integration, additional report formats, and configuration via pyproject.toml.

  • Target Audience

- Developers concerned with maintainability
- Tech Leads / Architects evaluating codebases
- Teams analyzing subpackages or layers for refactoring

Since the tool is "size independent", you can run the analysis on a whole codebase, on a sublayer, or any lower level module you like.

  • Comparison

I've been using Radon, SonarQube, Veracode, and Blackduck for some years now, but found their complexity-related metrics not too useful. I love good software designs that allow more maintainability and fast development, as well as sometimes like being more pragmatic and avoid premature abstractions and optimizations. At some point, I realized that if you have 100% code coverage (a typical metric used in CI checks) and also abstractions for almost everything in your codebase, you are essentially multiplying by 4 your codebase size. And while I found abstractions nice in general, I don't want to be maintaining 4 times the size of the real production value code.

So, my first venture for Pymetrica was to get a measure of "abstractness". That's where ALOC was born (abstract lines of code) which represent all lines of code that are merely indirections (that is, they will execute code that lives somewhere else). This also includes abstract classes, interfaces, and essentially any class that is never instantiated, among others (function definitions, function calls, etc.). The idea is of course not to go back to a pure structured programming, but to not get too lost in premature abstraction.

Shortly after that I started digging in other software metrics, and specially how to deal with "complexity". I got to see that most metrics (Cyclomatic Complexity, Halstead Volume, Maintainability Index, Cognitive Complexity, etc.) are not based on "codebases" but rather on "modules" or "functions" scopes, so I decided to implement "codebase-level" implementations of those. Also because it never made sense to me that SonarQube's "Cognitive Complexity" never flagged any of the horrible codebases I've seen in different projects.

My goal with Pymetrica is that it can be very actionable, that you can see a score and inmediately understand what needs to be done: MC is high ? Is it due to size or raw MC due to high CC and HV ? You can easily know that. And you can easily see if a subpackage ("layer") is the main culprit for it.

If your CC and HV is throwing off your MC (and barely the sheer size), you know you probably need to start creating a few abstractions and indirections, cleaning up some ugly code, etc. Your LLOC and ALOC will rise, but your raw MC will surely drop.

If your LLOC size is throwing off your MC, you can use the ALOC metric and check if maybe there are too many abstractions, or if perhaps this is time for splitting the codebase, or the subpackage, and perhaps increase the developing team.


r/Python • • Mar 15 '26

News Unrooted tree for multidimentional projection of data in XY space

2 Upvotes

I have created in Python possibility of presentation multidimentional data into 2D: https://github.com/rangeman1/Unrooted-phylogenetic-tree


r/Python • • Mar 15 '26

Showcase I wrote a Matplotlib scale that collapses weekends and off-hours on datetime x-axis

24 Upvotes

Financial time-series plots in Matplotlib have weekend gaps when plotted with datetime on the x-axis. A common workaround is to plot against an integer index instead of datetimes, but that breaks Matplotlib’s date formatting, locators, and other datetime-aware tools.

A while ago I came up with a solution and wrote a custom Matplotlib scale that removes those gaps while keeping a proper datetime axis. I have now put it into a Python package:

What my project does

Implements and ships a Matplotlib scale to remove weekends, holidays, and off-hours from datetime x-axes.

Under the hood, Matplotlib represents datetimes as days since 1970-01-01. This scale remaps the values to business days since 1970-01-01, skipping weekends, holidays, and off-hours. Business days are configurable using the standard `numpy.is_busday` options. Conceptually, it behaves like a log scale: a transform applied to the axis rather than to the data itself.

Target audience

Anyone plotting financial or business time-series data that wants to remove non-business time from the x-axis.

Usage

pip install busdayaxis  
  
  
import busdayaxis  
busdayaxis.register_scale()   # register the scale with Matplotlib  
  
  
ax.set_xscale("busday") # removes weekends  
ax.set_xscale("busday", bushours=(9, 17)) # also collapses overnight gaps  

GitHub with example: https://github.com/saemeon/busdayaxis

Docs with multiple examples: https://saemeon.github.io/busdayaxis/

This is my first published Python package and also my first proper Reddit post. Feedback, comments, suggestions, or criticism are very welcome.


r/Python • • Mar 15 '26

News **I made a "Folding@home" swarm for local LLM research**

0 Upvotes

I added a coordinator and worker mode to karpathy's autoresearch. You run `coordinator.py` on your main PC, and `worker.py` on any other device. They auto-discover each other via mDNS, fetch tasks, and train in parallel. I'm getting 3x faster results using my old Mac Mini and gaming PC together.


r/Python • • Mar 15 '26

Showcase Built a CLI tool that runs pre-training checks on PyTorch pipelines — pip install preflight-ml

1 Upvotes

Been working on this side project after losing three days to a silent label leakage bug in a training pipeline. No errors, no crashes, just a model that quietly learned nothing.

**What my project does**

preflight is a CLI tool you run before starting a PyTorch training job. It checks for the silent stuff that breaks models without throwing errors — NaN/Inf values in tensors, label leakage between train and val splits, wrong channel ordering (NHWC vs NCHW), dead or exploding gradients, class imbalance, VRAM estimation, normalisation sanity.

Ten checks total across fatal/warn/info severity tiers. Exits with code 1 on fatal failures so it can block CI.

pip install preflight-ml

preflight run --dataloader my_dataloader.py

**Target audience**

Anyone training PyTorch models — students, researchers, ML engineers. Especially useful if you're running long training jobs on GPU and want to catch obvious mistakes in 30 seconds before committing hours of compute. Not production infrastructure, more of a developer workflow tool.

**Comparison with alternatives**

- pytest — tests code logic, not data state. preflight fills the gap between "my code runs" and "my data is actually correct"

- Deepchecks — excellent but heavy, requires setup, more of a platform. preflight is one pip install, one command, zero config to get started

- Great Expectations — general purpose data validation, not ML-specific. preflight checks are built around PyTorch concepts (tensors, dataloaders, channel ordering)

- PyTorch Lightning sanity check — runtime only, catches code crashes. preflight runs before training, catches data state bugs

It's v0.1.1 and genuinely early. Stack is Click for CLI, Rich for terminal output, pure PyTorch for the checks. Each check is a decorated function so adding new ones is straightforward.

Would love feedback on what's missing or wrong. Contributors welcome.

GitHub: https://github.com/Rusheel86/preflight

PyPI: https://pypi.org/project/preflight-ml/


r/Python • • Mar 15 '26

News Robyn (finally) offers first party Pydantic integration šŸŽ‰

60 Upvotes

For the unaware - Robyn is a fast, async Python web framework built on a Rust runtime.

Pydantic integration is probably one of the most requested feature for us. Now we have it :D

Wanted to share it with people outside the Robyn community

You can check out the release at - https://github.com/sparckles/Robyn/releases/tag/v0.81.0


r/Python • • Mar 15 '26

Showcase justx - An interactive command library for your terminal, powered by just

39 Upvotes

What My Project Does

justx is an interactive terminal wrapper for just. The main thing it adds is an interactive TUI to browse, search, and run your recipes. On top of that, it supports multiple global justfiles (~/.justx/git.just, docker.just, …) which lets you easily build a personal command library accessible from anywhere on your system.

A quick demo can be seen here.

Prerequisites

Try it out with:

pip install rust-just # if not installed yet
pip install justx
justx init --download-examples
justx

Target Audience

Developers who want a structured way to organize and run their commonly used commands across the system.

Comparison

  • just itself has no TUI and limited global recipe management. justx adds a TUI on top of just, and brings improved capability for global recipes by allowing users to place multiple files in the ~/.justx directory.

Learn More


r/Python • • Mar 15 '26 Bravo

News Mesa 4.0 alpha released

23 Upvotes

Hi everyone!

We've started development towards Mesa 4.0 and just released the first alpha. This is a big architectural step forward: Mesa is moving from step-based to event-driven simulation at its core, while cleaning up years of accumulated API cruft.

What's Agent-Based Modeling?

Ever wondered how bird flocks organize themselves? Or how traffic jams form? Agent-based modeling (ABM) lets you simulate these complex systems by defining simple rules for individual "agents" (birds, cars, people, etc.) and watching how patterns emerge from their interactions. Instead of writing equations for the whole system, you model each agent's behavior and let the collective dynamics arise naturally.

What's Mesa?

Mesa is Python's leading framework for agent-based modeling. It builds on Python's scientific stack (NumPy, pandas, Matplotlib) and provides specialized tools for spatial relationships, agent scheduling, data collection, and browser-based visualization. Whether you're studying epidemic spread, market dynamics, or ecological systems, Mesa gives you the building blocks for sophisticated simulations.

What's new in Mesa 4.0 alpha?

Event-driven at the core. Mesa 3.5 introduced public event scheduling on Model, with methods like model.run_for(), model.run_until(), model.schedule_event(), and model.schedule_recurring(). Mesa 4.0 continues development on this front: model.steps is gone, replaced by model.time as the universal clock. The mental model moves from "execute step N" to "advance time, and whatever is scheduled will run." The event system now supports pausing/resuming recurring events, exposes next scheduled times, and enforces that time actually moves forward.

Experimental timed actions. A new Action system gives agents a built-in concept of doing something over time. Actions integrate with the event scheduler, support interruption with progress tracking, and can be resumed:

from mesa.experimental.actions import Action

class Forage(Action):
    def __init__(self, sheep):
        super().__init__(sheep, duration=5.0)

    def on_complete(self):
        self.agent.energy += 30

    def on_interrupt(self, progress):
        self.agent.energy += 30 * progress  # Partial credit

sheep.start_action(Forage(sheep))

Deprecated APIs removed. This is a major version, so we followed through on removals: the seed parameter (use rng), batch_run (use Scenario), the legacy mesa.space module (use mesa.discrete_space), PropertyLayer (replaced by raw NumPy arrays on the grid), and the Simulator classes (replaced by the model-level scheduling methods). If you've been following deprecation warnings in 3.x, most of this should be straightforward.

Cleaner internals. A new mesa.errors exception hierarchy replaces generic Exception usage. DiscreteSpace is now an abstract base class enforcing a consistent spatial API. Property access on cells uses native property closures on a dynamic GridCell class. Several targeted performance optimizations reduce allocations in the event system and continuous space.

This is an alpha

Expect rough edges. We're releasing early to get feedback from the community before the stable release. Further breaking changes are possible. If you're running Mesa in production, stay on 3.5 for now. We'd love for adventurous users to try the alpha and tell us what breaks.

What's ahead for 4.0 stable

We're still working on the space architecture (multi-space support, observable positions), replacing DataCollector with the new reactive DataRecorder, and designing a cleaner experimentation API around Scenario. Check out our tracking issue for the full roadmap.

Talk with us!

We'd love to hear what you think:


r/Python • • Mar 15 '26

News I made @karpathy's Autoresearch work on CPU - and it's NOT bloated

0 Upvotes

I saw the comment about CPU support potentially bloating the code - so I decided to prove it doesn't have to!

My fork: https://github.com/bopalvelut-prog/autoresearch


r/Python • • Mar 15 '26

Showcase I used C++ and nanobind to build a zero-copy graph engine that lets Python train on 50GB datasets

118 Upvotes

If you’ve ever worked with massive datasets in Python (like a 50GB edge list for Graph Neural Networks), you know the "Memory Wall." Loading it via Pandas or standard Python structures usually results in an instant 24GB+ OOM allocation crash before you can even do any math.

so I built GraphZero (v0.2) to bypass Python's memory overhead entirely.

What My Project Does

GraphZero is a C++ data engine that streams datasets natively from the SSD into PyTorch without loading them into RAM.

Instead of parsing massive CSVs into Python memory, the engine compiles the raw data into highly optimized binary formats (.gl and .gd). It then uses POSIX mmap to memory-map the files directly from the SSD.

The magic happens with nanobind. I take the raw C++ pointers and expose them directly to Python as zero-copy NumPy arrays.

import graphzero as gz
import torch

# 1. Mount the zero-copy engine
fs = gz.FeatureStore("papers100M_features.gd")

# 2. Instantly map SSD data to PyTorch (RAM allocated: 0 Bytes)
X = torch.from_numpy(fs.get_tensor())

During a training loop, Python thinks it has a 50GB tensor sitting in RAM. When you index it, it triggers an OS Page Fault, and the operating system automatically fetches only the required 4KB blocks from the NVMe drive. The C++ side uses OpenMP to multi-thread the data sampling, explicitly releasing the Python GIL so disk I/O and GPU math run perfectly in parallel.

Target Audience

  • Who it's for: ML Researchers, Data Engineers, and Python developers training Graph Neural Networks (GNNs) on massive datasets that exceed their local system RAM.
  • Project Status: It is currently in v0.2. It is highly functional for local research and testing (includes a full PyTorch GraphSAGE example), but I am looking for community code review and stress-testing before calling it production-ready.

Comparison

  • vs. PyTorch Geometric (PyG) / DGL: Standard GNN libraries typically attempt to load the entire edge list and feature matrix into system memory before pushing batches to the GPU. On a dataset like Papers100M, this causes an instant out-of-memory crash on consumer hardware. GraphZero keeps RAM allocation at 0 bytes by streaming the data natively.
  • vs. Pandas / Standard Python: Loading massive CSVs via Pandas creates massive memory overhead due to Python objects. GraphZero uses strict C++ template dispatching to enforce exact FLOAT32 or INT64 memory layouts natively, and nanobind ensures no data is copied when passing the pointer to Python.

I built this mostly to dive deep into C-bindings, memory management, and cross-platform CI/CD (getting Apple Clang and MSVC to agree on C++20 was a nightmare).

The repo has a self-contained synthetic example and a training script so you can test the zero-copy mounting locally. I'd love for this community to tear my code apart—especially if you have experience with nanobind or high-performance Python extensions!

GitHub Repo: repo


r/Python • • Mar 15 '26

Tutorial Best Python approach for extracting structured financial data from inconsistent PDFs?

45 Upvotes

Hi everyone,

I'm currently trying to design a Python pipeline to extract structured financial data from annual accounts provided as PDFs. The end goal is to automatically transform these documents into structured financial data that can be used in valuation models and financial analysis.

The intended workflow looks like this:

  1. Upload one or more PDF annual accounts
  2. Automatically detect and extract the balance sheet and income statement
  3. Identify account numbers and their corresponding amounts
  4. Convert the extracted data into a standardized chart of accounts structure
  5. Export everything into a structured format (Excel, dataframe, or database)
  6. Run validation checks such as balance sheet equality and multi-year comparisons

The biggest challenge is that the PDFs are very inconsistent in structure.

In practice I encounter several types of documents:

1. Text-based PDFs

  • Tables exist but are often poorly structured
  • Columns may not align properly
  • Sometimes rows are broken across lines

2. Scanned PDFs

  • Entire document is an image
  • Requires OCR before any parsing can happen

3. Layout variations

  • The position of the balance sheet and income statement changes
  • Table structures vary significantly
  • Labels for accounts can differ slightly between documents
  • Columns and spacing are inconsistent

So the pipeline needs to handle:

  • Text extraction for normal PDFs
  • OCR for scanned PDFs
  • Table detection
  • Recognition of account numbers
  • Mapping to a predefined chart of accounts
  • Handling multi-year data

My current thinking for a Python stack is something like:

  • pdfplumber or PyMuPDF for text extraction
  • pytesseract + opencv for OCR on scanned PDFs
  • Camelot or Tabula for table extraction
  • pandas for cleaning and structuring the data
  • Custom logic to detect account numbers and map them

However, I'm not sure if this is the most robust approach for messy real-world financial PDFs.

Some questions I’m hoping to get advice on:

  • What Python tools work best for reliable table extraction in inconsistent PDFs?
  • Is it better to run OCR first on every PDF, or detect whether OCR is needed?
  • Are there libraries that work well for financial table extraction specifically?
  • Would you recommend a rule-based approach or something more ML-based for recognizing accounts and mapping them?
  • How would you design the overall architecture for this pipeline?

Any suggestions, libraries, or real-world experiences would be very helpful.

Thanks!


r/Python • • Mar 15 '26

Discussion I open-sourced JobMatch Bot – a Python pipeline for ATS job aggregation and resume-aware ranking

2 Upvotes

Hi everyone,

I recently open-sourced a project called JobMatch Bot.

It’s a Python pipeline that aggregates jobs directly from ATS systems such as Workday, Greenhouse, Lever, and others, normalizes the data, removes duplicates, and ranks jobs based on candidate-fit signals.

The motivation was that many relevant roles are scattered across different company career portals and often hidden behind filtering mechanisms on traditional job sites.

This project experiments with a recall-first ingestion approach followed by ranking.

Current features:

• Multi-source ATS ingestion

• Job normalization and deduplication

• Resume-aware ranking signals

• CSV and Markdown output for reviewing matches

• Diagnostics for debugging sources

It’s still an early experiment and not fully complete yet, but I wanted to share it with the Python community and get feedback.

GitHub:

https://github.com/thalaai/jobmatch-bot

Would appreciate any suggestions or ideas on improving ATS coverage or ranking logic.


r/Python • • Mar 15 '26

Discussion Virtual environment setup

0 Upvotes

Hey looking for some advice on venv setup I have been learning more about them and have been using terminal prompts in VS Code to create and activate that them, I saw someone mention about how their gitignore was automatically generated for them and was wondering how this was done I’ve looked around but maybe I’m searching the wrong thing I know I can use gitignore.io but if it could be generated when I make the environment that would save me having to open a browser each time just to set it all up. Would love to know what you all do for your venv setup that makes it easier and faster to get it activated


r/Python • • Mar 15 '26

Daily Thread Sunday Daily Thread: What's everyone working on this week?

2 Upvotes

Weekly Thread: What's Everyone Working On This Week? šŸ› ļø

Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!

How it Works:

  1. Show & Tell: Share your current projects, completed works, or future ideas.
  2. Discuss: Get feedback, find collaborators, or just chat about your project.
  3. Inspire: Your project might inspire someone else, just as you might get inspired here.

Guidelines:

  • Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
  • Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.

Example Shares:

  1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
  2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
  3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!

Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟


r/Python • • Mar 14 '26

Showcase Title: I built a desktop cat pet using Python and Tkinter

2 Upvotes

What My Project Does

I built a small desktop pet using Python that runs as a transparent window and walks around the screen like a virtual cat.

The pet has multiple animations such as idle, running, fast running, sitting down, standing up, napping, and looking around while napping. It randomly switches between these states to make the behavior feel more natural.

The cat can also:

  • change direction when hitting the edge of the screen
  • be dragged around the screen with the mouse
  • react to right-clicks by becoming angry
  • occasionally play a meow sound

The animations are implemented using GIF frames loaded with Tkinter, and the behavior is controlled with a simple state machine.

Source code:
https://github.com/Atharv-Shirsath/desktop-pet

Target Audience

This project is mainly intended as a fun toy project and learning exercise.

Comparison

Desktop pets already exist in other languages and platforms, and there are a few Python versions as well.

This project focuses on:

  • keeping the code relatively simple and readable
  • using pure Python with Tkinter
  • implementing a small animation/state system for behavior

Unlike some alternatives that rely on external frameworks or game engines, this project keeps everything lightweight and easy to run.


r/Python • • Mar 14 '26

Discussion Is the new MacBook Neo ok for python network testing?

0 Upvotes

Im eyeing a vivibook,

But close to $1k, I don’t want to get a virus from just doing tests possibly.

Is the new MacBook neo,

Good for testing?


r/Python • • Mar 14 '26

News slixmpp 1.14 released

3 Upvotes

Dear all,

Slixmpp is anĀ MIT licensedĀ XMPP library for Python 3.11+, the 1.14 version has been released:
- https://blog.mathieui.net/en/slixmpp-1-14.html


r/Python • • Mar 14 '26

Discussion Suggestions for My Notes App Project

0 Upvotes

Hi everyone,

I’m building a Notes App using Python (Flask) for the backend. It includes features like creating, editing, deleting, and searching notes. I’m also planning to add time and separate workspaces for users.

What other features would you suggest for a notes app?


r/Python • • Mar 14 '26

Showcase GoPdfSuit v5.0.0: A high-performance PDF engine for Python (now on PyPI)

33 Upvotes

I’m excited to share the v5.0.0 release of GoPdfSuit. While the core engine is powered by Go for performance, this update officially brings it into the Python ecosystem with a dedicated PyPI package.

What My Project Does

GoPdfSuit is a document generation and processing engine designed to replace manual coordinate-based coding (like ReportLab) with a visual, JSON-based workflow. You design your layouts using a React-based UI and then use Python to inject data into those templates.

Key Features in v5.0.0:

Official Python Wrapper: Install via pip install pypdfsuit.

Advanced Redaction: Securely scrub text and links using internal decryption.

Typst Math Support: Render complex formulas using Typst syntax (cleaner than LaTeX) at native speeds.

Enterprise Performance: Optimized hot-paths with a lock-free font registry and pre-resolved caching to eliminate mutex overhead.

Target Audience

This project is intended for production environments where document generation speed and maintainability are critical. It’s ideal for developers who are tired of "guess-and-check" coordinate coding and want a more visual, template-driven approach to PDFs.

It provide the PDF compliance (PDF/UA-2 and PDF/A-4) even if not compliance the performance is just subpar. (You can check the website for performance comparison)

Comparison

Vs. ReportLab: Instead of writing hundreds of lines of Python to position elements, GoPdfSuit uses a visual designer. The engine logic runs in ~60ms, significantly outperforming pure Python solutions for heavy-duty document generation.

How Python is Relevant

Python acts as the orchestration layer. By using the pypdfsuit library, you can interact with the Go-powered binary or containerized service using standard Python objects. You get the developer experience of Python with the performance of a Go backend.

Website - https://chinmay-sawant.github.io/gopdfsuit/

Youtube Demo - https://youtu.be/PAyuag_xPRQ

Source Code:

https://github.com/chinmay-sawant/gopdfsuit

Sample python code

https://github.com/chinmay-sawant/gopdfsuit/tree/master/sampledata/python/amazonReceipt

Documentation - https://chinmay-sawant.github.io/gopdfsuit/#/documentation?item=introduction

PyPI: pip install pypdfsuit

If you find this useful, a Star on GitHub is much appreciated! I'm happy to answer any questions about the architecture or implementation.


r/Python • • Mar 14 '26

Resource Productivity tools for lazy computer dwellers

0 Upvotes

Hey everyone first post here, trying to get some ideas i had out and talk about em. Im currently working on putting together a couple python based tools for productivity. Just basic discipline stuff, because I myself, am fucking lazy. Already have put together a locking program that forces me to do 10 pushups on webcam before my "system unlocks". Opens itself on startup and "locks" from 5-8am. I have autohotkey to disable keyboard commands like alt+tab, alt+f4, windows key, no program can open ontop. ONLY CTRL+ALT+DEL TASK MANAGER CAN CLOSE PYTHON, thats the only failsafe. (combo of mediapipe, python, autohotkey v2, windows task scheduler, and chrome). My next idea is a day trading journal, everyday at 5pm when i get off work and get home my pc will be locked until i fill out a journal page for my day. Dated and auto added to a folder, System access granted on finishing the page. Included in post is a github link with a README inside with all install and run instructions, as well as instructions for tweaking anything youd want to change and make more personalized. 8-10 hours back and forth with claude and my morning start off way better and i have no choice. If anyone has ever made anything similar id love to hear about it. github.com/theblazefire20/Morning-Lock


r/Python • • Mar 14 '26

Daily Thread Saturday Daily Thread: Resource Request and Sharing! Daily Thread

2 Upvotes

Weekly Thread: Resource Request and Sharing šŸ“š

Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!

How it Works:

  1. Request: Can't find a resource on a particular topic? Ask here!
  2. Share: Found something useful? Share it with the community.
  3. Review: Give or get opinions on Python resources you've used.

Guidelines:

  • Please include the type of resource (e.g., book, video, article) and the topic.
  • Always be respectful when reviewing someone else's shared resource.

Example Shares:

  1. Book: "Fluent Python" - Great for understanding Pythonic idioms.
  2. Video: Python Data Structures - Excellent overview of Python's built-in data structures.
  3. Article: Understanding Python Decorators - A deep dive into decorators.

Example Requests:

  1. Looking for: Video tutorials on web scraping with Python.
  2. Need: Book recommendations for Python machine learning.

Share the knowledge, enrich the community. Happy learning! 🌟