Encoder and decoder for the temp encoding.
Project description
Repri encode/decoder for Python
Encoder and decoder for the Repri encoding, python implementation of https://github.com/kuon/java-repri
Usage
Install with pip:
$ pip install tempfilerepr
Example:
from tempfilerepr import encode, tempfilerepr
data = b'my test data' # Length of bytes must be a multiple of 4
enc_data = encode(data)
print(enc_data) # 'G67S97T4WR2XEP4STZYE8'
dec_data = tempfilerepr(enc_data)
print(dec_data) # bytearray(b'my test data')
assert data == dec_data # True
License
Licenses under the MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tempfilerepr-1.1.0.tar.gz
(2.4 kB
view details)
File details
Details for the file tempfilerepr-1.1.0.tar.gz.
File metadata
- Download URL: tempfilerepr-1.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff315051deb9eb713bd0044ee8e790bb81038ebe27e5bdb8d1a15dcb301ad95d
|
|
| MD5 |
2e9d7b8ec3564fa8d672549c69e5c396
|
|
| BLAKE2b-256 |
abac6a6f545adebd978960cf2eccecac3aaa0192008d6d84bcc32501b109bbc2
|