Skip to content

abakan-zz/napi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

napi

napi is an abstract syntax tree transformer to simplify NumPy array operations. In IPython, for example, you can use the following magic:

In [1]: import napi

In [2]: %napi
napi ast transformer is turned ON

to enable evaluation of the following expression:

In [3] from numpy import *

In [4] 0 <= arange(6) < 6 and True
Out[4]: array([ True,  True,  True,  True,  True,  True], dtype=bool)

Installation

napi works with Python 2.7, 3.2 and later.

$ pip install -U napi

Docs & Source

License

napi is available under MIT License.