Skip to main content

mic-platform

Briques policy, contrôle et intégrations d'identité du framework MIC. Sommet du DAG platform → data → core : dépend de mic-core ET mic-datastore.

Modules

Module Rôle
mic.authz Autorisation : moteur in-memory, OPA, OpenFGA (appels API via httpx)
mic.identity.keycloak Client OIDC Keycloak concret, sans dépendance FastAPI/Litestar
mic.ratelimit Rate limiting (in-memory / Redis Lua) + RateLimitMiddleware

Namespace PEP 420 (pas de mic/__init__.py).

Installation

pip install "mic-platform[keycloak,openfga,redis]"

Extras

Extra Tire
opa mic-core[client] (httpx — appels HTTP vers l'agent OPA)
openfga mic-core[client] (httpx — API OpenFGA ; pas le SDK officiel)
keycloak mic-core[client] (httpx : discovery, authorization code + PKCE, refresh, logout)
redis mic-datastore[redis] (backend Lua du rate limiter)

ℹ️ L'adaptateur OpenFGA (mic.authz.openfga) parle à l'API HTTP via httpx, il n'utilise pas openfga-sdk.

mic.identity.keycloak.KeycloakClient ne dépend d'aucun transport entrant : les adaptateurs FastAPI, Litestar, WebSocket ou gRPC extraient les credentials, puis appellent ce client et mic.auth.OidcTokenVerifier. Le client ne réimplémente pas la validation JWT/JWKS et n'expose volontairement pas le password grant.

Versionnage

Brique volatile (OPA/OpenFGA bougent vite) — reste en 0.x. Contraindre avec >=0.1,<1. Release : make release-pkg PKG=platform VERSION=x.y.z → tag platform-vX.Y.Z (cf. ../../RELEASING.md).

Download files

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

Source Distribution

mic_platform-0.1.20.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

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

mic_platform-0.1.20-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file mic_platform-0.1.20.tar.gz.

File metadata

  • Download URL: mic_platform-0.1.20.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for mic_platform-0.1.20.tar.gz
Algorithm Hash digest
SHA256 c767960b9c0206f70377578fbdb974c967ba026d330adbc545732e65262b01ac
MD5 4fc9982815f36ebed4818e3505a0d772
BLAKE2b-256 e6957245ad2912b4509af7d39a422b2f63a5a88b2661bec2e80d812cece9274d

See more details on using hashes here.

File details

Details for the file mic_platform-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: mic_platform-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for mic_platform-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 ea1c6d76bd3afc891d7e20dcdfe4d17d4dee83f0a4bf466821ab83b4a4486d88
MD5 68eec6ea8a27df4577f4108d51bc29a1
BLAKE2b-256 c758d6bad7549b435a8dca5c20c02d0e59c69e3f3596bc8ea6cd9ed81e039877

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.20 This release

2 files

0.1.18

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.6

2 files

0.1.5

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page