Skip to main content

HitchPostgres

HitchPostgres is a plugin for the Hitch test framework that lets you run and interact with Postgres in an isolated way as part of a test.

Before starting the service, it runs the initdb command to create all required data files for a postgresql database in the .hitch directory. This means that whatever you do, you will not interfere with the system postgres files. The system postgres does not even have to be running.

After starting the service, it creates any users and databases specified that may be required for your app to start.

During the test it provides convenience functions psql, pg_dump and pg_restore so that you can interact with the database using IPython or in your test.

Use

See: https://hitchtest.readthedocs.org/en/latest/api/postgres.html

Features

  • Creates data files from scratch using initdb in the .hitch directory. Complete isolation of data from system postgres.

  • Starts up on a separate thread in parallel with other services when running with HitchServe, so that your integration tests run faster.

  • Run the server on whatever port you like.

  • Version set explicitly to prevent “works on my machine” screw ups caused by running different versions of Postgres.

Metadata

Release files for hitchpostgres 0.7.0

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

Source distribution (sdist)

Source distribution for hitchpostgres 0.7.0
File Size Uploaded Provenance Actions
hitchpostgres-0.7.0.tar.gz 5.0 kB Without provenance Details for hitchpostgres-0.7.0.tar.gz

Release files / hitchpostgres-0.7.0.tar.gz

Download URL hitchpostgres-0.7.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5bfaf29a42a5fbfe5f2b6dbda5a21e60a9ded53abb61162d058fa3a582453780
BLAKE2b-256 checksum
How to use checksums
cd4cdd73cf82bc03a5ba7904e958539819e850771e322b7322aaf2b416788479
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hitchpostgres 0.7.0

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.

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