Skip to main content

Encoder and decoder for the temp encoding.

Project description

PyPI GitHub

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.3.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file tempfilerepr-1.1.3.tar.gz.

File metadata

  • Download URL: tempfilerepr-1.1.3.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

Hashes for tempfilerepr-1.1.3.tar.gz
Algorithm Hash digest
SHA256 6ee3ede3a18bd335f1245fe9286b2a0e73f38b576be0f168e8172d90d76c8543
MD5 b5665a47999b1a13babab54353ffe3bd
BLAKE2b-256 8f42e870555ef7e7b922aed3565535335280178fe57e0c6070d17afcacb2ab71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page