Animal Language
Customize a word set, and then use the words in this set to represent any sentence.
Install
pip install --upgrade animal-language
Usage
To encode a sentence with these characters and words:
m, oo, b, aa, z
(or use moo, baa, zzz, but it will increase the encoded string's length)
1) Create a Translater
from animal_language import ALTranslater
translater = ALTranslater(['m', 'oo', 'b', 'aa', 'z'])
2) Encode Any String
use the translater to encode any string you want.
encoded_str = translater.encode('hello, this is a test')
The encoded_str will be like :
oooombbooboozmmbaabbmooaaoobaambzzooaaaaaazmbmbooaam
3) Decode the Encoded String
Also use the translater to decode the encoded_str.
decoded_str = translater.decode(encoded_str)
The decoded_str is equal to the string you encoded
Other Information
- The word list must be like "prefix codes", lists like
['a', 'ab']will not supported. - You can set the encoding of the input string.
- JUST HAVE FUN AND ENJOY THIS bmoooombaaooooaambooz !
Metadata
Release files for animal-language 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| animal-language-0.1.2.tar.gz | 4.2 kB | Without provenance | Details for animal-language-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| animal_language-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for animal_language-0.1.2-py3-none-any.whl |
Total release size: 8.4 kB
Release files / animal-language-0.1.2.tar.gz
| Download URL | animal-language-0.1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b22e9afcd9c665b741cc2a61fad3e23b8763d4223ca1bf239669bc4bdc738802
|
|
BLAKE2b-256 checksum How to use checksums |
857a1d668a5438d818417e2b63e93463aa930a74f4d24fcd3aca32ccdb5d2a5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.6.8rc1 Windows/10
|
Release files / animal_language-0.1.2-py3-none-any.whl
| Download URL | animal_language-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a84fe8a4eaef2997b91c6cf3c01939b38a393e79444338e4bcfc09b76a19b0dc
|
|
BLAKE2b-256 checksum How to use checksums |
d93bd482ad8ed28224c886106fae3e85f6c3ad48c9c192fe000282cde2ad1f0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.6.8rc1 Windows/10
|
Security for animal-language 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.