Skip to main content

Postgresql Binaries

Uses releases from theseus-rs/postgresql-binaries and publishes them to pypy, so that you can do:

pip install postgresql-binaries==18.3.0

Then to use, eg:

import postgresql_binaries
import subprocess

cmd = [
    str(postgresql_binaries.bin() / "initdb"),
    *("-D", directory),
    *("-U", "postgres"),
    *("--auth-host", "trust"),
]
subprocess.check_call(cmd)

Packages are around 10MB. On the first call to bin(), the archive baked into the wheel is unpacked in place.


This library is intentionally really dumb, and intended to be built upon. There are mixed opinions on whether (ab)using PyPI to host binary files is a good idea. There are similar packages around, but they don't handle versioning well and include too much other junk.

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.

postgresql_binaries-16.14.0-py3-none-win_amd64.whl (45.7 MB view details)

Uploaded Python 3Windows x86-64

postgresql_binaries-16.14.0-py3-none-manylinux_2_17_x86_64.whl (10.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

postgresql_binaries-16.14.0-py3-none-manylinux_2_17_aarch64.whl (10.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

postgresql_binaries-16.14.0-py3-none-macosx_11_0_arm64.whl (12.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

postgresql_binaries-16.14.0-py3-none-macosx_10_9_x86_64.whl (12.3 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file postgresql_binaries-16.14.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: postgresql_binaries-16.14.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 45.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for postgresql_binaries-16.14.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e288f89c7e113545c6f2e37813a3ae25a0bc4328de91ae8c2f3ed9089a31c836
MD5 4f1a17ad3aae153f277f5d0efba57de6
BLAKE2b-256 7cf625a2dc3a63dc40f738b59b316d02e4e2cb397c7a84af937a8701d6186c61

See more details on using hashes here.

File details

Details for the file postgresql_binaries-16.14.0-py3-none-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: postgresql_binaries-16.14.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 10.9 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for postgresql_binaries-16.14.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 317667f5969b7deba8dfcfe011b2a177c702500db51faa4216e8f8e7373dbc4d
MD5 e280b6ac6c7f103a1b3f8fbef461a6b5
BLAKE2b-256 1c41fa0ff3dfe3b7b64f20e0bcf9fba910b3699d9e6d5d4544eab8375d36fd73

See more details on using hashes here.

File details

Details for the file postgresql_binaries-16.14.0-py3-none-manylinux_2_17_aarch64.whl.

File metadata

  • Download URL: postgresql_binaries-16.14.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 10.7 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for postgresql_binaries-16.14.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 0c7cb64c069129925cf3bf2e9ae5b9ebe6ab0d10ed45b6e854b13c23fc005ed8
MD5 372fceacafb4be97d82d1585423306c5
BLAKE2b-256 b556b5d1623698fc66ee0a1a67df40880ad9b0ea8a24b543a7358aa7ca312f94

See more details on using hashes here.

File details

Details for the file postgresql_binaries-16.14.0-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: postgresql_binaries-16.14.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 12.0 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for postgresql_binaries-16.14.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35f827a2a9786d6b8632d9c601d16ba5bdb176d588b3d6945e13885334909f71
MD5 198d8def91b551a09dded3b854f2c876
BLAKE2b-256 54a60ccd2b976b6c88825681a18ba5ec55bbebd40da0c10bcbd76e93e37cc399

See more details on using hashes here.

File details

Details for the file postgresql_binaries-16.14.0-py3-none-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: postgresql_binaries-16.14.0-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 12.3 MB
  • Tags: Python 3, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for postgresql_binaries-16.14.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4f87b3b8bcde9e46083040d800d57bfd31f161eee973f4453e05dc2b9f5d1f99
MD5 b968fe760417a13f1be40612883cf92f
BLAKE2b-256 fef446e4a0735e8b0afac238a395a23d8b3471135c0e998f256a7b224201da30

See more details on using hashes here.

Release history Release notifications | RSS feed

18.4.0

5 files

18.3.0

5 files

17.9.0

5 files

17.10.0

5 files

This release

16.14.0 This release

5 files

16.13.0

5 files

15.18.0

5 files

15.17.0

5 files

14.23.0

5 files

14.22.0

5 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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