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"
}
}
Metadata
Release files for gisweb-tenants 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gisweb_tenants-0.8.0.tar.gz | 23.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gisweb_tenants-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.4 kB
Release files / gisweb_tenants-0.8.0.tar.gz
| Download URL | gisweb_tenants-0.8.0.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e29937e3304b9e4e83f4cf1619d25f4a8b2b11a1ce672d27a46698d61d3891e5
|
|
BLAKE2b-256 checksum How to use checksums |
06fc5ca359427fc6eaab8a3a2e09feede6bd7fa66a06fe895d3ba7edd2ea4485
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.10.12 Linux/6.8.0-139-generic
|
Release files / gisweb_tenants-0.8.0-py3-none-any.whl
| Download URL | gisweb_tenants-0.8.0-py3-none-any.whl |
|---|---|
| Size | 29.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7737ef74457f812c9c625dc499c7e6f25dde37e408f1f81965dd52138522ed33
|
|
BLAKE2b-256 checksum How to use checksums |
3a9df6b577ed2c8f4e8751637382286441ef2bb157a1a48bd4123472d411a6c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.10.12 Linux/6.8.0-139-generic
|