Skip to main content

Idempotent PostgreSQL provisioning as a Python package (wrapping portable shell scripts)

Project description

pg-provision

Idempotent PostgreSQL provisioning as a Python package wrapping portable shell scripts.

Install

pip install pg-provision

Quick start

Show usage (passthrough to shell script):

pgprovision --help

Dry run (no privileged operations):

pgprovision --dry-run

OS Guides

Notes

  • Linux-only. Commands that modify the system require root or passwordless sudo.
  • See the test guides for end-to-end provisioning scenarios.

Secrets

For non-interactive provisioning without leaking passwords, prefer a file-based secret and avoid passing passwords on the command line:

CREATE_PASSWORD_FILE=/run/secrets/pgpass \
pgprovision --create-user app --create-db app

This prevents secrets from appearing in argv or logs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pg_provision-0.1.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pg_provision-0.1.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file pg_provision-0.1.0.tar.gz.

File metadata

  • Download URL: pg_provision-0.1.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pg_provision-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6bd7a4f547b1204bc2847910a8a55ff88f0ddd18f12768634f74ed2455a9669
MD5 c8901468ed1a6988e9d78e8a491dc600
BLAKE2b-256 49c2568c416cb5ff4c765270ded83a2c453415977ff3c527b1221b18a0c60533

See more details on using hashes here.

File details

Details for the file pg_provision-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pg_provision-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pg_provision-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9e143cc541a92fb66b16394d5e7b217c6896ea67ae43081779eda13b3d62d8b
MD5 e67b3208c7baee263768fe1e75dba55a
BLAKE2b-256 91d5197593ffdb6d1766da66fcc0d0a79bda225de74430f259923b6a6a3421da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page