Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - 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.

Release History

This version
History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(9.4 kB) Copy SHA256 Hash SHA256
Source None Nov 20, 2013
(11.5 kB) Copy SHA256 Hash SHA256
Source None Nov 20, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers