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.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-1.6.1.tar.gz | 26.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gisweb_tenants-1.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.2 kB
Release files / gisweb_tenants-1.6.1.tar.gz
| Download URL | gisweb_tenants-1.6.1.tar.gz |
|---|---|
| Size | 26.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea052cc63223ccdec8e0cf5fbd76e8f12b9240f725cab0ce6044a7237f512dea
|
|
BLAKE2b-256 checksum How to use checksums |
9dca111d183cce1a5ff478bfcd06d039fa89732b51cd22534136e9249612f18a
|
| 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.1-py3-none-any.whl
| Download URL | gisweb_tenants-1.6.1-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56c9ded254d54072e0ae4e26c4cb4e55b78dbd33053ce9fc6961ced7041035bb
|
|
BLAKE2b-256 checksum How to use checksums |
3bc34a7c2da5bde9a524965bd005cbdaef5093c9d39823c57afc5c42a1da1bf9
|
| 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
|