Arrayish
A library for downstream compatibility of Numpy-compatible arrays.
Usage
For an alternative array implementation
import numpy as np
import arrayish as ai
class CustomArray(object):
"""Your custom ``ndarray`` compatible implementation."""
pass
def dot(a, b, out=None)
""" Your custom implementation of ``np.dot``. """
pass
# Between your own arrays
ai.dot.add((CustomArray, CustomArray), dot)
# With Numpy Arrays, if you'd like. Can also pass another function
ai.dot.add((np.ndarray, CustomArray), dot)
ai.dot.add((CustomArray, np.ndarray), dot)
For a downstream library willing to support alternative arrays
import arrayish as ai
import numpy as np
# Instead of this:
np.dot(a, b)
# Do this:
ai.dot(a, b)
Metadata
Release files for arrayish 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arrayish-0.0.1.tar.gz | 19.3 kB | Without provenance | Details for arrayish-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arrayish-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for arrayish-0.0.1-py2.py3-none-any.whl |
Total release size: 21.9 kB
Release files / arrayish-0.0.1.tar.gz
| Download URL | arrayish-0.0.1.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8969fd7dc4cfb4a93ebd32e675aba634f9119bf374473fd8c47894657b7a207
|
|
BLAKE2b-256 checksum How to use checksums |
60883c1493475a8cb6cb22b5c323a2fe09bbbb24b9396f7aa05f28fc9992a321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / arrayish-0.0.1-py2.py3-none-any.whl
| Download URL | arrayish-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
65ae4efb1e955b3c0fe53d66b150ddd648413346e13494650cbe80f78b1daa8a
|
|
BLAKE2b-256 checksum How to use checksums |
6b5193ce4a400b1f08f85e8274fe11ea858d9723cdca8ced1b2a14a9a4574ed1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for arrayish 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.