Name | cunumpy JSON |
Version |
0.1
JSON |
| download |
home_page | None |
Summary | Simple wrapper for numpy and cupy. Replace `import numpy as np` with `import cunumpy as xp`. |
upload_time | 2025-10-22 09:54:15 |
maintainer | None |
docs_url | None |
author | Max |
requires_python | >=3.8 |
license | None |
keywords |
python
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# CuNumpy
Simple wrapper for numpy and cupy. Replace `import numpy as np` with `import cunumpy as xp`.
# Install
Create and activate python environment
```
python -m venv env
source env/bin/activate
pip install --upgrade pip
```
Install the code and requirements with pip
```
pip install -e .
```
Example usage:
```
export ARRAY_BACKEND=cupy
```
```python
import cunumpy as xp
arr = xp.array([1,2])
print(type(arr))
print(xp.__version__)
```
# Build docs
```
make html
cd ../
open docs/_build/html/index.html
```
Raw data
{
"_id": null,
"home_page": null,
"name": "cunumpy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "python",
"author": "Max",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/e5/0e/da62e6df57c368ea38a6f20a23db47436edf91493afb82c636a3b64caad9/cunumpy-0.1.tar.gz",
"platform": null,
"description": "# CuNumpy\n\nSimple wrapper for numpy and cupy. Replace `import numpy as np` with `import cunumpy as xp`.\n\n# Install\n\nCreate and activate python environment\n\n```\npython -m venv env\nsource env/bin/activate\npip install --upgrade pip\n```\n\nInstall the code and requirements with pip\n\n```\npip install -e .\n```\n\nExample usage:\n\n```\nexport ARRAY_BACKEND=cupy\n```\n\n```python\nimport cunumpy as xp\narr = xp.array([1,2])\n\nprint(type(arr))\nprint(xp.__version__)\n```\n\n# Build docs\n\n\n```\nmake html\ncd ../\nopen docs/_build/html/index.html\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Simple wrapper for numpy and cupy. Replace `import numpy as np` with `import cunumpy as xp`.",
"version": "0.1",
"project_urls": {
"Source": "https://github.com/max-models/cunumpy"
},
"split_keywords": [
"python"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "8876186c7cfb050ebcf5c3ad66a81bd434e7f1b7891de6a9caf42609c50154ce",
"md5": "3897717638b64892b1d3bba8a18b8ff3",
"sha256": "ef1bcd26f106a151b43905cd4a3b74cf95242ae9606874383927980771af3737"
},
"downloads": -1,
"filename": "cunumpy-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3897717638b64892b1d3bba8a18b8ff3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 2939,
"upload_time": "2025-10-22T09:54:14",
"upload_time_iso_8601": "2025-10-22T09:54:14.344427Z",
"url": "https://files.pythonhosted.org/packages/88/76/186c7cfb050ebcf5c3ad66a81bd434e7f1b7891de6a9caf42609c50154ce/cunumpy-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e50eda62e6df57c368ea38a6f20a23db47436edf91493afb82c636a3b64caad9",
"md5": "b83503217d5e484fecc8cd4ac9334b05",
"sha256": "4dc5061563a274f7234a0adbd528e7af5bd0bf15d5ae6ef467d30c4a3c89ca7f"
},
"downloads": -1,
"filename": "cunumpy-0.1.tar.gz",
"has_sig": false,
"md5_digest": "b83503217d5e484fecc8cd4ac9334b05",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 2856,
"upload_time": "2025-10-22T09:54:15",
"upload_time_iso_8601": "2025-10-22T09:54:15.274788Z",
"url": "https://files.pythonhosted.org/packages/e5/0e/da62e6df57c368ea38a6f20a23db47436edf91493afb82c636a3b64caad9/cunumpy-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-22 09:54:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "max-models",
"github_project": "cunumpy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cunumpy"
}