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.5
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.5.tar.gz | 27.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gisweb_tenants-1.6.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.0 kB
Release files / gisweb_tenants-1.6.5.tar.gz
| Download URL | gisweb_tenants-1.6.5.tar.gz |
|---|---|
| Size | 27.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8023c19fc069945bfef8509f4dac33a8335eb341cbe418b4530d70e27e2dee7c
|
|
BLAKE2b-256 checksum How to use checksums |
2e2c9362a5f2998d46361457f1e5b3bec9520b7b7a55d5b1ac9b888d58b82cb0
|
| 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.5-py3-none-any.whl
| Download URL | gisweb_tenants-1.6.5-py3-none-any.whl |
|---|---|
| Size | 33.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1ee6c80e842a260af1b45d24f9d34e49f6a088978fd018d2ff2452edc4875ed
|
|
BLAKE2b-256 checksum How to use checksums |
58c24ebe4c36c0d90e871afbbb1501da1f8bd57106c76ceb1b0cb9007b53f719
|
| 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
|