Python Monorepo Architecture

Use when architecting or splitting a Python repository into a multi-package uv-workspace monorepo — a shared internal library plus one or more app or CLI members that depend on it — and you need the cross-package boundaries right: which code becomes a shared lib vs an app member, the acyclic depend-inward dependency direction (apps depend on the core lib, never on each other), the import-isolation discipline uv cannot enforce, each member's public API at the package boundary, cross-member test layout, and safely extracting shared code out of an existing package. Covers uv workspace wiring (members, tool.uv.sources, single lockfile, --package) and composes with the uv and python-project-structure skills. Keywords: monorepo, uv workspace, multi-package, shared library, package boundaries, dependency direction, circular import, import-linter.

bm629 34207dd 3 files · 24.0 KB Updated

File contents

bm629/agent-skills/tree/main/skills/python-monorepo-architecture commit 34207dda20

Frequently asked questions

npx skillmds@latest add bm629/python-monorepo-architecture