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

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.3
File Size Uploaded
metta_arrays-0.9.3.tar.gz 38.8 kB Details

Built distribution (wheel)

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

Total release size: 66.6 kB

Release files / metta_arrays-0.9.3.tar.gz

Download URL metta_arrays-0.9.3.tar.gz
Size 38.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9b867beb20db067deb1c4638ee4f8ac6e090e68eefac10c86138bd2e4443c641
BLAKE2b-256 checksum
How to use checksums
2fc6dad4d3043e113902abb81f40ea0e74d76b4eeb83539956555cab17a066f4
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 25, 2026.

Transparency log

Release files / metta_arrays-0.9.3-py3-none-any.whl

Download URL metta_arrays-0.9.3-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc7b37d1ca3ad738fe79841d40c7a7993d5339b70891ab59ffb1cdbba2b4bbb8
BLAKE2b-256 checksum
How to use checksums
3fe7f57b0c4060fb1da6d673cf0c1f96aefcafbdbc72602a61ce24e284d0bcb9
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 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.3 This release

2 release files

0.9.2

2 release files

0.9.1

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