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

Uploaded Python 3Windows x86-64

postgresql_binaries-14.23.0-py3-none-manylinux_2_17_x86_64.whl (10.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

postgresql_binaries-14.23.0-py3-none-manylinux_2_17_aarch64.whl (10.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

postgresql_binaries-14.23.0-py3-none-macosx_11_0_arm64.whl (11.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

postgresql_binaries-14.23.0-py3-none-macosx_10_9_x86_64.whl (11.9 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: postgresql_binaries-14.23.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 43.0 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-14.23.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2f19b5928def547c7e398f34bcee7227d0023dc099be72f9ca0b4665679c2c5b
MD5 7dd67e65c478f5cee4cc6706d5128d83
BLAKE2b-256 96ed7eb78667ba94fa440c829dd14084183a232072016e285e42edc4f14f8fef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-14.23.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 10.3 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-14.23.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f156cc7d27a60f3f68492cabdd62f1addee6f54883d71d1dccc3b70b5623556c
MD5 414b51120ed00a3d70f5b8338f3c586b
BLAKE2b-256 1e18402ebf24c9cac70c2957c51f6a2dec2d2dc10783724a1ba581fe8345c7b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-14.23.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 10.1 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-14.23.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5c8eaf12371b4c11f497a74299ca34ec203258b3c5a40c12719aa9db9dc662a2
MD5 b440fa86ba3e93991d7fc5de89249e06
BLAKE2b-256 a984598c08d3935383db64040938b7b4da22b81963ec8ac180d6f65bb933a526

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-14.23.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 11.6 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-14.23.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5772244d8da252ad60a60b6adeea6f3d02f6c7c5b28164450be566620156da3b
MD5 7dedea15d4519d0651a64d9afbd4a838
BLAKE2b-256 e5a9765e808c12d619734fd6d970cae52cdf73f841cdd4cdb513638e84852e76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postgresql_binaries-14.23.0-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 11.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-14.23.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 03fce37af4080ddbf2024a10bb486861c4c597859a1a2e6b0282db690d272487
MD5 89ce39dfaa5aa8f8b88d6084fe9ae6a6
BLAKE2b-256 c97767e86d099975353444c50e23e0e39ce21744f0bb34f350a5b9e4760dae5e

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

15.18.0

5 files

15.17.0

5 files

This release

14.23.0 This release

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