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.
Copyright
Original Pure-Python bencoder (c) Petru Paler
Cython version and modifications (c) Canonical Ltd
Split out from Bazaar/Breezy by Jelmer Vernooij
Project details
Release history Release notifications | RSS feed
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.14.tar.gz
(22.8 kB
view details)
File details
Details for the file fastbencode-0.0.14.tar.gz
.
File metadata
- Download URL: fastbencode-0.0.14.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eae72f555c759bf7d9ec49c59002adfbc446fa8ff6b80e084e8fabe80f01a3b |
|
MD5 | 788b4d508d49c8fc5446d1aab9969393 |
|
BLAKE2b-256 | 4f01444cb78c2bff35b324559bf70f803f3c1de48c10eef188ae5ef9704f8619 |