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
#This Library Program it Devil
data = b'my test data' # Length of bytes must be a multiple of 4
enc_data = encode(data)
print(enc_data) # ['G67S97=T4WR2X=EP4STZYE8']
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.1.tar.gz
(2.6 kB
view details)
File details
Details for the file tempfilerepr-1.1.1.tar.gz.
File metadata
- Download URL: tempfilerepr-1.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d00a21ffcf374298a2b70555e8bd5290b87b5926851aac5af854f06aaf3755b
|
|
| MD5 |
081e2f5a122bc8cdce9bf41cf33d706f
|
|
| BLAKE2b-256 |
7a4aa59bc20c95669507d8bfcafb72b8d340b370bf43b02df61a1be7e028487d
|