metta-arrays 0.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: metta-arrays
3
+ Version: 0.9.0
4
+ Summary: Arrays as atoms for every library speaking DLPack and the Python array API
5
+ License-Expression: MIT
6
+ Classifier: Development Status :: 3 - Alpha
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Intended Audience :: Science/Research
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: pymetta==0.8.0
12
+ Requires-Dist: array-api-compat
13
+
14
+ # metta-arrays
15
+
16
+ Arrays as atoms for every library speaking DLPack and the Python array API.
17
+
18
+ `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
19
+ finds it exactly as it finds a package written by somebody else: through the
20
+ `metta.extensions` entry point, loaded at the first dispatch that has no answer
21
+ without it, or through `import metta_arrays`, whose module body registers the same
22
+ rows.
23
+
24
+ ```sh
25
+ pip install metta-arrays # or: pip install 'pymetta[arrays]'
26
+ ```
27
+
28
+ Its tests are in `tests/`, and they run in the workspace suite:
29
+
30
+ ```sh
31
+ sh extensions/python/test.sh ext/metta-arrays
32
+ ```
33
+
34
+ The wheel also advertises `lib_arrays` through `metta.libraries`. Its face
35
+ derives `arrays-is-array` and its arrow and documentation from `is_array`:
36
+
37
+ ```python
38
+ import importlib
39
+ from metta import MeTTa, importing
40
+
41
+ with MeTTa() as m:
42
+ with importing.install(m.self):
43
+ arrays = importlib.import_module("lib_arrays")
44
+ assert m.eval(arrays.arrays_is_array((1, 2, 3))) == [False]
45
+ ```
46
+
47
+ The `face-sync` check includes faces shipped under `ext/`.
48
+ Regenerate the face with `python extensions/python/tools/facegen.py --write
49
+ ext/metta-arrays/metta_arrays_library/lib_arrays.metta`.
50
+ The wheel test builds this distribution and executes the installed face.
@@ -0,0 +1,37 @@
1
+ # metta-arrays
2
+
3
+ Arrays as atoms for every library speaking DLPack and the Python array API.
4
+
5
+ `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
6
+ finds it exactly as it finds a package written by somebody else: through the
7
+ `metta.extensions` entry point, loaded at the first dispatch that has no answer
8
+ without it, or through `import metta_arrays`, whose module body registers the same
9
+ rows.
10
+
11
+ ```sh
12
+ pip install metta-arrays # or: pip install 'pymetta[arrays]'
13
+ ```
14
+
15
+ Its tests are in `tests/`, and they run in the workspace suite:
16
+
17
+ ```sh
18
+ sh extensions/python/test.sh ext/metta-arrays
19
+ ```
20
+
21
+ The wheel also advertises `lib_arrays` through `metta.libraries`. Its face
22
+ derives `arrays-is-array` and its arrow and documentation from `is_array`:
23
+
24
+ ```python
25
+ import importlib
26
+ from metta import MeTTa, importing
27
+
28
+ with MeTTa() as m:
29
+ with importing.install(m.self):
30
+ arrays = importlib.import_module("lib_arrays")
31
+ assert m.eval(arrays.arrays_is_array((1, 2, 3))) == [False]
32
+ ```
33
+
34
+ The `face-sync` check includes faces shipped under `ext/`.
35
+ Regenerate the face with `python extensions/python/tools/facegen.py --write
36
+ ext/metta-arrays/metta_arrays_library/lib_arrays.metta`.
37
+ The wheel test builds this distribution and executes the installed face.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: metta-arrays
3
+ Version: 0.9.0
4
+ Summary: Arrays as atoms for every library speaking DLPack and the Python array API
5
+ License-Expression: MIT
6
+ Classifier: Development Status :: 3 - Alpha
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Intended Audience :: Science/Research
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: pymetta==0.8.0
12
+ Requires-Dist: array-api-compat
13
+
14
+ # metta-arrays
15
+
16
+ Arrays as atoms for every library speaking DLPack and the Python array API.
17
+
18
+ `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
19
+ finds it exactly as it finds a package written by somebody else: through the
20
+ `metta.extensions` entry point, loaded at the first dispatch that has no answer
21
+ without it, or through `import metta_arrays`, whose module body registers the same
22
+ rows.
23
+
24
+ ```sh
25
+ pip install metta-arrays # or: pip install 'pymetta[arrays]'
26
+ ```
27
+
28
+ Its tests are in `tests/`, and they run in the workspace suite:
29
+
30
+ ```sh
31
+ sh extensions/python/test.sh ext/metta-arrays
32
+ ```
33
+
34
+ The wheel also advertises `lib_arrays` through `metta.libraries`. Its face
35
+ derives `arrays-is-array` and its arrow and documentation from `is_array`:
36
+
37
+ ```python
38
+ import importlib
39
+ from metta import MeTTa, importing
40
+
41
+ with MeTTa() as m:
42
+ with importing.install(m.self):
43
+ arrays = importlib.import_module("lib_arrays")
44
+ assert m.eval(arrays.arrays_is_array((1, 2, 3))) == [False]
45
+ ```
46
+
47
+ The `face-sync` check includes faces shipped under `ext/`.
48
+ Regenerate the face with `python extensions/python/tools/facegen.py --write
49
+ ext/metta-arrays/metta_arrays_library/lib_arrays.metta`.
50
+ The wheel test builds this distribution and executes the installed face.
@@ -0,0 +1,15 @@
1
+ README.md
2
+ metta_arrays.py
3
+ metta_arrays_doors.py
4
+ pyproject.toml
5
+ metta_arrays.egg-info/PKG-INFO
6
+ metta_arrays.egg-info/SOURCES.txt
7
+ metta_arrays.egg-info/dependency_links.txt
8
+ metta_arrays.egg-info/entry_points.txt
9
+ metta_arrays.egg-info/requires.txt
10
+ metta_arrays.egg-info/top_level.txt
11
+ metta_arrays_library/__init__.py
12
+ metta_arrays_library/lib_arrays.metta
13
+ tests/test_arrays.py
14
+ tests/test_arrays_doors.py
15
+ tests/test_library_face.py
@@ -0,0 +1,5 @@
1
+ [metta.extensions]
2
+ metta-arrays = metta_arrays_doors
3
+
4
+ [metta.libraries]
5
+ lib_arrays = metta_arrays_library:sources
@@ -0,0 +1,2 @@
1
+ pymetta==0.8.0
2
+ array-api-compat
@@ -0,0 +1,3 @@
1
+ metta_arrays
2
+ metta_arrays_doors
3
+ metta_arrays_library