Skip to main content

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)

Source distribution for animal-language 0.1.2
File Size Uploaded
animal-language-0.1.2.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for animal-language 0.1.2
File Interpreter ABI Platform
animal_language-0.1.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page