Package: arrr
Arrr.py - Pirate Speak for PythonA simple script / module to turn plain English into Pirate speak. Arrr.Someone mentioned something called “Pirate Python”, I idly wondered if anyone
had made an English to Pirate-ish module/command written in Python (they
hadn’t), I realised I had a burning desire to make one, and things got out of
hand. :-)We have an entirely seriouscode of conductand a not-so-seriouscode of mis-conductfor those of a more Piratical disposition.InstallationTo install simply type:$ pip install arrr…and the package will download from PyPI. If you wish to upgrade to the
latest version, use the following command:$ pip install --no-cache --upgrade arrrCommand UsageOnce installed, you’ll find you have apiratecommand to use in your shell.To read the (non-Pirate friendly) help, simply type:$ pirate --helpor:$ pirate -hTo translate plain English into something Pirate-ish simply call the command
followed by some English sentence:$ pirate hello there. how are you today?
Ahoy there. Weigh anchor and hoist the mizzen! How are ye today?Thepiratecommand will reply with a Pirate-ish equivalent (as shown
above).NoteThis software misbehaves like a Pirate.Sometimes, thepiratecommand will not only translate English to
Pirate-ish, but will also interject with Pirate sayings (such as,
“Weigh anchor and hoist the mizzen!” as shown above).This is entirely normal and perfectly Piratical behaviour. What else
were you expecting..?Using the APIThearrrmodule’s API is fully documented below. All you really need is to
import thetranslatefunction and use that to return Pirate-ish sentences
from a given input in English:from arrr import translate


english = "Hello there. How are you?"
pirate = translate(english)
print(pirate)The script above will print output similar to that for the command-line usage
example shown above.DevelopmentThe source code ishosted in GitHub. Please
feel free to fork the repository and contribute.
Assuming you have Git installed you can download the code from the canonical
repository with the following command:$ git clone https://github.com/ntoll/arrr.gitEnsure you have the correct dependencies for development installed by creating
a virtualenv and running:$ pip install -r requirements.txtPull requests are most welcome! Honestly, thearrrmodule was cobbled
together in about 5 minutes and I went overboard (geddit?) with creating a
simple yet well packaged and documented project soarrrcan act as a good
example for beginner developers.If you find any bugs,submit a new issue. Thank you!Release History1.0.4Cleaned up blots in the cap’n’s log.More piratical ways to mangle English.1.0.3Project boarded by new pirate matey Calico Hutchison (two new salty phrases).1.0.2Plundered more piratical phrases from t’interwebz.A more piratical handling of exceptions.1.0.1More salty seadog parlay vocabulary.1.0.0Minor additions to the vocabulary.Black (spot) formatted.1.0.0.beta.3Better arrrg parsing contributed by Tony “buccaneer baloney” Shaw.Corrections of speeling mistaiks by Esteve “make mine an Aranjuez” Fernandez.1.0.0.beta.2Major code optimizations by old salty sea dog Terry Jones.A more terrifying logo by Cap’n Steve “Inkspot” Hawkes.Addition of a code of mis-conduct (for Pirates) by terror of the seas, Tim
“No beard” Golden.1.0.0.beta.1Minor documentation fixes.Minor corrections in the code.1.0.0.alpha.1Initial release.Very simple implementation.Documentation.No tests.