Skip to content

TariqAHassan/PartyParrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Party Parrot Language

Parrot

The future is parrot.


Build Status

Installation

$ pip3 install git+git://github.com/TariqAHassan/PartyParrot@master

General Usage

from party_parrot import to_parrot, from_parrot

To 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.

From Parrot:

print(from_parrot(parrot))
# hello world!

Secret Parrot Messages

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!

Command Line Interface (CLI)

To Parrot:

$ 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\!').

From Parrot:

$ parrot ":slow_parrot::christmas_parrot:"
# hi

CLI Documentation

$ 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.

About

Party Parrot Language. This package is not maintained...for obvious reasons.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages