Skip to main content

Gestione multi tenant db e oidc

Project description

gisweb-tenants

Libreria Python per gestire configurazione multitenant in applicazioni FastAPI.

Obiettivo

Separare:

  • configurazione pubblica per tenant
  • configurazione sensibile per tenant (Docker secrets)

e restituire un unico oggetto validato e tipizzato.

Convenzioni

Config pubblica

Directory configurabile, ad esempio:

./config/tenant_rapallo.json

Example Package

This is a simple example package. You can use to write your content.

poetry update poetry build poetry publish

casini venv per attivare quello giusto: source $(poetry env info --path)/bin/activate

poetry env info -p rm -rf poetry env info -p poetry env use python

Esempio:

{
  "tenant": "rapallo",
  "comune": {
    "nome": "Comune di Rapallo"
  },
  "db": {},
  "keycloak": {
    "realm": "rapallo",
    "client_id": "backend"
  },
  "paths": {
    "upload_dir": "/data/rapallo/uploads",
    "template_dir": "/data/rapallo/templates"
  }
}

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

gisweb_tenants-0.3.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

gisweb_tenants-0.3.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file gisweb_tenants-0.3.1.tar.gz.

File metadata

  • Download URL: gisweb_tenants-0.3.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.12 Linux/6.8.0-107-generic

File hashes

Hashes for gisweb_tenants-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b2de0341e3fe38aef647bd29f3f5034634c99241add83e74b47db091ac148b04
MD5 953136a1b44aedbf2ff5b83df6983597
BLAKE2b-256 f4455f319dc725b0729ac1932a9ede69b19c3bac639b66d69efe74844f37daf3

See more details on using hashes here.

File details

Details for the file gisweb_tenants-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: gisweb_tenants-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.12 Linux/6.8.0-107-generic

File hashes

Hashes for gisweb_tenants-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ea625320d08291cb97215d3c585c9eae952cf88b511d58e3ab855183d7eab54
MD5 710bf5f288b1a1036206201e4e7e02c5
BLAKE2b-256 417faae3b6d4e80d6f7bdcf744bb6d287447e5f61749eba278f394f860159f23

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