bencode.py
Simple bencode parser (for Python 2, Python 3 and PyPy), forked from the bencode package by Thomas Rampelberg.
Usage
Encode:
import bencode
bencode.encode({'title': 'Example'})
# 'd5:title7:Examplee'
bencode.encode(12)
# 'i12e'
Decode:
import bencode
bencode.decode('d5:title7:Examplee')
# {'title': 'Example'}
bencode.decode('i12e')
# 12
API
bencode.bencode(value)
bencode.encode(value)
Encode value into the bencode format.
bencode.bdecode(value)
bencode.decode(value)
Decode bencode formatted string value.
bencode.bread(fd)
Read bencode formatted string from file or path fd.
bencode.bwrite(data, fd)
Write data as a bencode formatted string to file or path fd.
Metadata
Release files for bencode.py 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bencode.py-3.0.0.tar.gz | 16.8 kB | Without provenance | Details for bencode.py-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bencode.py-3.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for bencode.py-3.0.0-py2.py3-none-any.whl |
Total release size: 31.4 kB
Release files / bencode.py-3.0.0.tar.gz
| Download URL | bencode.py-3.0.0.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7bade306f0e31ecf31269e010a547b502f06a019d86f0dceeb0597920ce47fd
|
|
BLAKE2b-256 checksum How to use checksums |
93a0ad7f0d2f2403dc95db1587b6abb1c893269274406e18c2d1d0ee3a48182f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.15
|
Release files / bencode.py-3.0.0-py2.py3-none-any.whl
| Download URL | bencode.py-3.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
164e626bfb0d2b4d81465f875e5d279f60e1283808385e44b84f976f380322ec
|
|
BLAKE2b-256 checksum How to use checksums |
ca423da3ce383d8adc218adde7333a84f4fd72fd4f4ab2ba3652d3f36bce5708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.15
|
Security for bencode.py 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.