https://github.com/pmeier/array-protocol
https://github.com/pmeier/array-protocol
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmeier/array-protocol
- Owner: pmeier
- Created: 2021-07-16T07:05:35.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-28T06:53:45.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T15:45:29.049Z (about 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Array protocol playground
This repository provides a playground for a vendorable protocol for array objects that can be used to statically as well as at runtime check for adherence to the [Array API](https://github.com/data-apis/array-api). You can find a discussion in [this thread](https://github.com/data-apis/array-api/issues/229).
`consumer.py` implements a "vendored" version of the proposed protocol and `provider` implements a dummy array object adhering to it.
- The static checks can be run by `mypy static_checks.py`
- The runtime checks can be run by `python runtime_checks.py`