Skip to main content

bcoder

Encode and decode bencode, the format of .torrent files.

pip install bcoder
import bcoder

bcoder.encode({b"spam": [b"eggs", 42]})  # b"d4:spaml4:eggsi42eee"
bcoder.decode(b"d4:spaml4:eggsi42eee")  # {b"spam": [b"eggs", 42]}

Values are int, bytes, list and dict with bytes keys. encode raises TypeError for anything else. decode raises bcoder.DecodeError for malformed data.

Metadata

Release files for bcoder 3.0

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

Source distribution (sdist)

Source distribution for bcoder 3.0
File Size Uploaded Provenance Actions
bcoder-3.0.tar.gz 2.7 kB Without provenance Details for bcoder-3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bcoder 3.0
File Interpreter ABI Platform Actions
bcoder-3.0-py3-none-any.whl Python 3 none any Details for bcoder-3.0-py3-none-any.whl

Total release size: 5.9 kB

Release files / bcoder-3.0.tar.gz

Download URL bcoder-3.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
36ba47cc6daf38960a37eff050b2b00bdc02e4b0237117882608d3be0e36d652
BLAKE2b-256 checksum
How to use checksums
b1c5a3ec82412dabebab49d6911d244ee4d95fb390fb3f841e91afd07e909021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bcoder-3.0-py3-none-any.whl

Download URL bcoder-3.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f599c8c4207f5c7be78a92f4c905398a72ef6e2ef4e07488f0e212a8a4f36444
BLAKE2b-256 checksum
How to use checksums
02db19a8bfd2c65448991ba9c1e52d2ae7436796c5f926067d3772047c782be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for bcoder 3.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.

Release history Release notifications | RSS feed

This release

3.0 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