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

Uploaded Python 3Windows x86-64

postgresql_binaries-17.10.0-py3-none-manylinux_2_17_x86_64.whl (11.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

postgresql_binaries-17.10.0-py3-none-manylinux_2_17_aarch64.whl (11.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

postgresql_binaries-17.10.0-py3-none-macosx_11_0_arm64.whl (12.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

postgresql_binaries-17.10.0-py3-none-macosx_10_9_x86_64.whl (12.9 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: postgresql_binaries-17.10.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 50.4 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-17.10.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2d86b67aba803cf6d4eddfb9dee993628d62bf0be2a7c2121f0785e12e7339c9
MD5 4c38f847f37c9bfd82d9310252d729be
BLAKE2b-256 43b276753dd0943e65d416f3d577cdafc506c2ce4706f55897f2f9f7b33dd1ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-17.10.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 11.6 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-17.10.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ad7101b93c441a7902d86f642641500db59f610ccbe029f20ef7bbd49d38da57
MD5 04e6e062d32448c54fbd74d427aec30e
BLAKE2b-256 ec83397b76daa4da48f295d4ed36e900b919c3a91522b0f65fea4b335e71c56b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-17.10.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 11.3 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-17.10.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 8a9a00076498b8e441bb80a7dcac307f6ddeeb7a9e40b3d6956fc89eb1a6cbb7
MD5 063b8b4eb9431ac553e9480f7aa00457
BLAKE2b-256 532bbbfef0ca71ddb6556eb9dca62b974971e3affee14cba8353a648ea103ec9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-17.10.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 12.5 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-17.10.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 781b0f1df277f649edb4a3fc6a9268a683e58348dd4a922ce013cb52da718124
MD5 ed5c82a30c93588eb3a0771d5cf0225e
BLAKE2b-256 1eec02993f6642392766524095573df81e4d4d6489022fe22bedcd9b650693b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-17.10.0-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 12.9 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-17.10.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1aa2339e7abce7a3d8806d4067ebe5a6d7c40e05078c912eef0e30b70749532b
MD5 325146b1cc0089ce5048dca09baf7b56
BLAKE2b-256 bd92e832d14318fd242aff09572500744fe11c683278ed6ad3eb84a70d663f73

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

This release

17.10.0 This release

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