# cosmicpython/code

Example application code for the python architecture book

Repository: https://github.com/cosmicpython/code
Canonical: https://ross.abutalabs.com/products/cosmicpython-code
Language: Python
License: NOASSERTION
License Family: other
Last push: 2025-06-10T05:30:34+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 26, release rhythm 35, longevity 100
- inputs: {"age_days": 2766, "days_push": 449, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2693, forks 1143 (observed 2026-08-28T04:07:11.091593+00:00)

## What it is
Companion example application code for the book 'Architecture Patterns with Python' by cosmicpython. Each chapter has its own branch demonstrating patterns like service layers, domain modeling, and event-driven architecture with tests and Docker setup.

## Use cases
- learn architecture patterns with python
- example code for domain-driven design in python
- how to structure a python service layer
- study event-driven architecture examples
- code along with the architecture patterns with python book
- see unit, integration and e2e test setup in python

## When to choose
- you are reading the 'Architecture Patterns with Python' book and want to follow along
- you want a worked example of DDD, service layers, and event-driven patterns in Python
- you want to see how to organize unit, integration, and e2e tests with Docker Compose

## When to avoid
- you need a production-ready framework or library to drop into your project
- you want a standalone application rather than educational example code
- you are not working in Python or with Docker

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, testing, e2e-testing
- domain: developer-tools, tutorials, backend, web-development
- platform: python, cross-platform
- tags: architecture-patterns, example-code, book-companion, ddd, clean-architecture, docker-compose, docker

## Member repositories
- cosmicpython/code (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:11.091593+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:16:21.919304+00:00, confidence not recorded.
  - readme: https://github.com/cosmicpython/code (fetched 2026-08-28T04:07:11.091593+00:00, sha dbca736ea14f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
