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.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 | |
|---|---|---|---|
| metta_arrays-0.9.0.tar.gz | 38.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metta_arrays-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.7 kB
Release files / metta_arrays-0.9.0.tar.gz
| Download URL | metta_arrays-0.9.0.tar.gz |
|---|---|
| Size | 38.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ade54a5a20abcf3250f83d19ec83dc9c2b9a1c6d1e9b52cac207f3aadfffcf7c
|
|
BLAKE2b-256 checksum How to use checksums |
4716848a3bfea3212c70ef88849de91864ce5de91510c342b82a6fd2a864598c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / metta_arrays-0.9.0-py3-none-any.whl
| Download URL | metta_arrays-0.9.0-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1aeb29111b51c34c0c7e9548e396ee7d6197abc858b6839eac7284752bb45827
|
|
BLAKE2b-256 checksum How to use checksums |
9235ab1bc8438098707e351c4ef18f1e34715ac137affc0646ab37030bb4a9ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|