array-api-strict
A strict, minimal implementation of the Python array API standard.
Decision gist · record as of 2026-08-14
Yes, if you are developing a library that consumes the array API and want to verify your code is portable across array libraries. Install it as a test-time dependency only, not as a runtime dependency. It is not intended for end-users of array libraries or for production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction install with a single runtime dependency (numpy).
- Actively maintained with a recent release (18 days ago) and ongoing commits.
License · maintenance · safety
permissive license (permissive) — BSD license (permissive); you can use, modify, and distribute this package with minimal restrictions, provided you retain copyright notices and disclaimers.
last release 2026-07-27 (18 days) · last repo commit 2026-08-10 · 33 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 183,403 downloads/mo, #10,067 on PyPI
Alternatives
Verify before relying
pip install array-api-strict
import array_api_strict as xp
# Use in test suite to validate array API compliance
x = xp.asarray([1, 2, 3])
result = xp.sum(x)- Whether this package is actively used in test suites of major array-consuming libraries.
- How complete the array API implementation is relative to the full standard specification.
What it is and what it does
array-api-strict is a reference implementation of the Python array API standard designed specifically for testing, not for end-user consumption. It wraps numpy to provide a strict, minimal interface that conforms to the array API specification. The package is intended to be used in test suites of libraries that consume the array API—such as machine learning frameworks or scientific computing packages—to verify that their code will work correctly across different array libraries (NumPy, CuPy, PyTorch, etc.) without relying on library-specific features.
The package is not meant to replace numpy or other array libraries for production use, nor to be added as a dependency to consuming libraries themselves. Instead, it serves as a validation tool: by running tests against array-api-strict, developers can confirm their array API usage is portable and standards-compliant. It supports Python 3.10 and later, has low install friction (only numpy as a runtime dependency), and is actively maintained.
Use it for
- Test array API compliance in a library's test suite to ensure code works across NumPy, CuPy, PyTorch, and other array libraries.
- Validate that a consuming library does not accidentally use non-standard array operations or library-specific features.
- Develop array-agnostic code by testing against a strict reference implementation before deploying to production.
- Verify portability of numerical algorithms across different array backends during development.
- Catch array API violations early in the development cycle before releasing a library.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are developing a library that consumes the array API and want to verify your code is portable across array libraries.
Install it as a test-time dependency only, not as a runtime dependency. It is not intended for end-users of array libraries or for production use.
Install
array-api-strict on PyPI
Before you install
Low friction install with a single runtime dependency (numpy). Actively maintained with a recent release (18 days ago) and ongoing commits.
Requires Python 3.10 or later.
License in practice
BSD license (permissive); you can use, modify, and distribute this package with minimal restrictions, provided you retain copyright notices and disclaimers.
Quickstart
pip install array-api-strict
import array_api_strict as xp
# Use in test suite to validate array API compliance
x = xp.asarray([1, 2, 3])
result = xp.sum(x)
Verify before relying
- Whether this package is actively used in test suites of major array-consuming libraries.
- How complete the array API implementation is relative to the full standard specification.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagenumpy |
| Maintenance | Actively maintained 18 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 183,403 / month, #10,067 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13 |
Evidence: array_api_strict-2.6.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “array api standard implementation”
- array-api-strictProvides a strict, minimal implementation of the Python array API…
- json-numpyProvides lossless JSON encoding and decoding for NumPy arrays and…
- array-api-extraProvides extra array manipulation functions that work across any…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also array-api-compat · array-api-extra · autoray · dataframe-api-compat · numexpr · awkward0 · numpydantic · nptyping · awkward-cpp · msgpack-numpy-opentensor