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_code_by_lines, tempfilerepr
data = b'my test data' # Length of bytes must be a multiple of 4
enc_data = encode_code_by_lines(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.0.0.tar.gz
(2.4 kB
view details)
File details
Details for the file tempfilerepr-1.0.0.tar.gz.
File metadata
- Download URL: tempfilerepr-1.0.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 |
fc6a65cb1760711b2fd9fda7241bdb353784c973bfccc5724f7cee052b928215
|
|
| MD5 |
b821c1bf1cdbb908d1bdd82ed84be563
|
|
| BLAKE2b-256 |
26ff60ba7e17ba34e17fe85a6381f1a38aa7b4d12593e6575b6967b05d6a581c
|