Skip to main content

Self-contained postgres server for your python applications

Project description

Python Version Postgres Version

Linux Support macOS Apple Silicon Support >=11 macOS Intel Support => 10.0 Windows Support >= 2022

License PyPI Package PyPI - Downloads

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.

Open In Colab

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 sudo or 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) handles initdb, 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pgembed-0.1.7-cp313-cp313-win_amd64.whl (13.9 MB view details)

Uploaded CPython 3.13Windows x86-64

pgembed-0.1.7-cp313-cp313-manylinux_2_28_x86_64.whl (39.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pgembed-0.1.7-cp313-cp313-manylinux_2_28_aarch64.whl (37.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

pgembed-0.1.7-cp313-cp313-macosx_15_0_arm64.whl (29.2 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pgembed-0.1.7-cp312-cp312-win_amd64.whl (13.9 MB view details)

Uploaded CPython 3.12Windows x86-64

pgembed-0.1.7-cp312-cp312-manylinux_2_28_x86_64.whl (39.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pgembed-0.1.7-cp312-cp312-manylinux_2_28_aarch64.whl (37.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

pgembed-0.1.7-cp312-cp312-macosx_15_0_arm64.whl (29.2 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Hashes for pgembed-0.1.7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e40cc89b32541025acaabdb2389f5a9d29c55c72d404a70bdd7854be067f55fc
MD5 4148471070eb14d63d9db407dc597051
BLAKE2b-256 9db14e7e28f2b27e4328c0deacaf0291cadae4999e68df73df33f2370c369e56

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgembed-0.1.7-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.7-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0b0f610acb3ac8be0438f6e8c7daaa2b44ab475ae269838a09c0cb6ee4243aa4
MD5 3c4e0106c8ac89edcd40160e8b9c4acf
BLAKE2b-256 22b7c8f2053093557f2b740ec7f25062ac04cc238c51dc71a8178d68faa73a84

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgembed-0.1.7-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.7-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 81c3aaaab3dfe29de1442fdf88d068da9517abc0d1ca13d05df4c6e96d243ada
MD5 852695c9f5a956793387f850b99790f9
BLAKE2b-256 65317a6438b58c1f68bc34bf73e5f9de7fb85f867916739e10ade2e0a58a0f76

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgembed-0.1.7-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.7-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 30ec70485b3804fd13f3adda51267746d57eab07e8873337a90b09b87ba242ad
MD5 5623efc92d2d06129a8f43e5d68612db
BLAKE2b-256 bf3d5b42d1694bd183f74a7cf117d9019994f13de8cf9ed20d71a1134fd30438

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pgembed-0.1.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 42b983a975d95bda84a00dcf04d0c0643e9e09eab7abefa889907eca2be4a54b
MD5 148cd4980fead2dad17ce665ef389d2a
BLAKE2b-256 6d7194c4e22aa8d7ed4e7ae468f6e39434e6ef00ab111152738ff69220aeb688

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgembed-0.1.7-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.7-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e6d289762ff3dcaac5482b0192069fa33d16c9aad8ffe91476f799829a00e288
MD5 16fd2c6ab6b9529039ca96439f36f83d
BLAKE2b-256 0003cd6fc12475cd179508b18436a81a758feb02ec7017acd3ce108eed1dc7bd

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgembed-0.1.7-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.7-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6b311f0a3f7e0f90d81e2ffcebd88a22010e0c4e34c3ea33600179111cba4a17
MD5 f60f227ace8e9fbd43b8287a0ba8d59a
BLAKE2b-256 0f5b8860b1ce5aaef2aba4c04fe3edce0ea479d6bc18eb10ac7214b62d0eac21

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgembed-0.1.7-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.7-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 806bb4a6e4db388abe89c3c26a2861b7b83ae5d3d1390943fa7d89471e79a672
MD5 1caea0cbfb82ef001c8831f6581f4957
BLAKE2b-256 51a2d5caef2db8a3fd81b2ba0088d538df86d9f83421d3e11ed3a47039b87501

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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