Skip to main content

Implementation of bencode with optional fast C extensions

Project description

fastbencode

fastbencode is an implementation of the bencode serialization format originally used by BitTorrent.

The package includes both a pure-Python version and an optional C extension based on Cython. Both provide the same functionality, but the C extension provides significantly better performance.

Example:

>>> from fastbencode import bencode, bdecode
>>> bencode([1, 2, b'a', {b'd': 3}])
b'li1ei2e1:ad1:di3eee'
>>> bdecode(bencode([1, 2, b'a', {b'd': 3}]))
[1, 2, b'a', {b'd': 3}]

License

fastbencode is available under the GNU GPL, version 2 or later.

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

fastbencode-0.0.16.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

fastbencode-0.0.16-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file fastbencode-0.0.16.tar.gz.

File metadata

  • Download URL: fastbencode-0.0.16.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for fastbencode-0.0.16.tar.gz
Algorithm Hash digest
SHA256 30110e6fee4108a582a5bc223824f11bed727956ce9cc4069ad7dcfde7dc27ed
MD5 250b167b9e539f001fb42052b024532d
BLAKE2b-256 ef137b578d3236b69002e386c0f0fd6eefd9b199eceea763674b47293330f6c6

See more details on using hashes here.

File details

Details for the file fastbencode-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: fastbencode-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for fastbencode-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 ab031d7ad1bfac16dd882876ff303f05060a5b6e9907522dbfacce04ebfa7a4d
MD5 bb38bda451abbfacca0a3405d13ebe52
BLAKE2b-256 c54d0a7d52b68b405636907d8f8f50636b5d3d686723cdbb7f9d9d2583fcea5a

See more details on using hashes here.

Supported by

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