Skip to main content

Export PostgreSQL databases to Google Cloud Platform BigQuery

Project description

PostgreSQL to BigQuery

Install with: pip install psql2bigquery

Get usage instructions with: psql2bigquery run --help

Sample usage

poetry run psql2bigquery run \
--db-host localhost \
--db-port 5432 \
--db-user username \
--db-password secret-password \
--db-name my_api \
--gcp-project my-project \
--gcp-dataset my_api \
--include table_name_a \
--include table_name_b \
--gcp-credential-path /path/to/credential.json

Logging

There's a possibility to use Sentry.io for error logging.

Just set the environment variable SENTRY_DSN and psql2bigquery will automatically configure the logger.

Additionally, the environment variable ENV can be used as Sentry environment.

Contributing

  • Fork this project
  • Install dependencies with make dependencies
    • Make sure you have Python 3 installed. (pyenv)[https://github.com/pyenv/pyenv#installation] is highly recommended
  • You can test the client locally (without installing the package) with poetry run psql2bigquery <command>
  • Make a PR with as much details as possible

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

psql2bigquery-0.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

psql2bigquery-0.0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file psql2bigquery-0.0.3.tar.gz.

File metadata

  • Download URL: psql2bigquery-0.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.11.0-1020-azure

File hashes

Hashes for psql2bigquery-0.0.3.tar.gz
Algorithm Hash digest
SHA256 19c7f99e62be7313b10431bff6359c509973818449399d5b76fd22b1d9068b4a
MD5 c6a84a70185d5df7df3138218d976586
BLAKE2b-256 6170f62f4516482d55b979b92ad8c565bb7b5cdd81799f05659958731dd26afc

See more details on using hashes here.

File details

Details for the file psql2bigquery-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: psql2bigquery-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.11.0-1020-azure

File hashes

Hashes for psql2bigquery-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a130f2e5d83a8e5a128a03fea26bdb994e96e11d8c6fc21cbda0d594b85f1f
MD5 a2921650c08d605c5e854bc443848842
BLAKE2b-256 cc17c5273bce3bb9c31d0602cfbfa81779b9548276ba710297b445d32d3a8afe

See more details on using hashes here.

Supported by

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