Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metta-arrays 0.9.1
File Size Uploaded
metta_arrays-0.9.1.tar.gz 38.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for metta-arrays 0.9.1
File Interpreter ABI Platform
metta_arrays-0.9.1-py3-none-any.whl Python 3 none any Details

Total release size: 66.7 kB

Release files / metta_arrays-0.9.1.tar.gz

Download URL metta_arrays-0.9.1.tar.gz
Size 38.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4aa22d46b1815f94a3610485ecdeb3ff2779d04cb1fc3f284022597111dd2b76
BLAKE2b-256 checksum
How to use checksums
5014998314c3669f6b8bd7dff9b35d764ee23f1d2b2150c35d49f124ac9c0bc4
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.1-py3-none-any.whl

Download URL metta_arrays-0.9.1-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f152f70c950dd2a2284507ce27106cd2b16e3d74f580e7a18c2b940b21f9af9c
BLAKE2b-256 checksum
How to use checksums
69c5fc544a953573c1afdb465db90be6076d0c05507be0593fbc48187ae829bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

0.9.2

2 release files

This release

0.9.1 This release

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page