Skip to main content

Client that uses the PostgreSQL client inside a Docker container.

Project description

https://travis-ci.org/ajite/docker-postgres-client.svg?branch=master https://coveralls.io/repos/ajite/docker-postgres-client/badge.svg?branch=master&service=github:target:https://coveralls.io/github/ajite/docker-postgres-client?branch=master

docker-postgres-client

I created this library to work with different version of Docker Postgres without having the need to change my Postgres client.

To install and use it type the command below:

pip install docker-postgres-client

You will then have four new commands available in your shell: dpsql, dcreatedb, ddropdb, and dpg_dump. They allow you to connect, create, drop, dump, and import a database. If you want to add additional features feel free to fork this repository and make a merge request.

All the bash command have -C (container) option that you can use like below:

dpsql -C CONTAINER_NAME -U user_name

Last but not least all the scripts contain a useful help message to know how to use them.

dpsql --help

Project details


Download files

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

Files for docker-postgres-client, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size docker-postgres-client-0.0.2.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page