Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tooling support for the Polylith Architecture in Python.

License

NotificationsYou must be signed in to change notification settings

DavidVujic/python-polylith

A repo containing tooling support for the Polylith Architecture in Python.

The main use case is to support having one or more microservices (or apps) in a Monorepo, and share code between the services.

DavidVujic

CodeScene Code Health

Quality Gate Status

Download Stats

Download Stats

What's Polylith? 🤔

... Polylith is a software architecture that applies functional thinking at the system scale. It helps us build simple, maintainable, testable, and scalable backend systems. ...(from thePolylith Architecture docs)

Polylith is an architecture, with tooling support, that was originally built for Clojure.This repo bringsPolylith to Python.

Polylith is using a components-first architecture.You can think of it as building blocks, very much like LEGO bricks.All code lives in a Monorepo, available for reuse.Python code - the bricks - is separated from the infrastructure and the actual building of artifacts.

Use cases

Microservices and apps 👍

The main use case is to support having one or more microservices (or apps) in a Monorepo, and share code between the services.

Libraries

Polylith for Python has support for building libraries to be published at PyPI, even if it isn't the main use case.More details about how to package libraries in the docs aboutPackaging & deploying.

Documentation 📚

Have a look at thePython-specific documentation.You will find installation, setup, usage guides, examples and more.

Python Monorepos with Polylith 🐍

You can use Polylith with Poetry, Hatch, PDM, Rye, Maturin, Pixi, uv and Pantsbuild.This repo contains a Poetry plugin, a standalone CLI and build hooks.

The Poetry plugin adds tooling support to Poetry.The CLI adds tooling support for several Package & Dependency Managers (such as Hatch, PDM, Rye, Maturin, Pixi and uv).

The Hatch Build Hook adds build-specific support (also for uv, Rye, Pixi and Pantsbuild, using hatchling as the build backend).The PDM Build Hook forprojects adds build-specific support for PDM.The PDM Build Hook for theworkspace makes the virtual environment aware of the way Polylith organizes code (i.e. the bases and components folders).

✨ Examples and Production systems ✨

There's example Polylith repositories for:

The repositories are examplePython setups of the Polylith Architecture.You will find examples of sharing code between different kind of projects,and developer tooling setup such asmypy and thevenv.

There'smore examples and production systems in thedocumentation.

Videos

Talks

Guides

Podcasts

Articles

Repo Visualization

A visualization of this repo (that itself is a Polylith workspace) using thepoly info command.

poly-info

Sponsor this project

 

Languages


[8]ページ先頭

©2009-2025 Movatter.jp