schemair 0.1.0.dev0__py3-none-any.whl
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.
schemair/__init__.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""Python bindings for the SchemaIR protocol.
|
|
2
|
+
|
|
3
|
+
The public modules are intentionally small during the initial implementation:
|
|
4
|
+
``schemair.spec``, ``schemair.core``, and ``schemair.type_interpreter``.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
__version__ = "0.1.0.dev0"
|
|
8
|
+
|
|
9
|
+
__all__ = ["__version__"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""SchemaNode definition, payload, and relation APIs."""
|
schemair/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Serializable SchemaIR contract, operation, and expression model bindings."""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Authoring-time interpreter for SchemaIR type expressions."""
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: schemair
|
|
3
|
+
Version: 0.1.0.dev0
|
|
4
|
+
Summary: Python implementation of the language-independent SchemaIR protocol
|
|
5
|
+
Project-URL: Homepage, https://github.com/schemair/schemair
|
|
6
|
+
Project-URL: Documentation, https://github.com/schemair/schemair/tree/main/spec
|
|
7
|
+
Project-URL: Repository, https://github.com/schemair/schemair.git
|
|
8
|
+
Project-URL: Issues, https://github.com/schemair/schemair/issues
|
|
9
|
+
Author: SchemaIR contributors
|
|
10
|
+
License-Expression: Apache-2.0
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
17
|
+
Requires-Python: >=3.11
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# SchemaIR for Python
|
|
21
|
+
|
|
22
|
+
This directory will contain the Python implementation of the language-independent
|
|
23
|
+
[SchemaIR protocol](../spec/). The package is intended for Python tools that need
|
|
24
|
+
to construct, validate, compare, and interpret SchemaIR data without coupling
|
|
25
|
+
the wire model to a Python runtime object graph.
|
|
26
|
+
|
|
27
|
+
The protocol is the source of truth. Python APIs are bindings and authoring
|
|
28
|
+
conveniences; their serialized output must remain compatible with the shared
|
|
29
|
+
vectors in [`../conformance/`](../conformance/).
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
Python 3.11 or newer is required. Create an environment and install the package
|
|
34
|
+
with its development dependencies using your preferred workflow. With `uv`:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
uv sync
|
|
38
|
+
uv run pytest
|
|
39
|
+
uv run ruff check .
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
The initial package is a scaffold. Implementation work should proceed from the
|
|
43
|
+
protocol models, then definition and payload validation, SchemaNode relations,
|
|
44
|
+
and the type interpreter. Host reference resolution, semantic and constraint
|
|
45
|
+
providers, native type relations, graph scheduling, and execution remain caller
|
|
46
|
+
owned.
|
|
47
|
+
|
|
48
|
+
## Package layout
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
schemair/
|
|
52
|
+
spec/ # Python bindings for protocol data
|
|
53
|
+
core/ # definition, payload, and SchemaNode relation APIs
|
|
54
|
+
type_interpreter/ # authoring-time expression interpreter
|
|
55
|
+
tests/ # unit and shared conformance-vector tests
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
See the repository [contribution guide](../CONTRIBUTING.md) for protocol and
|
|
59
|
+
conformance change rules.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
schemair/__init__.py,sha256=i_5M9FzNep-m9PoYa-M13Tjxg14sHixgG2uxzzlG_ec,257
|
|
2
|
+
schemair/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
schemair/core/__init__.py,sha256=EtRUGclTwHIUd8b3YKYIRbS8PzvW3J2NtGv1fzLnIL4,57
|
|
4
|
+
schemair/spec/__init__.py,sha256=vfuLlZM2Dj7_bQmlUqxDfPgjKl64ZoFc28mbmmFMXE8,80
|
|
5
|
+
schemair/type_interpreter/__init__.py,sha256=GhJUISauV7FXzM1TI8yIS5Nbnh2nW-avl83P1KlcrwU,64
|
|
6
|
+
schemair-0.1.0.dev0.dist-info/METADATA,sha256=tNyDqXcyQcRdPekkJ3NjfcZY-zsC8UOb2Z3CR0CNH7A,2308
|
|
7
|
+
schemair-0.1.0.dev0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
8
|
+
schemair-0.1.0.dev0.dist-info/RECORD,,
|