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

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.8.0
File Size Uploaded Provenance Actions
gisweb_tenants-1.8.0.tar.gz 27.4 kB Without provenance Details for gisweb_tenants-1.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 60.7 kB

Release files / gisweb_tenants-1.8.0.tar.gz

Download URL gisweb_tenants-1.8.0.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9889ec08866e6f5825ea8f93c7dec19589548f6ce19753fb2159c70564be25c8
BLAKE2b-256 checksum
How to use checksums
846e70e44e61133e23ca882b490b05e8e372ad704d8d0526a3d374f0f7b3b6c1
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-151-generic

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

Download URL gisweb_tenants-1.8.0-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8412fddc4b5d3add3390cfb17dd55699b1a23644a0f899d318db90aad0b617d5
BLAKE2b-256 checksum
How to use checksums
0443cea598c188885b0ef0c53daf2403589e76115d725df0799d73f4ec33d31d
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-151-generic

Security for gisweb-tenants 1.8.0

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