metta-arrays
Arrays as atoms for every library speaking DLPack and the Python array API.
pymetta names no third-party library. This package is declares nothing; it CONSUMES the seat's array and index points and registers one fallback index backend of its own, the Array API path, and the seat
finds it exactly as it finds a package written by somebody else: through the
metta.extensions entry point, loaded at the first dispatch that has no answer
without it, or through import metta_arrays, whose module body registers the same
rows.
pip install metta-arrays # or: pip install 'pymetta[arrays]'
Its tests are in tests/, and they run in the workspace suite:
sh extensions/python/test.sh ext/metta-arrays
The wheel also advertises lib_arrays through metta.libraries. Its face
derives arrays-is-array and its arrow and documentation from is_array:
import importlib
from metta import MeTTa, importing
with MeTTa() as m:
with importing.install(m.self):
arrays = importlib.import_module("lib_arrays")
assert m.eval(arrays.arrays_is_array((1, 2, 3))) == [False]
The face-sync check includes faces shipped under ext/.
Regenerate the face with python extensions/python/tools/facegen.py --write ext/metta-arrays/metta_arrays_library/lib_arrays.metta.
The wheel test builds this distribution and executes the installed face.
Release files for metta-arrays 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| metta_arrays-0.9.2.tar.gz | 38.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metta_arrays-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.6 kB
Release files / metta_arrays-0.9.2.tar.gz
| Download URL | metta_arrays-0.9.2.tar.gz |
|---|---|
| Size | 38.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3354e1ae58c0eaf3e2cbaefbbe07c22ebab183d718b326e9f4b5b936c45bb09f
|
|
BLAKE2b-256 checksum How to use checksums |
060ce038e17a63e324699102ea0dbf3ebb0026f3e2cb6457210bf0ffb0536e53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / metta_arrays-0.9.2-py3-none-any.whl
| Download URL | metta_arrays-0.9.2-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed142f05f932d496e02f781fd79492dc0c77c4d1391a1577f24f0c0eed3010f4
|
|
BLAKE2b-256 checksum How to use checksums |
78154b73a065d34bbf76122e96441a9bb5d7b85e91b3c2a285e6ed9cbf3db593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log