polylith-cli
Python tooling support for the Polylith Architecture
Decision gist · record as of 2026-08-14
Yes, if you are adopting or exploring Polylith architecture in Python. The tool is actively maintained, has low install friction, carries no security vulnerabilities, and is licensed permissively. It is most valuable as part of a deliberate shift toward modular, component-based code organization; it is not a general-purpose utility for typical projects. Install it as a dev dependency in your chosen package manager and use it to bootstrap and manage your workspace structure.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later; intended for use within a project initialized with a package manager like Hatch, PDM, Rye, or uv, not as a standalone tool.
- Low friction installation with five lightweight runtime dependencies (pyyaml, rich, tomlkit, typer, typing_extensions).
- Actively maintained with a release 7 days ago and consistent recent commits; the project shows solid community engagement with 553 repository stars.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and commercial contexts with minimal legal friction.
last release 2026-08-07 (7 days) · last repo commit 2026-08-07 · 553 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 110,286 downloads/mo, #12,473 on PyPI
Alternatives
Verify before relying
pip install polylith-cli
# Then in your project directory:
poly create workspace --name my_namespace --theme loose
poly create component --name my_component
poly create base --name my_example_endpoint- Whether the tool enforces Polylith architecture constraints or only scaffolds the initial structure
- Performance characteristics when managing large workspaces with many components
- Integration depth with each supported package manager (Hatch, PDM, Rye, uv, Poetry)
What it is and what it does
Polylith-cli is a command-line interface that brings Polylith architecture patterns to Python projects. Polylith is an architecture pattern for organizing code into loosely coupled, highly cohesive modules called components, bases, and projects. The CLI automates workspace initialization and the creation of these structural elements, handling boilerplate setup and directory organization so developers can focus on building modular systems.
The tool integrates with popular Python package managers—Hatch, PDM, Rye, and uv—and works alongside Poetry via a dedicated plugin. It provides commands to scaffold workspaces with a chosen theme (e.g., 'loose'), then create individual components, bases (entry points), and projects within that structure. The CLI relies on five core dependencies to deliver this: pyyaml for configuration, rich for terminal output, tomlkit for pyproject.toml manipulation, typer for command-line argument handling, and typing_extensions for type hints.
Use it for
- Initialize a new modular Python project with Polylith structure and chosen theme in a single command.
- Scaffold new components, bases, or projects within an existing workspace without manual directory creation.
- Integrate Polylith architecture into projects using Hatch, PDM, Rye, or uv as the build and dependency manager.
- Enforce consistent code organization patterns across a team by automating structural setup.
- Migrate existing Python projects to a modular architecture by generating the initial Polylith workspace layout.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are adopting or exploring Polylith architecture in Python.
The tool is actively maintained, has low install friction, carries no security vulnerabilities, and is licensed permissively. It is most valuable as part of a deliberate shift toward modular, component-based code organization; it is not a general-purpose utility for typical projects. Install it as a dev dependency in your chosen package manager and use it to bootstrap and manage your workspace structure.
Install
polylith-cli on PyPI
Before you install
Low friction installation with five lightweight runtime dependencies (pyyaml, rich, tomlkit, typer, typing_extensions). Actively maintained with a release 7 days ago and consistent recent commits; the project shows solid community engagement with 553 repository stars.
Requires Python 3.8 or later; intended for use within a project initialized with a package manager like Hatch, PDM, Rye, or uv, not as a standalone tool.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial contexts with minimal legal friction.
Quickstart
pip install polylith-cli
# Then in your project directory:
poly create workspace --name my_namespace --theme loose
poly create component --name my_component
poly create base --name my_example_endpoint
Verify before relying
- Whether the tool enforces Polylith architecture constraints or only scaffolds the initial structure
- Performance characteristics when managing large workspaces with many components
- Integration depth with each supported package manager (Hatch, PDM, Rye, uv, Poetry)
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagespyyamlrichtomlkittypertyping_extensions |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 110,286 / month, #12,473 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: polylith_cli-1.50.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “polylith architecture python”
- polylith-cliA command-line tool that scaffolds and manages Polylith architecture…
- hatch-polylith-bricksA Hatch build hook that integrates Polylith architecture bricks into…
- poetry-multiproject-pluginA Poetry plugin that enables building and type-checking projects with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also hatch-polylith-bricks · cement · requires.io · ansible-creator · pyrig · Naked · hatch_build_scripts · ms-fabric-cli · ovos-config · pdm