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.7.1
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.7.1.tar.gz | 22.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gisweb_tenants-0.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.5 kB
Release files / gisweb_tenants-0.7.1.tar.gz
| Download URL | gisweb_tenants-0.7.1.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46aabfe2a3bdbf79e1b5adf02fec149806df59aaa8664275e102c6588411edda
|
|
BLAKE2b-256 checksum How to use checksums |
56c9c51dc9b5abf5e3cc032ac9a8868f99f77d9a53b7e778a534582fe5f797cc
|
| 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-137-generic
|
Release files / gisweb_tenants-0.7.1-py3-none-any.whl
| Download URL | gisweb_tenants-0.7.1-py3-none-any.whl |
|---|---|
| Size | 28.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a899ff883bab38661350ad3c36201290d5cc0f74a39d729a0733c02cdbbd327
|
|
BLAKE2b-256 checksum How to use checksums |
5b49d4c05e549af5bb4fe51e1de4ebb6a53ea49fcd501c89a11e0652b8e1ed12
|
| 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-137-generic
|