Skip to main content

Tool: pg_populator

Description:

This program populates an already existing PostgreSQL service with: - N databases. The specific amount of databases is parametrized through the -n argument. - N tables inside each database. The specific amount of tables is parametrized through the -t argument. - Some data rows inside every table. The specific amount of rows is parametrized through the -r argument.

This program will make sure that local postgreSQL service contains, at least, the amount of databases and tables defined in the required command line arguments -n (–num_db) and -t (–num_tables) per database. It will also add the amount of rows specified in the -r parameter. This program will NOT delete any database, table or row.

Requirements:

A running postgreSQL database must be previously configured. To make this software works, the user that runs this script must have the ~/.pgpass properly configured. To get this done, I recommend you to use the scripts stored in the next repository: https://gitlab.com/jaqm/carto_test.git

How to’s:

Note: The next commands are meant to be run in the same that directory in which this Readme.1st file is stored.

  • Disable any previously activated virtualenv:

$ deactivate

  • Enable virtualenv:

$ source venvs/1_populate_db/bin/activate

  • Get the program help:

$ ./run -v

  • Run the tool (example):

Run the next command to create 10 databases with 20 tables and insert 100 rows each of them.

$ ./run -n 10 -t 20 -r 100

Metadata

Release files for pg_populator 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pg_populator 0.0.4
File Size Uploaded Provenance Actions
pg_populator-0.0.4.tar.gz 3.8 kB Without provenance Details for pg_populator-0.0.4.tar.gz

Release files / pg_populator-0.0.4.tar.gz

Download URL pg_populator-0.0.4.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cc24d02dc2851d874d7f8d331dc9f2299ae57fe73f5eec578a8ae1708d672528
BLAKE2b-256 checksum
How to use checksums
42d93fa3dbebcb59ddbb8fa368cb687f0b19d9f5028e00ad5944eae24b6dfe1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pg_populator 0.0.4

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.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file No provenance

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