$npx skillfedfor your agent

polylith-cli

Python tooling support for the Polylith Architecture

With conditionsPyPI Build ToolsReleased Aug 2026110.3K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — polylith_cli-1.50.0-py3-none-any.whl
v1.50.0 · released 2026-08-07 · Python <4.0,>=3.8 · 5 runtime deps: pyyaml, rich, tomlkit, typer, typing_extensions

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

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)
Same gist for agents: .md · .json

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.

With conditions

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

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
pyyamlrichtomlkittypertyping_extensions
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads110,286 / month, #12,473 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
polylith architecture pythonmodular code structure generatorcomponent-based project scaffoldingworkspace organization toolpython architecture climonorepo structure managementpolylith workspace setup
Topics
architecture-patternproject-scaffoldingmodular-design

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Build Tools packages

packaging Worth it
PyPI · Build Tools · released Aug 2026

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.

Apache-2.0 OR BSD-2-Clausepure Python · 3.9+
2.2Bdownloads / mo
tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
pip Worth it
PyPI · Build Tools · released Aug 2026

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.

MITpure Python · 3.10+
617.5Mdownloads / mo
hatchling Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
484.2Mdownloads / mo
grpcio-tools Worth it
PyPI · Build Tools · released Jul 2026

Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.

Apache-2.0compiled wheel · 3.10+
278.2Mdownloads / mo
pre-commit Worth it
PyPI · Build Tools · released Aug 2026

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.

permissive licensepure Python · 3.10+
179.9Mdownloads / mo

See also hatch-polylith-bricks · cement · requires.io · ansible-creator · pyrig · Naked · hatch_build_scripts · ms-fabric-cli · ovos-config · pdm