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

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

Built distribution (wheel)

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

Total release size: 59.4 kB

Release files / gisweb_tenants-1.6.7.tar.gz

Download URL gisweb_tenants-1.6.7.tar.gz
Size 26.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c69763de8ba7037ab9a0dffe9273a41409e1abd919e44dcf06fb924a289f690a
BLAKE2b-256 checksum
How to use checksums
786cf2976820fbcf45c532f23eef43198e340cb5422e4f3e70121c75d02f73e3
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-147-generic

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

Download URL gisweb_tenants-1.6.7-py3-none-any.whl
Size 32.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
970a71b9d1685103d7d5dafe978800c2450976038809c5da7e7fa77e54491db2
BLAKE2b-256 checksum
How to use checksums
9a02019d462a83804f2c6ce7045ee950ae4337e3aeba3377699da001a944ec32
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-147-generic

Security for gisweb-tenants 1.6.7

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