array-adhoc
This an ad-hoc implementation of parts of the Python Array API backed by backends that do not themselves fully implement them.
The purpose is to use those backends with normalized array api code. For example, using this, you can use pytorch and the python arrays api using the same interface.
It's ad-hoc because I'm only implementating parts of the spec when I use them, and I do the implementations barebones.
This could easily improve with some good pull requests.
Wrappers Included: - torch
Handoffs Included: - cupy - numpy
It is easy to add a new wrapper or handoff, you just import the api functions in a new named file. If time is short, just make a handoff first, and then if something is missing or wrong or not compatible with old releases, improve it into a wrapper.
Usage:
import array_adhoc.torch as xp
array = xp.asarray([2,4,9])
print(xp.sqrt(array))
Metadata
Release files for array-adhoc 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 |
|---|---|---|---|---|
| array-adhoc-0.0.1.tar.gz | 4.0 kB | Without provenance | Details for array-adhoc-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| array_adhoc-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for array_adhoc-0.0.1-py3-none-any.whl |
Total release size: 7.6 kB
Release files / array-adhoc-0.0.1.tar.gz
| Download URL | array-adhoc-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80ab01e4d66132c86179a3ffc31a0842f3a19f3d91c9fa2bc25709832c4d94e9
|
|
BLAKE2b-256 checksum How to use checksums |
33b3a1d640f24724fe0746d8de14e33a5d3458d717b8eadfdee779727682a67a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4+
|
Release files / array_adhoc-0.0.1-py3-none-any.whl
| Download URL | array_adhoc-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
247cce90774c2b291ec741182f94c74e713bbeefb3ed3256583adde4531271dd
|
|
BLAKE2b-256 checksum How to use checksums |
051a33226faa463abe1629e7e89fff3fe3beb9fe64bf7f6bd803b562f0a6b1d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4+
|
Security for array-adhoc 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.