{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/7"}],"enrichment":{"capability":"Encodes and decodes bencode format, the binary encoding used in BitTorrent and related protocols, supporting Python 2, Python 3, and PyPy.","skillfed_tags":["bittorrent","serialization"],"use_cases":["Parse and extract metadata from .torrent files or BitTorrent protocol messages","Serialize Python data structures into bencode format for peer-to-peer applications","Build tools that interact with BitTorrent clients or DHT (Distributed Hash Table) networks","Handle bencode-encoded configuration or data interchange in legacy systems","Decode bencode strings with custom encoding fallback strategies for mixed or corrupted data"],"what_it_does":"bencode.py is a parser for the bencode format, the binary encoding scheme used in BitTorrent and related peer-to-peer protocols. It provides both encoding (Python objects to bencode strings) and decoding (bencode strings back to Python objects) with configurable handling of string encoding, dictionary ordering, and nesting depth limits.\n\nThe package offers a simple functional API (encode/decode) for quick use, plus a class-based API (Bencode, BencodeEncoder, BencodeDecoder) for fine-grained control over encoding behavior, fallback strategies, and file I/O. It has no runtime dependencies and works across Python 2, Python 3, and PyPy, making it portable for legacy and modern codebases alike.","worth_installing":"Yes, if you need bencode support. Low install friction, no dependencies, active maintenance, and no known vulnerabilities make it a straightforward choice. The main caveat is the unclear license status\u2014verify BitTorrent Open Source License compatibility with your project's constraints before committing to production use."},"id":"bencode-py","links":{"html":"https://skillfed.io/packages/bencode-py","md":"https://skillfed.io/packages/bencode-py.md","pypi":"https://pypi.org/project/bencode-py/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-07","license_spdx":null,"license_treatment":"unclear","name":"bencode.py","python_support":"unspecified","summary":"Simple bencode parser (for Python 2, Python 3 and PyPy)"},"popularity":{"monthly_downloads":203862,"position":9619,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.1.0"}
