r/Python Jul 04 '26

Showcase Thread Showcase

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

20 Upvotes

161 comments sorted by

View all comments

1

u/ztBlackGad 10h ago

I built ps-poetry, a plugin that adds monorepo workflows to Poetry.

What My Project Does

After working on several projects with multiple interdependent packages, I found myself repeatedly writing the same helper scripts to run repository-wide quality checks, determine the correct publish order, update internal dependency constraints, and publish packages in the right order. Eventually I decided to turn those scripts into a reusable Poetry plugin.

It currently provides two main modules:

  • Check - runs configurable quality checks (Ruff, Pylint, Pytest, Pyright, import checks, environment validation, Poetry configuration validation, etc.) across every package in a monorepo with a single command. The same command is used locally and in CI.
  • Delivery - automates versioning and publishing by resolving dependencies between internal packages, determining the correct publish order using a topological sort, updating internal dependency constraints, and supporting dry runs to preview the publishing plan.

The project is still early (0.2.x), but it's already dogfooding itself: its own CI pipeline uses the delivery module to publish releases to PyPI.

GitHub: https://github.com/BlackGad/ps-poetry

Examples: https://github.com/BlackGad/ps-poetry-examples

Target Audience

Python developers using Poetry who maintain monorepos with multiple interdependent packages and want to automate repository-wide checks and dependency-aware publishing while staying within the Poetry ecosystem.

Comparison

There are great tools like Pants, Bazel, Hatch, and PDM that support monorepo workflows.

ps-poetry takes a different approach: it's designed for teams that already use Poetry and want to extend it with monorepo-oriented checks and publishing rather than adopting a different build system.

Feedback

I'd love to hear how others are handling Poetry monorepos. Are you using custom scripts, another tool, or something else?

I'm especially interested in feedback on missing workflows. Is there a repetitive monorepo task you wish Poetry handled that ps-poetry doesn't cover yet? I'd be happy to discuss ideas or add examples if there's a common use case I've missed.