Install PostgreSQL with pip install pgvenv
pgvenv is a Python package that embeds a fully isolated PostgreSQL installation
in your virtual environmnent.
pip install pgvenv
PostgreSQL will be built from source,
using --prefix=$VENVPATH.
Its binaries (psql,pg_config,postgres etc.)
will be put under venv/bin along with the pip, python3 binaries.
python3.11 -m venv ./venv
PGVERSION=17.4 CFLAGS="-O2" PGCONFIGUREFLAGS="--without-icu" \
./venv/bin/pip install pgvenv
You can now use your favorite scripts
./venv/bin/pg_config --version # PostgreSQL 17.4
./venv/bin/initdb ./pgdata
./venv/bin/postgres -D ./pgdata
Installation
This requires:
- Autoreconf
- The normal C compiler toolchain, such as gcc and make.
Metadata
Release files for pgvenv 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pgvenv-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for pgvenv-0.1.1.tar.gz |
Release files / pgvenv-0.1.1.tar.gz
| Download URL | pgvenv-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e56f07c00468f9819947eeeb5f545343ab6ff3faade63c40bb6917e6c8799229
|
|
BLAKE2b-256 checksum How to use checksums |
e5e3aac59c2fa566451fbb7e8832ebbdd7b26cee94571a496fe5dd65741bce14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Security for pgvenv 0.1.1
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.