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.8-cp313-cp313-win_amd64.whl (13.9 MB view details)

Uploaded CPython 3.13Windows x86-64

pgembed-0.1.8-cp313-cp313-musllinux_1_2_x86_64.whl (40.9 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

pgembed-0.1.8-cp313-cp313-musllinux_1_2_aarch64.whl (39.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

pgembed-0.1.8-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.8-cp313-cp313-manylinux_2_28_aarch64.whl (37.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

pgembed-0.1.8-cp312-cp312-musllinux_1_2_x86_64.whl (40.9 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

pgembed-0.1.8-cp312-cp312-musllinux_1_2_aarch64.whl (39.1 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

pgembed-0.1.8-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.8-cp312-cp312-manylinux_2_28_aarch64.whl (37.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

pgembed-0.1.8-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.8-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pgembed-0.1.8-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.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f2d0b6948488223472cf6e1053b430ceb797606add44b4d183a99cd3cab87ab9
MD5 814e8f7557c6a3a6eea2cbb4c40d079a
BLAKE2b-256 1c39c8657004458fcb1d3beec4a57e1943e7b08c3c8f455440e27f8559be0856

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-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.8-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9eb74f1f778f98c03c51eae9cc61b8872c6954cb387d3d6d7bf5ec137846eff6
MD5 b2c9d55833a85050fb348eaf7c307014
BLAKE2b-256 e9b2846020d14033f394a3a37ea378a8f699e36d296e125e3db4ff3b11531c71

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-cp313-cp313-musllinux_1_2_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.8-cp313-cp313-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 db5394ce8a90f9b43ed7ad513939082cc8685d09bb7d575b9a3f29fb732575ec
MD5 b272315c5f0760c1b7775e483d59fd7b
BLAKE2b-256 47c311adf63a8207e654c486e19768fc8ee873bd1514094391f065ef3a973dc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-cp313-cp313-musllinux_1_2_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.8-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8b7a6f7fdb12e18ab8b2f977096d104a31b69bf20f834938966dc103bb2f4b69
MD5 4bd170a88029259ddecc55c1a7d8b5ab
BLAKE2b-256 b6060e576a9a312e394df6a672033a0635570e7b29031706821fba8a91306772

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-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.8-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b6756cada5dad2575255b48c53955ae56a03c570dd5f5557ce90f5e68101306c
MD5 d859ebdc2df0822dbbac25bb85be9201
BLAKE2b-256 35046a9f2f56239852252c503363667e811adeb111a5561858c4beaf53fd1910

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-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.8-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6adaba6338edbfbc16029628ca4a42098b9c6a1128d1bcb51f556e614c0dc470
MD5 b97d1b498e9d89c4f0efa59633513fee
BLAKE2b-256 47f26a50dd570ffab35c71a0f91fe69480d19920d56b3db1a1521d30e34dc244

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-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.8-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pgembed-0.1.8-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.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 340f321b6ac1efc8eb2c222698feeec4a51602afcba290612be5db8024cd224b
MD5 9ec44d98de0d795d0e3884887f2a34e8
BLAKE2b-256 efdbe77354afc9c2ed2c7c08e7773caa9f2ebb27a7399168f95f10b39ae5c972

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-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.8-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9f4545a1a853b061aa9e973bf621d2f35e723bc1ac1d8a7a0fddddbd55b801d8
MD5 bd4cabda586d889788b437e628b68d43
BLAKE2b-256 be1088f3bdd5d73869515fce0d377071941a37b9b5f08e7da91b5b6cedd4eb50

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-cp312-cp312-musllinux_1_2_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.8-cp312-cp312-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b19c53623224cacde2609117c8fa3e2fd9fcf43117ad75a3049877f9b7dcdfde
MD5 4445169bc3139d7be370fc480712dcf3
BLAKE2b-256 0d99195b844f9c8f33078dccfe6d26a4f08a55eb384b25d2d9d41f85474622e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-cp312-cp312-musllinux_1_2_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.8-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f521bff5fa6d655d28db27869941564bc7840c66b2cda294ebc97a1d07b876db
MD5 9770325f8e7716d8aa06b06224ab7c27
BLAKE2b-256 aacbbcf841be21020740770f6778679c9e0876364d295f0beba308c237b39388

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-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.8-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 72a1ef1ded2cd8df7da9074af26f9f187dc815f86e5ac025c102519196210ec3
MD5 62c3ebdd8ba97cdc61b5af866544d914
BLAKE2b-256 f844811f675f53a5530aa23bd2feb4a8e3ffcae19ef3ddc9966440c39b198811

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-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.8-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pgembed-0.1.8-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7333545f3c2bbc6a128ab0fc5cb97bd97f20e96fb4a41a16c1f594dd28dc17a0
MD5 17871274e2f38a8662d7b03a2ea42c16
BLAKE2b-256 9c92ea629ff7214cd586a9ad2821efd3a2d12790328b674dfd342c1c336430b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgembed-0.1.8-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