Pure Python array (pure_array)
A pure python implementation of the array data structure of numpy. This work is not intended to
be a replacement for numpy, but rather a possible alternative when numpy is not allowed. This implementation has the
same syntax as numpy, but not all functions are implemented.
Installation
pip install pure_array
You can also install the development version from GitHub:
git clone https://github.com/ferranSanchezLlado/pure_array.git
cd pure_array
pip install -e .
Usage
import pure_array as np
a = np.array([1, 2, 3])
b = np.array([4, 5, 6])
assert a + b == np.array([5, 7, 9])
assert a * b == np.array([4, 10, 18])
assert a.max() == 3
Requirements
As can be seen from the requirements.txt there are no requirements for the package itself, but the tests
(requirements_dev.txt) require pytest and
flake8 can be used for linting.
License
Future work
- Implement boolean indexing
- Documentation
- Better static typing
- More tests
- More functions
Metadata
Release files for pure-array 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pure_array-0.1.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pure_array-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / pure_array-0.1.0.tar.gz
| Download URL | pure_array-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2eaef82adb0955fb80483abd8c270032c952a12d886290583e6a20873319551
|
|
BLAKE2b-256 checksum How to use checksums |
3d385e9c3c5a526f1d4257a2399dbcc0fecca22eee25b684d1bd7b4ebc52c1be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|
Release files / pure_array-0.1.0-py3-none-any.whl
| Download URL | pure_array-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c6a4e80e18fbf295d7f1f19bbad9452d8896927fbe393a4e5140a4ccc289436
|
|
BLAKE2b-256 checksum How to use checksums |
5f85ecf9a1e05b96ff3cd68b92312deca23b611aeee67922fa27f3571e26df93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|