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.2.8.tar.gz (11.5 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.2.8-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gisweb_tenants-0.2.8.tar.gz
Algorithm Hash digest
SHA256 3d5f26e2e63489d596611f11f5c656a5a159f3df12187921d695c6250ad4d481
MD5 4f68fdf3dfbae799ff07b66357ef1528
BLAKE2b-256 e986c5401439ca462ddcdab8794cc285f309dd916cba7a6338f8cee64e692452

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gisweb_tenants-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c980f3984415fff211a6ead6f4c1d51d3b6b0dc4192f1e8cfdb5bfe00f27e437
MD5 8f3b2b3a07f5955ec5d605ae37494e40
BLAKE2b-256 3a071b806c5c661945fb29a20634a1c719bd1d26d4cf4dd00181650f782d42ff

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