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.

Metadata

Release files for metta-arrays 0.9.4

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.4
File Size Uploaded
metta_arrays-0.9.4.tar.gz 44.4 kB Details

Built distribution (wheel)

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

Total release size: 76.8 kB

Release files / metta_arrays-0.9.4.tar.gz

Download URL metta_arrays-0.9.4.tar.gz
Size 44.4 kB
Tags Source
SHA-256 checksum
How to use checksums
86684b3b7589aa080cc18b1a2225b33aa3498feff3c36f640da8b8813adfa38c
BLAKE2b-256 checksum
How to use checksums
50b6931e8f17c212891fe58f866446edbe55d08763ac2b8f3eaef0f3b6ea0ff1
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 30, 2026.

Transparency log

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

Download URL metta_arrays-0.9.4-py3-none-any.whl
Size 32.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d59bfd1f2b7f710ed3708e6aa9e15eb2a6ec2d20fa274f09f2e03c4f05bbb127
BLAKE2b-256 checksum
How to use checksums
1d73380934ef010221016a997905515393df8ee1ba02ee29873a5bafe2caaa35
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 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.4 This release

2 release files

0.9.3

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