bencode file decoder/encoder
Project description
# borrent-parser A bit-torrent protocol file parser.
Can be installed using:
pip install borrent-parser
The module provides Encoder and Decoder classes, which are capable of parsing any bencoded file.
# Example
dec = Decoder() dec.decode(b”d4:spaml2:ab3cdeee”) # expected output: {“spam”: [“ab”, “cde”]}
enc = Encoder() enc.encode([[“abc”, “def”], {“a”: 123}]) # expected output: b”ll3:abc3:defed1:ai123eee”
For more info on bencode, feel free to check out: https://en.wikipedia.org/wiki/Bencode
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file borrent_parser-1.0.1.tar.gz.
File metadata
- Download URL: borrent_parser-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9055be9346cbc2169643a5f83aaba79bab1d805a35372ee4393c95a5827532e9
|
|
| MD5 |
303d92a0e357361e0c3608da5725a450
|
|
| BLAKE2b-256 |
ee447cbb912ee753697eab3643ec30b724c226f5f3bb06bcc3c1d070d6221fbc
|
File details
Details for the file borrent_parser-1.0.1-py3-none-any.whl.
File metadata
- Download URL: borrent_parser-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b17e1192a82d0ffd3b04ec0bc3eaca830a0f4a1404f003a688bf857a8f2e76b5
|
|
| MD5 |
d235a7afcbff532a26867ee3339007c0
|
|
| BLAKE2b-256 |
e877bfab7fe4fb564404d52e1dc1141176dd22210be7c52f2eacd26c2146a9b8
|