Array operations simplified
Project description
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
Source Code
License
napi is available under MIT License. See LICENSE.txt for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
napi-0.2.zip
(9.8 kB
view details)
napi-0.2.tar.gz
(7.8 kB
view details)
File details
Details for the file napi-0.2.zip
.
File metadata
- Download URL: napi-0.2.zip
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 279d02fbbcc347065bd75c8400377d15234a0533e2f9b8d70ca0dd11369062b5 |
|
MD5 | 353c8fd1f82ecaf4ff31f63c05fec2bc |
|
BLAKE2b-256 | 5a4cad8f6fbae7ba9e7136f8fd8a8cc074b44bd180c0f21c8ab5d589a07653fc |
File details
Details for the file napi-0.2.tar.gz
.
File metadata
- Download URL: napi-0.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d55e7864840491ec093f777cea0375e499a8f826fbc2a7f3a4eddadfcfe0c76 |
|
MD5 | 86f29afd7ed03fb5ab808fb940dbb92a |
|
BLAKE2b-256 | de0f7cd06e20393f55b2cfc14eb05af07eade0255492c5d2cf9532caba6164d3 |