Self-contained postgres server for your python applications
Project description
pgembed: Embedded PostgreSQL for Agents
pgembed makes it easy to add a full-featured PostgreSQL database to your Python application—no server setup required. Your users simply run pip install yourapp, and PostgreSQL comes bundled automatically.
Think of it like SQLite, but with the power of PostgreSQL. Just pip install pgembed, call pgembed.get_server(...), and you're ready to go.
What pgembed gives you
- Pip-installable PostgreSQL binaries: Pre-built wheels for Linux, macOS (Apple Silicon & Intel), and Windows
- No admin rights needed: Runs without
sudoor root access - Handles edge cases: Works in Docker containers, Google Colab, and environments with multiple PostgreSQL installations
- Simple initialization:
pgembed.get_server(MY_DATA_DIR)handlesinitdb, port management, and process cleanup automatically - Vector search ready: Includes pgvector and pgvectorscale extensions for vector similarity queries and high-performance vector storage
- Text search ready: Includes pg_textsearch extension for BM25-based full-text search with ranking
Quick start
import pgembed
# Initialize and start the server
pgembed.get_server("/path/to/my/data/dir")
# Connect and use like any PostgreSQL database
# ... your database code here
# Look in examples/*.py for more complete examples that could be run via uv
PostgreSQL binaries are available at pgembed.POSTGRES_BIN_PATH if you need direct access to tools like initdb, pg_ctl, psql, or pg_config.
History
pgembed is a fork of pgserver, which was inspired by postgresql-wheel. While those projects focused primarily on Linux wheels, pgembed extends the approach with:
- Multi-platform support (Linux, macOS, Windows)
- Robust process management and cleanup
- Built-in pgvector, pgvectorscale, and pg_textsearch extensions
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pgembed-0.1.7-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: pgembed-0.1.7-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 13.9 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e40cc89b32541025acaabdb2389f5a9d29c55c72d404a70bdd7854be067f55fc
|
|
| MD5 |
4148471070eb14d63d9db407dc597051
|
|
| BLAKE2b-256 |
9db14e7e28f2b27e4328c0deacaf0291cadae4999e68df73df33f2370c369e56
|
Provenance
The following attestation bundles were made for pgembed-0.1.7-cp313-cp313-win_amd64.whl:
Publisher:
build-and-test.yml on Ladybug-Memory/pgembed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgembed-0.1.7-cp313-cp313-win_amd64.whl -
Subject digest:
e40cc89b32541025acaabdb2389f5a9d29c55c72d404a70bdd7854be067f55fc - Sigstore transparency entry: 909701980
- Sigstore integration time:
-
Permalink:
Ladybug-Memory/pgembed@e17b129564b8e0f8b6f8333a956530b593684b51 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/Ladybug-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-test.yml@e17b129564b8e0f8b6f8333a956530b593684b51 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pgembed-0.1.7-cp313-cp313-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pgembed-0.1.7-cp313-cp313-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 39.6 MB
- Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b0f610acb3ac8be0438f6e8c7daaa2b44ab475ae269838a09c0cb6ee4243aa4
|
|
| MD5 |
3c4e0106c8ac89edcd40160e8b9c4acf
|
|
| BLAKE2b-256 |
22b7c8f2053093557f2b740ec7f25062ac04cc238c51dc71a8178d68faa73a84
|
Provenance
The following attestation bundles were made for pgembed-0.1.7-cp313-cp313-manylinux_2_28_x86_64.whl:
Publisher:
build-and-test.yml on Ladybug-Memory/pgembed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgembed-0.1.7-cp313-cp313-manylinux_2_28_x86_64.whl -
Subject digest:
0b0f610acb3ac8be0438f6e8c7daaa2b44ab475ae269838a09c0cb6ee4243aa4 - Sigstore transparency entry: 909701993
- Sigstore integration time:
-
Permalink:
Ladybug-Memory/pgembed@e17b129564b8e0f8b6f8333a956530b593684b51 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/Ladybug-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-test.yml@e17b129564b8e0f8b6f8333a956530b593684b51 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pgembed-0.1.7-cp313-cp313-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pgembed-0.1.7-cp313-cp313-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 37.2 MB
- Tags: CPython 3.13, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81c3aaaab3dfe29de1442fdf88d068da9517abc0d1ca13d05df4c6e96d243ada
|
|
| MD5 |
852695c9f5a956793387f850b99790f9
|
|
| BLAKE2b-256 |
65317a6438b58c1f68bc34bf73e5f9de7fb85f867916739e10ade2e0a58a0f76
|
Provenance
The following attestation bundles were made for pgembed-0.1.7-cp313-cp313-manylinux_2_28_aarch64.whl:
Publisher:
build-and-test.yml on Ladybug-Memory/pgembed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgembed-0.1.7-cp313-cp313-manylinux_2_28_aarch64.whl -
Subject digest:
81c3aaaab3dfe29de1442fdf88d068da9517abc0d1ca13d05df4c6e96d243ada - Sigstore transparency entry: 909701915
- Sigstore integration time:
-
Permalink:
Ladybug-Memory/pgembed@e17b129564b8e0f8b6f8333a956530b593684b51 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/Ladybug-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-test.yml@e17b129564b8e0f8b6f8333a956530b593684b51 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pgembed-0.1.7-cp313-cp313-macosx_15_0_arm64.whl.
File metadata
- Download URL: pgembed-0.1.7-cp313-cp313-macosx_15_0_arm64.whl
- Upload date:
- Size: 29.2 MB
- Tags: CPython 3.13, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30ec70485b3804fd13f3adda51267746d57eab07e8873337a90b09b87ba242ad
|
|
| MD5 |
5623efc92d2d06129a8f43e5d68612db
|
|
| BLAKE2b-256 |
bf3d5b42d1694bd183f74a7cf117d9019994f13de8cf9ed20d71a1134fd30438
|
Provenance
The following attestation bundles were made for pgembed-0.1.7-cp313-cp313-macosx_15_0_arm64.whl:
Publisher:
build-and-test.yml on Ladybug-Memory/pgembed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgembed-0.1.7-cp313-cp313-macosx_15_0_arm64.whl -
Subject digest:
30ec70485b3804fd13f3adda51267746d57eab07e8873337a90b09b87ba242ad - Sigstore transparency entry: 909701968
- Sigstore integration time:
-
Permalink:
Ladybug-Memory/pgembed@e17b129564b8e0f8b6f8333a956530b593684b51 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/Ladybug-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-test.yml@e17b129564b8e0f8b6f8333a956530b593684b51 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pgembed-0.1.7-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: pgembed-0.1.7-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 13.9 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42b983a975d95bda84a00dcf04d0c0643e9e09eab7abefa889907eca2be4a54b
|
|
| MD5 |
148cd4980fead2dad17ce665ef389d2a
|
|
| BLAKE2b-256 |
6d7194c4e22aa8d7ed4e7ae468f6e39434e6ef00ab111152738ff69220aeb688
|
Provenance
The following attestation bundles were made for pgembed-0.1.7-cp312-cp312-win_amd64.whl:
Publisher:
build-and-test.yml on Ladybug-Memory/pgembed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgembed-0.1.7-cp312-cp312-win_amd64.whl -
Subject digest:
42b983a975d95bda84a00dcf04d0c0643e9e09eab7abefa889907eca2be4a54b - Sigstore transparency entry: 909701954
- Sigstore integration time:
-
Permalink:
Ladybug-Memory/pgembed@e17b129564b8e0f8b6f8333a956530b593684b51 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/Ladybug-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-test.yml@e17b129564b8e0f8b6f8333a956530b593684b51 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pgembed-0.1.7-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pgembed-0.1.7-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 39.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6d289762ff3dcaac5482b0192069fa33d16c9aad8ffe91476f799829a00e288
|
|
| MD5 |
16fd2c6ab6b9529039ca96439f36f83d
|
|
| BLAKE2b-256 |
0003cd6fc12475cd179508b18436a81a758feb02ec7017acd3ce108eed1dc7bd
|
Provenance
The following attestation bundles were made for pgembed-0.1.7-cp312-cp312-manylinux_2_28_x86_64.whl:
Publisher:
build-and-test.yml on Ladybug-Memory/pgembed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgembed-0.1.7-cp312-cp312-manylinux_2_28_x86_64.whl -
Subject digest:
e6d289762ff3dcaac5482b0192069fa33d16c9aad8ffe91476f799829a00e288 - Sigstore transparency entry: 909702004
- Sigstore integration time:
-
Permalink:
Ladybug-Memory/pgembed@e17b129564b8e0f8b6f8333a956530b593684b51 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/Ladybug-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-test.yml@e17b129564b8e0f8b6f8333a956530b593684b51 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pgembed-0.1.7-cp312-cp312-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: pgembed-0.1.7-cp312-cp312-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 37.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b311f0a3f7e0f90d81e2ffcebd88a22010e0c4e34c3ea33600179111cba4a17
|
|
| MD5 |
f60f227ace8e9fbd43b8287a0ba8d59a
|
|
| BLAKE2b-256 |
0f5b8860b1ce5aaef2aba4c04fe3edce0ea479d6bc18eb10ac7214b62d0eac21
|
Provenance
The following attestation bundles were made for pgembed-0.1.7-cp312-cp312-manylinux_2_28_aarch64.whl:
Publisher:
build-and-test.yml on Ladybug-Memory/pgembed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgembed-0.1.7-cp312-cp312-manylinux_2_28_aarch64.whl -
Subject digest:
6b311f0a3f7e0f90d81e2ffcebd88a22010e0c4e34c3ea33600179111cba4a17 - Sigstore transparency entry: 909701926
- Sigstore integration time:
-
Permalink:
Ladybug-Memory/pgembed@e17b129564b8e0f8b6f8333a956530b593684b51 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/Ladybug-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-test.yml@e17b129564b8e0f8b6f8333a956530b593684b51 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pgembed-0.1.7-cp312-cp312-macosx_15_0_arm64.whl.
File metadata
- Download URL: pgembed-0.1.7-cp312-cp312-macosx_15_0_arm64.whl
- Upload date:
- Size: 29.2 MB
- Tags: CPython 3.12, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
806bb4a6e4db388abe89c3c26a2861b7b83ae5d3d1390943fa7d89471e79a672
|
|
| MD5 |
1caea0cbfb82ef001c8831f6581f4957
|
|
| BLAKE2b-256 |
51a2d5caef2db8a3fd81b2ba0088d538df86d9f83421d3e11ed3a47039b87501
|
Provenance
The following attestation bundles were made for pgembed-0.1.7-cp312-cp312-macosx_15_0_arm64.whl:
Publisher:
build-and-test.yml on Ladybug-Memory/pgembed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgembed-0.1.7-cp312-cp312-macosx_15_0_arm64.whl -
Subject digest:
806bb4a6e4db388abe89c3c26a2861b7b83ae5d3d1390943fa7d89471e79a672 - Sigstore transparency entry: 909701942
- Sigstore integration time:
-
Permalink:
Ladybug-Memory/pgembed@e17b129564b8e0f8b6f8333a956530b593684b51 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/Ladybug-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-test.yml@e17b129564b8e0f8b6f8333a956530b593684b51 -
Trigger Event:
workflow_dispatch
-
Statement type: