Skip to main content

MIC — fondations agnostiques (contracts, model, http, auth, client, observability, healthcheck, resilience, cli, grpc).

Project description

mic-core

Fondations agnostiques du framework MIC (Model / Interface / Controller). mic-core est le socle : il ne dépend d'aucune brique de persistance ni de plateforme (voir le DAG platform → data → core dans ../README.md).

Modules

Module Rôle
mic.contracts Contrats / DTO partagés inter-couches
mic.model Erreurs de domaine (DomainError, TransientError), value objects
mic.http Spécifications HTTP agnostiques (HttpRouteSpec, HttpResponseSpec, HttpCookieSpec, HttpRequestContext)
mic.fastapi Adaptateur FastAPI (router builder, middlewares) — extra [fastapi]
mic.litestar Adaptateur Litestar — extra [litestar]
mic.auth JWT service-to-service (signer/verifier) — extra [auth]
mic.client Client HTTP inter-services (httpx) — extra [client]
mic.observability Logs JSON, métriques Prometheus, traces OTel — extra [observability] / [full-observability]
mic.healthcheck Sondes liveness/readiness
mic.resilience Circuit breaker, retry, timeouts
mic.cli Squelette CLI (argparse stdlib) — extra [cli]
mic.grpc Transport gRPC — extra [grpc]

Le paquet est un namespace PEP 420 (pas de mic/__init__.py) : import mic.* reste identique côté consommateur, qu'on installe mic-core seul ou avec mic-datastore / mic-platform.

Installation

pip install "mic-core[fastapi,auth,client,observability]"

Extras

Extra Tire
fastapi fastapi + uvicorn[standard] + starlette
litestar litestar
auth pyjwt
client httpx
observability prometheus-client + opentelemetry-api
sentry sentry-sdk (+ urllib3 patché)
tracing opentelemetry-sdk + exporter OTLP
full-observability observability + sentry + tracing
grpc grpcio + grpcio-health-checking
cli (rien — argparse stdlib)

Versionnage

mic-core démarre en 0.x (pré-releases dev/rc sur TestPyPI). Il graduera en 1.0 une fois les frontières prouvées et les services migrés (fin du split, cf. ADR-0001). En 0.x, un bump minor peut porter un changement cassant (SemVer 0.x) — contraindre avec >=0.1,<1.

Release

Voir ../../RELEASING.md § « Release par paquet » (make release-pkg PKG=core VERSION=x.y.z → tag core-vX.Y.Z).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mic_core-0.1.0.tar.gz (98.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mic_core-0.1.0-py3-none-any.whl (130.1 kB view details)

Uploaded Python 3

File details

Details for the file mic_core-0.1.0.tar.gz.

File metadata

  • Download URL: mic_core-0.1.0.tar.gz
  • Upload date:
  • Size: 98.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for mic_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 098fd75e65ab6cf3774cd5e041ced032222b8844c07621b3369aa933787cfdec
MD5 4b5c455b36267a8f2798075c985f8436
BLAKE2b-256 cd1e0b5edf53911deddfecd85839dc3ec85b1c79f320920e78e59287156840fa

See more details on using hashes here.

File details

Details for the file mic_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mic_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 130.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for mic_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36f308e5e87c3a1ec26bcd847e58309bd2d902fbbe0b3422f87ed53d0cf9fef1
MD5 16e51a9f20212198a4f00bd8601c43a1
BLAKE2b-256 e84cdeb4e2268dc1ee6a84300b4dbc14de3e01ba9b79cc96afcfca941c27a440

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page