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.18.tar.gz (25.5 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.18-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mic_platform-0.1.18.tar.gz
Algorithm Hash digest
SHA256 55677b59280b23ffad55501c735d8b5d806092fa1d62189bffe5e211b0e07999
MD5 fa7b226794891e4c2d012ecdabf92cd8
BLAKE2b-256 075c1699b13cf337f1c971c77e418b76f624d71e7a74b076662334f4dbbb5ee7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mic_platform-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 2cddb3ea95a6d575317a70cfb6ba6e5e49dd7e1c10f4d62274ac4a38fbc65375
MD5 95a40ff0b8c644ac83dcdedf64e4877f
BLAKE2b-256 1bef052b06889e377aa2c2998d71c4ab7e667ccb6075c58619fef3a6e558465c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.20

2 files

This release

0.1.18 This release

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