Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Array operations simplified

Project description

.. image::


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

.. code-block:: ipython

In [1]: import napi

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

to enable evaluation of the following expression:

.. code-block:: ipython

In [3] from numpy import *

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

.. _NumPy:


*napi* works with Python 2.7, 3.2 and later.


$ pip install -U napi

Docs & Source

* Docs:
* Source:


*napi* is available under MIT License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for napi, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size napi-0.2.1.tar.gz (9.4 kB) File type Source Python version None Upload date Hashes View
Filename, size (11.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page