Skip to main content

Dump Postgres Roles and Grants

Install

You can choose

  • plain python package dump-psql-roles-grants that requires libpq system library
  • or package dump-psql-roles-grants[binary] that have binaries included

pipx (preferred)

pipx install 'dump-psql-roles-grants[binary]'
dump_psql_roles_grants --help

brew

brew install rgeraskin/homebrew/dump-psql-roles-grants
dump_psql_roles_grants --help

pip

pip install 'dump-psql-roles-grants[binary]'
python -m dump_psql_roles_grants --help

docker

docker pull rgeraskin/dump_psql_roles_grants
docker run --name dump_psql_roles_grants --rm rgeraskin/dump_psql_roles_grants --help

Usage

  1. Generate an example config file dump_psql_roles_grants gen-example-config -o config.yaml

  2. Place instances connection info to _inputs dir

    _inputs/
    ├── dev.yaml
    ├── prod.yaml
    ├── stage.yaml
    └── test.yaml
    

    File format: yaml or json

    <INSTANCE NAME 1>:
      dbname: <DB TO CONNECT>
      host: <INSTANCE HOSTNAME>
      password: <PASSWORD>
      user: <USER NAME>
    
    <INSTANCE NAME X>:
      dbname: <DB TO CONNECT>
      host: <INSTANCE HOSTNAME>
      password: <PASSWORD>
      user: <USER NAME>
    
  3. Review config.yaml

  4. Run

    dump_psql_roles_grants --help
    

Metadata

Release files for dump-psql-roles-grants 0.3.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 dump-psql-roles-grants 0.3.1
File Size Uploaded
dump_psql_roles_grants-0.3.1.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dump-psql-roles-grants 0.3.1
File Interpreter ABI Platform
dump_psql_roles_grants-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.3 kB

Release files / dump_psql_roles_grants-0.3.1.tar.gz

Download URL dump_psql_roles_grants-0.3.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0aa661a9e3783ed06d407c5a45f8ff1245d9be27d09c232170e17373a96a3f44
BLAKE2b-256 checksum
How to use checksums
02124b600dba2d3721faae5695346f16e2e53906514de6078795115b20e22f55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1017-azure

Release files / dump_psql_roles_grants-0.3.1-py3-none-any.whl

Download URL dump_psql_roles_grants-0.3.1-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca8a20b0cee250a5ee47f89e0c98c3e52b87567df1a03a2f68aa5c67c13ab4bc
BLAKE2b-256 checksum
How to use checksums
a1523b02217920c9309a3036fa8e85de3fa17953e17912aedf690b759bd4bbba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Linux/6.5.0-1017-azure
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