Skip to main content

CPython bindings for go-readability (FromString)

Project description

pygoreadability

CPython bindings for codeberg.org/readeck/go-readability/v2 exposing FromString.

Development

Build the Go shared library for your current platform:

bash scripts/build_lib.sh

Then in Python:

from pygoreadability import from_string

article = from_string(html, url="https://example.com")
print(article.title)

Wheels

This package is designed to ship prebuilt wheels. Use cibuildwheel to build platform-specific wheels for macOS arm64 and Linux x86_64.

Environment:

  • GOREADABILITY_VERSION (optional): version/tag override (defaults to the version in go/go.mod).
  • PYGOREADABILITY_SKIP_BUILD=1 to skip the build step (expects the shared library to already be present in the package directory).
  • PYGOREADABILITY_AUTO_BUILD=0 to disable import-time auto-build fallback (useful for constrained environments).

Null bytes

from_string accepts Unicode strings that may contain embedded null bytes (\x00) because the binding passes explicit lengths across the FFI boundary.

Output fields are length-prefixed in the C bridge as well, so embedded null bytes in extracted text won't be truncated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygoreadability-0.2.8.tar.gz (11.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pygoreadability-0.2.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

pygoreadability-0.2.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pygoreadability-0.2.8-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pygoreadability-0.2.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

pygoreadability-0.2.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pygoreadability-0.2.8-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pygoreadability-0.2.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

pygoreadability-0.2.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pygoreadability-0.2.8-cp310-cp310-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pygoreadability-0.2.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

pygoreadability-0.2.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

pygoreadability-0.2.8-cp39-cp39-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file pygoreadability-0.2.8.tar.gz.

File metadata

  • Download URL: pygoreadability-0.2.8.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pygoreadability-0.2.8.tar.gz
Algorithm Hash digest
SHA256 d077808ac70332680704f49458c7dbc35cc36a9f0ad81adb15c164975ab029b0
MD5 bd3fdb31cced719f279aee57ad76e001
BLAKE2b-256 aac5a474c395427e111e5b0acf125abc8feb42666ca6d49c4b6ec3aa403770d2

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c2a6c7019c569ca8c7c78523bd6caa32c5c7f04065b618790ac3fc68e386379d
MD5 f0a6fbaaff097af5001a1cbaedc99a3f
BLAKE2b-256 b4a690fb3eb2979124f98f40b8ae94836a64c99a19ae9b9fe2818078addf9c40

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 29be4ccc4838196e7bd60a8b0da0a13ef6844fca0d9c603883215e407ad65829
MD5 8d65f5cd2a7ea59fa0afe15c46b1e649
BLAKE2b-256 cf9c0306cb902aa65bd8a3075c0767a0792f1d7a78e821624e510f186d4f0e87

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aa85081201e87c82f8c1a4f0b24a342296c19a16d58e50b866c58b9aee11c31
MD5 36e9e70fb917970fd354779b0df99541
BLAKE2b-256 37e3725c7d90bade5c4f6200310dab3cb45b7410f0dcbe2e7478f63903b2837c

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1993c5e65cdd6d6cf0bd48febcef3e66d0e41a87552ec08fb006db79cabd56f7
MD5 7077891801803548b10746c0d87f9f5e
BLAKE2b-256 92f2ebf442d7e4c54ff96a1a9b9599be6b84b8f7da3dae32aac15a40ff9c8f8e

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a3b11a07f84801c97d81a26c2b6f4a28a8c8c414e7b87ccb54aa9f02a79f5dad
MD5 35ec0f5d95814df5858336897cd3f444
BLAKE2b-256 ef9b3bc6ba000e84374cb5b43954fa71effa8cd4b3d40f008de9273cfd908c94

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79a984292101a6987fb98f4406dba4990182286cb935c4841f1bc1fb079e4a3b
MD5 6714f8840dbe3bae5a6ddb2b15b1b32e
BLAKE2b-256 1b877f324fde2067632e4b52ca11bc38eac64712c518f6bd41da95ec4e78fa17

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ddff0cd64b2613db90afd4535e019d93a91a4f57688acc622f48c9a2193a3d4d
MD5 d5cd0cc348a9695dedc4108a314e1888
BLAKE2b-256 3ccda229bf03233b708e71e362e90385cdf9669b70e81f80c096135ea35fd8fa

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 83dda5d18326fc30b085f2f1a6ed1aba5500c9ae4246af8f16f8155abb1ce31b
MD5 bbb65d64aa7e3af36dea444bbada8729
BLAKE2b-256 4f1027fb4526fa0db5202e68643ad35cbd1ff8d3316f2dcac4a66436ec22dc9e

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce82885cec82d0d8a65f54f65dd7a606ffbcdaf20a40b57e77a3e86e35245b57
MD5 c378bd8905b25f5b5e850bdd36310a72
BLAKE2b-256 2b5f0a1e88e1ef7c2faea907fd8ab5a52619893ab2a7194a9b7a9af6f78ff4f4

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 23b8537d85781d3f38b1a266d9f5999c7b17b6cb83ea20ddc9f5c7534f1f5e23
MD5 8b6e900206d2cc5e6ff77474e5528973
BLAKE2b-256 bb4686f3eff60041386f2a630f088401001e78dd8760798d9f0dc0544e313905

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a87cceaafd139ec1b13ded9bbbb7f34605b1b0ceab43e1bb2e5ac347c25051e1
MD5 2a2ec6c20ab464746adf00bdd550f2a6
BLAKE2b-256 af57429eb39767b324ee311e985ce797d6bf722b6b740971721ea759f6bc07d8

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.8-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pygoreadability-0.2.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f5f64c8da0b8f9c2da441705bb2783c1f57ecd8fb110b4694b09810871c43e3
MD5 4dde73073d892557738a65a03f12eb81
BLAKE2b-256 b6161d671e12026bc12a15889d0b96089594c722bac3fbafe2d9e414ff2624df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page