The future is parrot.
$ pip3 install git+git://github.com/TariqAHassan/PartyParrot@master
from party_parrot import to_parrot, from_parrot
parrot = to_parrot("hello world!", copy=True)
print(parrot)
# :triplets_parrot::witness_protection_parrot::confused_parrot::confused_parrot::conga_parrot: :deal_with_it_parrot::conga_parrot::popcorn_parrot::confused_parrot::chill_parrot:!
We can use copy=True
to copy the output to our clipboard, so we can simply
paste the output elsewhere with Command + V
on Mac or Control + V
on Windows.
print(from_parrot(parrot))
# hello world!
parrot = to_parrot("hello world!", key=88)
print(parrot)
# :blonde_sassy_parrot::parrot_dad::bored_parrot::bored_parrot::goth_parrot: :coffee_parrot::goth_parrot::margarita_parrot::bored_parrot::ship_it_parrot:!
# Wrong key:
print(from_parrot(parrot)) # default key = 1.
# xdzzv fvhzc!
# Correct Key:
print(from_parrot(parrot, key=88))
# hello world!
$ parrot "hi"
# :slow_parrot::christmas_parrot:
Note: special characters, such as !
, have to be escaped with a backslash when using the CLI
(e.g., 'hi\!'
).
$ parrot ":slow_parrot::christmas_parrot:"
# hi
$ parrot -h
usage: parrot [-h] [--dir DIR] [--copy COPY] [--key KEY] string
parrot
positional arguments:
string String to convert.
optional arguments:
-h, --help show this help message and exit
--dir DIR Direction. One of: 'to', 'from', 'auto'. Defaults to 'auto'
[detection].
--copy COPY If True, copy output to clipboard. Defaults to True if 'to',
False if 'from'.
--key KEY Key to use. Defaults to 1.