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 1.6.4
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-1.6.4.tar.gz | 26.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gisweb_tenants-1.6.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.2 kB
Release files / gisweb_tenants-1.6.4.tar.gz
| Download URL | gisweb_tenants-1.6.4.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be56a992cc0fdd34a4fc8db37795fc12f499f3a0e96d43c07ae7fb1b3303dac1
|
|
BLAKE2b-256 checksum How to use checksums |
2b90d655f3c28c51550f3179d3d922c1b1582977e87484b601d8bd0a74c767a2
|
| 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-146-generic
|
Release files / gisweb_tenants-1.6.4-py3-none-any.whl
| Download URL | gisweb_tenants-1.6.4-py3-none-any.whl |
|---|---|
| Size | 32.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd7ac43519917af8ab07dec05697d68f2896ba0347c41e2d676ad73d7fa7cc19
|
|
BLAKE2b-256 checksum How to use checksums |
9be7143e20ed9efc04bdb0b4859d5d19c18fd4c62e8f130f1e1d5045c1769e80
|
| 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-146-generic
|