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-15.18.0-py3-none-win_amd64.whl (43.8 MB view details)

Uploaded Python 3Windows x86-64

postgresql_binaries-15.18.0-py3-none-manylinux_2_17_x86_64.whl (10.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

postgresql_binaries-15.18.0-py3-none-manylinux_2_17_aarch64.whl (10.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

postgresql_binaries-15.18.0-py3-none-macosx_11_0_arm64.whl (11.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

postgresql_binaries-15.18.0-py3-none-macosx_10_9_x86_64.whl (12.1 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: postgresql_binaries-15.18.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 43.8 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-15.18.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e944a397a426ea3068af73ffcd26345046f706e03d6ba06d3e76eb9e4017ebad
MD5 74563852124a2fd01274a6f93dad44a6
BLAKE2b-256 a9e4bb5a1741363aca055f3cf3bf4e9a1ea7609cef8f8f7fa8226be46d12c92c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-15.18.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 10.7 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-15.18.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 daa46f3f3a030d60b24a5022cc515152fe8e1cdc347e774f2205a641e9ed8959
MD5 366aac99f11d544f81201251faf8f0b4
BLAKE2b-256 527f16adb9a9092e9e588e2c5a18aeee0cbdfdebc7ba6e8a20441d246a03c9e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-15.18.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 10.5 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-15.18.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 28f746fdd3cfc51fd9c6d0879be83976c56703056bd68e1b83b01f28b1a94c10
MD5 7ed5c12978c5b52251448e73cc44ee4b
BLAKE2b-256 4c049b87d81c99e415ae9f3c290b9c6f9be14cc0fce223282019c37f2005ba92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-15.18.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 11.7 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-15.18.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 904fa961c1e824103ab4f0c9c3cd27636c264e4a12e1a27ce576f8d56a112822
MD5 c54150066d67f97bc7e971a65f7b30fa
BLAKE2b-256 9c8a88f9d5e06aa998ea3fafa2684e09d43d131d68655a085d30f879789a3903

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-15.18.0-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 12.1 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-15.18.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 920f753807a0d8be876924cfed388126aadaca3f162f4e687149d9f1d084e4ce
MD5 02556f7e8ecdfd8160a00fddfe9be7e0
BLAKE2b-256 c4649978585c385d29f4497df5a45e39870a9d34df14149f5898782694494849

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

16.14.0

5 files

16.13.0

5 files

This release

15.18.0 This release

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