Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pmeier/array-protocol
https://github.com/pmeier/array-protocol
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmeier/array-protocol
- Owner: pmeier
- Created: 2021-07-16T07:05:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-28T06:53:45.000Z (over 3 years ago)
- Last Synced: 2024-10-13T05:43:12.522Z (25 days ago)
- Language: Python
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- 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`