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

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.7.1
File Size Uploaded Provenance Actions
gisweb_tenants-1.7.1.tar.gz 27.2 kB Without provenance Details for gisweb_tenants-1.7.1.tar.gz

Built distribution (wheel)

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

Total release size: 60.4 kB

Release files / gisweb_tenants-1.7.1.tar.gz

Download URL gisweb_tenants-1.7.1.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4fd9eb3605487ef944a4811585a4899bddf0cda86e0a7c4b8ccfcc98b1850dd0
BLAKE2b-256 checksum
How to use checksums
710a8e9e51cd1aa108e90691c4c261fdfb101ab5d959ad57ebe438df4261f74b
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.7.1-py3-none-any.whl

Download URL gisweb_tenants-1.7.1-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d965b391c3afdd211732d15b5ff7ddc05bfc3a395080999055486b416beb8d94
BLAKE2b-256 checksum
How to use checksums
6d73ee60ed6ef61fe98d86756294c80093b1a4dd53920b1a5a042d4b7e89ccfd
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.7.1

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