auditio-db-pattern
CLI interactive de génération d'un pattern PostgreSQL avec initialisation Docker et migrations Alembic optionnelles.
La documentation complète est disponible dans docs/index.md et peut être générée localement avec make docs.
Prérequis
- Python 3.11 ou supérieur ;
pip;- Docker ou Podman pour utiliser les fichiers générés.
Installation
Dans un environnement virtuel temporaire :
python -m venv .venv
source .venv/bin/activate
python -m pip install auditio-db-pattern
Une installation depuis les sources utilise python -m pip install ..
Utilisation interactive
auditio-db-pattern init
La commande demande :
- la racine du projet existant ;
- le nom du projet ;
- si les fichiers
.envdoivent être créés ; - si le pattern de migrations Alembic doit être ajouté.
Le profil interactif génère les bases main et users avec leurs schémas métier. Les rôles et schémas de migration ne sont ajoutés que lorsque les migrations sont activées.
La CLI ne laisse aucune dépendance vers auditio-db-pattern dans le pattern ajouté au projet. Elle peut donc être désinstallée immédiatement :
python -m pip uninstall auditio-db-pattern
Configuration TOML
La CLI peut produire un contrat TOML depuis le même questionnaire interactif, sans générer le pattern :
auditio-db-pattern init --generate-config
auditio-db-pattern init --generate-config chemin/config.toml
Sans chemin explicite, auditio-db-pattern.toml est écrit à la racine du projet indiquée. Un fichier existant n'est remplacé qu'avec --force.
Le mode TOML permet de personnaliser la liste des bases et de rejouer une génération :
auditio-db-pattern init --config auditio-db-pattern.toml
auditio-db-pattern init --config auditio-db-pattern.toml --dry-run
auditio-db-pattern init --config auditio-db-pattern.toml --force
Le contrat complet est présenté dans auditio-db-pattern.example.toml.
Développement
make dev
make check
make docs-open
Les tests couvrent la validation TOML, la génération conditionnelle, les permissions des secrets, la protection contre l'écrasement et l'intégration de la commande.
Construction et publication
make build
make publish-check
make publish-test
make publish
Twine lit les identifiants depuis son mécanisme standard, par exemple ~/.pypirc ou les variables TWINE_USERNAME et TWINE_PASSWORD. Aucun secret de publication ne doit être ajouté au dépôt.
Metadata
Release files for auditio-db-pattern 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auditio_db_pattern-0.2.0.tar.gz | 31.3 kB | Without provenance | Details for auditio_db_pattern-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auditio_db_pattern-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for auditio_db_pattern-0.2.0-py3-none-any.whl |
Total release size: 57.3 kB
Release files / auditio_db_pattern-0.2.0.tar.gz
| Download URL | auditio_db_pattern-0.2.0.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8086027e021d11d518163fc1f8510910a2918efcbbb3df11dad93214ae95d765
|
|
BLAKE2b-256 checksum How to use checksums |
cab86d190077868cb0599bbc4bc66e6aa04e40e346343a0560acfb40094921cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.7
|
Release files / auditio_db_pattern-0.2.0-py3-none-any.whl
| Download URL | auditio_db_pattern-0.2.0-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a11f3e95d101ab5a919d4771a9f129a04cdc0115f049c6d46128a44210ef3807
|
|
BLAKE2b-256 checksum How to use checksums |
0a5e4598aeb3f855c220123a070f01bf0c9ffe711021d9013c0098aea4a58c34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.7
|
Security for auditio-db-pattern 0.2.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.