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

Uploaded Python 3Windows x86-64

postgresql_binaries-18.4.0-py3-none-manylinux_2_17_x86_64.whl (12.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

postgresql_binaries-18.4.0-py3-none-manylinux_2_17_aarch64.whl (11.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

postgresql_binaries-18.4.0-py3-none-macosx_11_0_arm64.whl (12.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

postgresql_binaries-18.4.0-py3-none-macosx_10_9_x86_64.whl (13.3 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: postgresql_binaries-18.4.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 53.6 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-18.4.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3b4c1d94f176a0bbf0237d0653d2d154375b49b46e20b497f36b79508abef52c
MD5 56471acb5a694aed05779a40411cf647
BLAKE2b-256 0b5949402e45c6330a7fa12cada25e9694065f719a934f7faaae65f55d53028e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-18.4.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 12.0 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-18.4.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2705410882dd47024e4d1d1ebe0590489b3e7d3aef7385bb1043ee3738470255
MD5 23b3e474deb2d4e154017cf0bc8af43b
BLAKE2b-256 18af7f22560d7ae2b759db6a9b3c507f13184e6547da86608cd09d957e79be75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-18.4.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 11.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-18.4.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 eb34427f22fc89f64fbef45b67da5fb533379718aaab6566d86137abc0808802
MD5 0108d2150029f825b8a02dcfa9f37def
BLAKE2b-256 66e7c6d280e44faf1c876c1ac4006f3ce2099df45ffe70d79452422efec51258

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-18.4.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 12.9 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-18.4.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dddc9d9a666406609714ac445b3250ef30f7682dd497e71c4a4a9b4a8566cdab
MD5 0ec198d5fb6874d9b6c66198e7b3ec5e
BLAKE2b-256 fead6f910597965acb429b00cd85a65efa7840ef93332a7a96f0ed1e2a46d51c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-18.4.0-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 13.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-18.4.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6bda705520a1d762084a7e832cb2ee4c5dc1e7ec8adffc19983d78f80bcf5c97
MD5 558e4f945de4eae16adbc9cdc00d36eb
BLAKE2b-256 7f31f41e5474889c57ba7aa70791f7946148dbc5deb8ee7657d4bb187a2abe6f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

18.4.0 This release

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

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