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.2.tar.gz
(2.5 kB
view details)
File details
Details for the file tempfilerepr-1.1.2.tar.gz.
File metadata
- Download URL: tempfilerepr-1.1.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07159aeff471a1841e46c16b42a5e0fba77ab872e611c9e344a2c3a5d3727ca4
|
|
| MD5 |
10803957048e1eb188890216b343614f
|
|
| BLAKE2b-256 |
c0157a02976cb14c25cbe6c229e331c9943cf1f407511f4025e8af2f65ec1da8
|