Name | numpy-cursor JSON |
Version |
1.0.5
JSON |
| download |
home_page | https://github.com/NikGariel/NumPy-Cursor |
Summary | This package contains a Python implementation of a cursor for NumPy matrices. The cursor allows you to conveniently move through a matrix and read or modify its values. |
upload_time | 2023-04-26 04:13:13 |
maintainer | |
docs_url | None |
author | nikgariel |
requires_python | >=3.8 |
license | |
keywords |
numpy
python
cursor
matrix
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
NumPy Cursor
============
This repository contains a Python implementation of a cursor for NumPy matrices. The cursor allows you to conveniently move through a matrix and read or modify its values.
The cursor class has the following methods:
* `__init__(self, matrix)`: Initializes the cursor with a NumPy matrix.
* `left(self, steps=1)`: Moves the cursor left by `steps` columns.
* `right(self, steps=1)`: Moves the cursor right by `steps` columns.
* `up(self, steps=1)`: Moves the cursor up by `steps` rows.
* `down(self, steps=1)`: Moves the cursor down by `steps` rows.
* `move(self, row_steps, col_steps)`: Moves the cursor by `row_steps` rows and `col_steps` columns.
* `set(self, row, col)`: Set the cursor by `row` rows and `col` columns.
* `coordinates`: Returns the current row and column coordinates of the cursor.
* `isEmpty`: Returns `True` if the value of the matrix at the current cursor position is zero, and `False` otherwise.
* `setItem(self, item)`: Setting the value of the cursor cell by `item`.
* `__repr__(self)`: Returns a string representation of the value of the matrix at the current cursor position.
* `__str__(self)`: Returns a string representation of the value of the matrix at the current cursor position.
The implementation also includes error checking to prevent moving the cursor beyond the boundaries of the matrix.
Raw data
{
"_id": null,
"home_page": "https://github.com/NikGariel/NumPy-Cursor",
"name": "numpy-cursor",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "numpy python cursor matrix",
"author": "nikgariel",
"author_email": "nikgariel@yahoo.com",
"download_url": "https://files.pythonhosted.org/packages/b5/9c/7cd73d22f17795d125d639f759f9664884079d82e2fa2f785e75781a9f39/numpy_cursor-1.0.5.tar.gz",
"platform": null,
"description": "NumPy Cursor\r\n============\r\n\r\nThis repository contains a Python implementation of a cursor for NumPy matrices. The cursor allows you to conveniently move through a matrix and read or modify its values.\r\n\r\nThe cursor class has the following methods:\r\n\r\n* `__init__(self, matrix)`: Initializes the cursor with a NumPy matrix.\r\n* `left(self, steps=1)`: Moves the cursor left by `steps` columns.\r\n* `right(self, steps=1)`: Moves the cursor right by `steps` columns.\r\n* `up(self, steps=1)`: Moves the cursor up by `steps` rows.\r\n* `down(self, steps=1)`: Moves the cursor down by `steps` rows.\r\n* `move(self, row_steps, col_steps)`: Moves the cursor by `row_steps` rows and `col_steps` columns.\r\n* `set(self, row, col)`: Set the cursor by `row` rows and `col` columns.\r\n* `coordinates`: Returns the current row and column coordinates of the cursor.\r\n* `isEmpty`: Returns `True` if the value of the matrix at the current cursor position is zero, and `False` otherwise.\r\n* `setItem(self, item)`: Setting the value of the cursor cell by `item`.\r\n* `__repr__(self)`: Returns a string representation of the value of the matrix at the current cursor position.\r\n* `__str__(self)`: Returns a string representation of the value of the matrix at the current cursor position.\r\n\r\nThe implementation also includes error checking to prevent moving the cursor beyond the boundaries of the matrix.\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "This package contains a Python implementation of a cursor for NumPy matrices. The cursor allows you to conveniently move through a matrix and read or modify its values.",
"version": "1.0.5",
"split_keywords": [
"numpy",
"python",
"cursor",
"matrix"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "17a77822a8b3d1815ff4a0853f36d9ac2e3f001f9b119bba7917ac998cd82210",
"md5": "3b756045f1e6f443975803dc5ccf7f37",
"sha256": "fb6b0a87993d05646f64af9374cefe513571879d5c70522b0e0900c745f95035"
},
"downloads": -1,
"filename": "numpy_cursor-1.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3b756045f1e6f443975803dc5ccf7f37",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6683,
"upload_time": "2023-04-26T04:13:11",
"upload_time_iso_8601": "2023-04-26T04:13:11.711369Z",
"url": "https://files.pythonhosted.org/packages/17/a7/7822a8b3d1815ff4a0853f36d9ac2e3f001f9b119bba7917ac998cd82210/numpy_cursor-1.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b59c7cd73d22f17795d125d639f759f9664884079d82e2fa2f785e75781a9f39",
"md5": "8efafed767b13e01be50cd6c15809d5b",
"sha256": "4bbb70f95bf042bab631edd2e6b8545eb6a9aea0840e9bfcf49c14383100cdcc"
},
"downloads": -1,
"filename": "numpy_cursor-1.0.5.tar.gz",
"has_sig": false,
"md5_digest": "8efafed767b13e01be50cd6c15809d5b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 2482,
"upload_time": "2023-04-26T04:13:13",
"upload_time_iso_8601": "2023-04-26T04:13:13.827125Z",
"url": "https://files.pythonhosted.org/packages/b5/9c/7cd73d22f17795d125d639f759f9664884079d82e2fa2f785e75781a9f39/numpy_cursor-1.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-26 04:13:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "NikGariel",
"github_project": "NumPy-Cursor",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "numpy-cursor"
}