A bencode serialize/deserialize library written in Rust with pyo3
install
pip install bencode-rs
basic usage
import bencode_rs
assert bencode_rs.bdecode(b"d4:spaml1:a1:bee") == {b"spam": [b"a", b"b"]}
assert bencode_rs.bencode({'hello': 'world'}) == b'd5:hello5:worlde'
Notice
decoding
there is no str/string in bencode, only bytes. so we decode bencode bytes to python bytes, since it may not be a utf8 string.
encoding
we encode python True as int 1 and False as int 0.
Metadata
Release files for bencode-rs 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bencode_rs-0.0.9.tar.gz | 529.2 kB | Details |
Built distributions (wheels)
Total release size: 6.1 MB
Release files / bencode_rs-0.0.9.tar.gz
| Download URL | bencode_rs-0.0.9.tar.gz |
|---|---|
| Size | 529.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b19490674c5abdc5c7d329071a43760d55313386791ffacb779a9c489c6c6c9
|
|
BLAKE2b-256 checksum How to use checksums |
56053cd84a089a92e62f63bbdec21c87904b5b527432d67d2ed0200785e32f81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-win_amd64.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 132.3 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3ee4ac64f732148f89a570ec2267a595bb83b52636411c7cc91fa6ecfc85f1db
|
|
BLAKE2b-256 checksum How to use checksums |
77b585ae9e584009e571606344daad438ffc881ad4693fafdcd33e2d35dca4d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-musllinux_1_2_x86_64.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 479.6 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
813570de66741ee856e7745bd344fd2d5656da377431f9c73c4d645aab0a2534
|
|
BLAKE2b-256 checksum How to use checksums |
67eb1e5f1907590d2fdcdd23af5be3b916f20f0d65f631b22549f62584f31447
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-musllinux_1_2_aarch64.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 449.1 kB |
| Tags | CPython 3.11 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a9e549ada7aa64858a71b9b6befc50a6c4d34a22cdec53206d701964488f25a5
|
|
BLAKE2b-256 checksum How to use checksums |
fc07bbeb40b8fcdae51018cc37ec5c48da55d38c156a81b1219291bc0559e76c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 276.1 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7839cb560774ae03de4dfd856f7803a29fe4386f812a7b8ce9c4f3d4c8d6a037
|
|
BLAKE2b-256 checksum How to use checksums |
d10aac79428670300ca1e37fa9452e5bbf2c7add0de4948528983e50e522ba51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 296.1 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ IBM System/390x abi3 |
|
SHA-256 checksum How to use checksums |
9203fb1baf5bc0e05ab7b587c6da2a5d5cb58ffe3c38d49b6419da4735945771
|
|
BLAKE2b-256 checksum How to use checksums |
970cbb783ae7d6cbb7a3723c4b99cea9c258217060f7db2a3c2f8f0b9f805f49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 387.9 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ PowerPC 64-le abi3 |
|
SHA-256 checksum How to use checksums |
0348991d23815147443b83c09b136613cd28ca51210bf59f233e349d745e697f
|
|
BLAKE2b-256 checksum How to use checksums |
88b5a67207cbeabc5e2891519bfd5581fcf1cb69d8067c31bf65492b73ff71d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 278.8 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
1dd8c09cbe610471a524f70cc2bc5d644c7c2d929226bcb023877be051dac1ce
|
|
BLAKE2b-256 checksum How to use checksums |
d0e92c31f3a0f400d3f5a9d02e5192838be674c19298d3b6562325a4d3b5b0c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 271.2 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
0e448982239d85f8447a18bf89c6063141187fd930f8baa57958eee819a897b5
|
|
BLAKE2b-256 checksum How to use checksums |
01fb413d5d24fabfdf566b500a219113ed0533c961172ff321e2ca77a0f0610c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | bencode_rs-0.0.9-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 239.2 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f6407b75796846ded4ab91498eed54ed229b0950afe3cb974553bc63441a7d20
|
|
BLAKE2b-256 checksum How to use checksums |
9e36c8de37e1bd8db292d4b34dc26a71bedabf6f31fccbc6eb5645d76a953f47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-win_amd64.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 132.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4522d427ecc366f9eef0c96a96d75a8ef6f5c60ac4e4b853f370a60487a2b4f0
|
|
BLAKE2b-256 checksum How to use checksums |
30e0a06a40ba32ef3b5f9363f6426a5778aba1f9fa7e5709c1fe3d13f0efc1a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-musllinux_1_2_x86_64.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 478.5 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
30fefb70567b5449ba89fec1306afc80624078e6a3bd31d8e1315d4dbd86ed2d
|
|
BLAKE2b-256 checksum How to use checksums |
050ade451a4bae8e3709dc41c2853df4df9b78f78f475734b5e1d8d3e3bd00ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-musllinux_1_2_aarch64.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 448.2 kB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
fe1cd99c61647a54721828dd1bc6e1a73f20795e041243484ca2fce0542b9b3c
|
|
BLAKE2b-256 checksum How to use checksums |
0d99db0cabb20537f6ca8ceace93fac99968d0a2a116bb64a8c07880aff5ce5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 274.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b3fd3a48220ff215640ee55782f13aba77f9a13d2fa8332f4e8d58884bf171fb
|
|
BLAKE2b-256 checksum How to use checksums |
1240d9697c86024e6d408dd28706b5845a6ab316043ace5e83e084b03d7c2415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 294.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ IBM System/390x |
|
SHA-256 checksum How to use checksums |
c1e01173aa567496fd2bc38b08b2572f91d193301ab64f88bafd9f26607cfd95
|
|
BLAKE2b-256 checksum How to use checksums |
6e878a28206a779ed26d37eb1abb9b304fa4453dcabd9d447c5e4c502ec3c64e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 384.6 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ PowerPC 64-le |
|
SHA-256 checksum How to use checksums |
0268a3f0e22374c7131f5e9b924bf0297983e3042f70fcc0d4f35977d9a44d14
|
|
BLAKE2b-256 checksum How to use checksums |
a5856c8a27824b347c8ed55c24bb25ff4671fe846ee2059bac8f1174466a9e86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 277.8 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
cfa5cd619e14f5317a3a0055f41aa4d790ef7d749522ee32121fb5832f476c79
|
|
BLAKE2b-256 checksum How to use checksums |
a5db9caf9a3d14291b0ecf4321e7806acf57b0819b5d1a43aeefaca569664716
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 270.4 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
0ca166144c610b4f41da36f74e752b7ca603941c1c548df478d431c780118d73
|
|
BLAKE2b-256 checksum How to use checksums |
fb98d56d98e8fdc16a5bd9e5a3e09099c8c04bd75d59c7c8565a2e70020fe1e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / bencode_rs-0.0.9-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | bencode_rs-0.0.9-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 239.9 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
748831cdd450820bcaab3ae840d124a53656603725cd442ce0c12e5ea4096def
|
|
BLAKE2b-256 checksum How to use checksums |
c97509cc1fa8b7dd5ec4af24c685dbe238934311f17ff283c67438a586826615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency log