Nagini is a custom Harry Potter-themed Python. More information on how I made Nagini can be found in this blog post.
$ nagini
>>> accio random
>>> random.random()
0.6507285787268219
>>> type(3)
<__main__.Slytherin object at 0x1004c3290>
>>> wingardium_leviosa(3)
3.0
>>> reducto(lambda a, x: a + x, range(5))
10
>>> avada_kedavra()
-
Clone repository
$ git clone https://github.com/amygdalama/nagini.git -
Compile intermediary Python
$ cd nagini/cpython $ ./configure $ make -
Create a symlink for the intermediary Python and add it to the
PATH$ ln -s python.exe python $ export PATH=$(pwd):$PATH -
Compile Nagini
$ cd ../nagini-python $ ./configure $ make -
Make the
naginiscript executable$ cd ../ $ chmod a+x nagini -
Add the location of the
naginiscript to your path$ export PATH=$(pwd):$pathOr, if you want access to the
naginicommand for all terminal sessions, add the following line to your.bashrcor.bash_profile:export PATH=/path/to/nagini:$PATH