Skip to main content

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.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gisweb-tenants 1.6.8
File Size Uploaded Provenance Actions
gisweb_tenants-1.6.8.tar.gz 27.0 kB Without provenance Details for gisweb_tenants-1.6.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gisweb-tenants 1.6.8
File Interpreter ABI Platform Actions
gisweb_tenants-1.6.8-py3-none-any.whl Python 3 none any Details for gisweb_tenants-1.6.8-py3-none-any.whl

Total release size: 60.0 kB

Release files / gisweb_tenants-1.6.8.tar.gz

Download URL gisweb_tenants-1.6.8.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
705d109d0503e3eff9ee52ad659b8c21c542fe591f21e8f156da89899da60da4
BLAKE2b-256 checksum
How to use checksums
6b5101ef02f7e8acddcee7a974ec4b164cd1b0d5cbb85ea3e793f3daeb6cd287
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-149-generic

Release files / gisweb_tenants-1.6.8-py3-none-any.whl

Download URL gisweb_tenants-1.6.8-py3-none-any.whl
Size 33.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f7b36c005a5339106df10d9209a37a8b9420dd33ad0115910c3b168b89cc70d
BLAKE2b-256 checksum
How to use checksums
672fba3057bdf166ce740d81d9338307a844c71008b5187051ad876c73a32d8c
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-149-generic

Security for gisweb-tenants 1.6.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.6.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page