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.7.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.7-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.7-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.7-cp312-cp312-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pygoreadability-0.2.7-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.7-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.7-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pygoreadability-0.2.7-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.7-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.7-cp310-cp310-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pygoreadability-0.2.7-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.7-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.7-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.7.tar.gz.

File metadata

  • Download URL: pygoreadability-0.2.7.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.7.tar.gz
Algorithm Hash digest
SHA256 e4433ad13143cb288f3c8e86d04c93da922e4362e51e5ebab0d63c57081e0e34
MD5 49311ad88dd1f628e74232fa2d605431
BLAKE2b-256 f847c57648f847f1f38d5a979a413991b85d4b698896aa6e34724cbf798f8861

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygoreadability-0.2.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9cfd261e8394599f6e278fbfc3001341c81775619a7cae39b513d43fe5bda8a2
MD5 061ff0785f6f1ff75ef88f847f658f10
BLAKE2b-256 4973ad9e76fb0970733af00f6af5ae6ea5dfd7ff45fb59ef2f9af7d95876f719

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.7-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.7-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f4fd16ffe6b07cd0c4710dd8bf19a73ccf60ba0c1786e0322e1c817b5eb6043e
MD5 130202a8ebf6e735acb1fb0740af9753
BLAKE2b-256 fe155c6b54b2a17ab00d34dfec877c7f413e794c572128d105c1c058a8e77d08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygoreadability-0.2.7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d554cccde8d15bb7685fd5dc4f9807b2aac37496c0c8b93a0139afef69c5f15a
MD5 0499781a8900153c265b6855c7c15b09
BLAKE2b-256 4d2f5870f8aeaa38c823cb0d250d4b267ea35f556d4f5d06bec24a23e4d2e165

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygoreadability-0.2.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 df6cf2cc8ff415c6e0769c256e9a5d066c5957c090d43a1a52b2c481cbcb5ef7
MD5 bf92f4a97ffbfabc9d3dc97ec6776ecb
BLAKE2b-256 d9d0b17ef3fc074fb0dfe0385d93155a2f1ef464b3bb17f7cde5b2cc6df117fc

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.7-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.7-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a43b914095b4b1baffb8fd8ef9fd324139618e4385ffb5a0f44a32913946dbf5
MD5 b4336aa37e2fe672746726ec28427e4b
BLAKE2b-256 e356e977526789518bee07b791fe4e4e12e51df141ab7322b68b2ab3bdfff883

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygoreadability-0.2.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 732527ee1c60365de3824153052252bcb7440812b516b2bcc3f0ac065e826472
MD5 337d50a779463de20ccfb65ea276db7b
BLAKE2b-256 1145aecd9684bb5357a2385dd9ca08e92ffdd58ebe3f14274624b092c5173ee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygoreadability-0.2.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9159a349b4ee733d03959c9e5a3a24b30ca2ac94c763d21183c55ed78c148f8e
MD5 d2e747773c5c753744fe4832a3ee0fbc
BLAKE2b-256 0b4bb2fe632366a13f9b69c1d7aa0540e712a501dc3508e0344870e2997297f6

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.7-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.7-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d03b18bca58ee53af527fbb00c3ca682d511508985d85998526ffcf6921fb16a
MD5 27a143c77576b3ba64e273252628439f
BLAKE2b-256 76a372fa3f31378c52e3524c5624f42051d777b6a9ca7b98f8db139d04a008f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygoreadability-0.2.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a20fee55340df5b2a5469b1d01b821c879fb7b258e1546d21c8f1b037ae8100
MD5 09c68780d1e93775a84339b21731c3a3
BLAKE2b-256 3abe4defe67e91daa1eb00292a2d0b5f9e742068e6436a02733fc6500a34313e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygoreadability-0.2.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ef4700cca6b02794fa28c466127371fd6eeb775829340b3d8486fa4a7a55f69a
MD5 2404584fdaf1597f7285368e2df4cc35
BLAKE2b-256 af6d9f43b752c324fd9c300519ecdd5d08feccb68385e84ef44fb6bdd51db384

See more details on using hashes here.

File details

Details for the file pygoreadability-0.2.7-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.7-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c04c0a2fafdb91e8121488f7d9e302710695c355b654a725f69591a73e43a7e8
MD5 148c67072b28aadf0c8694370c396eb4
BLAKE2b-256 91881ac043fae221d365b18577ad3bff29bd8293b51844a040b850fa908dee8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygoreadability-0.2.7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60076ef8b256753157814e1cf89e84287459354c5b949eb6f45e72fe405f1d2e
MD5 e801092b3859d54d73acda6a72f48028
BLAKE2b-256 8892a3ca2c55eb24b287c78361c89da71912e4737ae316aae20f6bbf1dad34d3

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