Byte Codec
A simple Python Library for encoding and decoding various data types to and from bytes.
Installation
pip install byte-codec
Usage
from byte_codec import ByteCodec
codec = ByteCodec()
# Encoding
int_bytes = codec.encode_from_int(12345)
string_bytes = codec.encode_from_string("Hello, World!")
float_bytes = codec.encode_from_float(3.14159)
list_bytes = codec.encode_from_list([b'\x01\x02', b'\x03\x04'])
# Decoding
int_value = codec.decode_to_int(int_bytes)
string_value = codec.decode_to_string(string_bytes)
float_value = codec.decode_to_float(float_bytes)
list_value = codec.decode_to_list(list_bytes, 2)
# Generic encoding
any_bytes = codec.encode_from_any(12345) # Works with int, str, float, list, or bytes
License
This Project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for byte-codec 0.1.4
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 |
|---|---|---|---|---|
| byte_codec-0.1.4.tar.gz | 3.8 kB | Without provenance | Details for byte_codec-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| byte_codec-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for byte_codec-0.1.4-py3-none-any.whl |
Total release size: 7.8 kB
Release files / byte_codec-0.1.4.tar.gz
| Download URL | byte_codec-0.1.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b693458484f6cee969ea6ab305275d4e116ce4439236cd6edf81c189cddcd68a
|
|
BLAKE2b-256 checksum How to use checksums |
0e7afda19a2db91b9221a20c110864ec8e53133e14f5e4c24454a3ac9fb1d781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / byte_codec-0.1.4-py3-none-any.whl
| Download URL | byte_codec-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e53f4ac09e27000a375ce03e6fd880361f1d351fda7d55a1ed3fd7c8683e7385
|
|
BLAKE2b-256 checksum How to use checksums |
6f68c3659a5e323764ce66787ee7aa51a3c39ed8fd56d5e66ca4afe1e5d7e674
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for byte-codec 0.1.4
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.