Skip to main content

bencode-parser build

Bencode parser for python.

For more information about bencode format please refer to wiki_page

INSTALLATION

$ pip install bencode-parser

USAGE

>>> import bencode
>>> bencode.decode('3:abc')
'abc'
>>> bencode.decode('i123e')
123
>>> bencode.decode('li1ei2ei3ee')
[1, 2, 3]
>>> bencode.decode('d1:1i1e1:2i2e1:3i3ee')
{'1': 1, '3': 3, '2': 2}
>>> bencode.encode('abc')
'3:abc'
>>> bencode.encode(123)
'i123e'
>>> bencode.encode([1,2,3])
'li1ei2ei3ee'
>>> bencode.encode({'1': 1, '3': 3, '2': 2})
'd1:1i1e1:3i3e1:2i2ee'

Metadata

Release files for bencode-parser 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bencode-parser 1.0.1
File Size Uploaded Provenance Actions
bencode-parser-1.0.1.tar.gz 2.7 kB Without provenance Details for bencode-parser-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bencode-parser 1.0.1
File Interpreter ABI Platform Actions
bencode-parser-1.0.1.macosx-10.11-x86_64.exe Details for bencode-parser-1.0.1.macosx-10.11-x86_64.exe

Total release size: 68.8 kB

Release files / bencode-parser-1.0.1.tar.gz

Download URL bencode-parser-1.0.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
26e9c9fc3aa8cac65056cf39b02b2ef49a8657ed55f49d7ebca42ad1a4073630
BLAKE2b-256 checksum
How to use checksums
f3955b900f883c349328600fcb8e33e94c1fb0c7965d25d6a237d8f38c90e4b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bencode-parser-1.0.1.macosx-10.11-x86_64.exe

Download URL bencode-parser-1.0.1.macosx-10.11-x86_64.exe
Size 66.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ab35a7092dae4c8d7f1faa1dda650108995fcec184fe3f36bb23843b497dd911
BLAKE2b-256 checksum
How to use checksums
5fb9cc267778cb1354d5fa167be6a041bac5717e4cf3245f65b7c24ca00a0898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bencode-parser 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page