Name | npycli JSON |
Version |
0.3.0
JSON |
| download |
home_page | None |
Summary | CLI program helper/framework |
upload_time | 2025-08-23 20:35:07 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | None |
keywords |
cli
npy
command line interface
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# npycli
A library to create fast and easy cli programs.
Programs contain either one or many *commands*. a command is represented by
the type `Command`.
A program with *more than one* `Command` should use the type `CLI` which manages many things.
`Command`s can be executed by using the `()`/`__call__` operator, by passing in a `list` of arguments,
and type parsers that convert a `str` to a specific type.
ex. `{bool: lambda s: s.strip().casefold() == 'true'.strip().casefold()}`: Converts `str` to `bool`.
`CLI` will execute a specified command when using `the CLI.exec` bound function. Pass in `entries` to the function which
is a `list` of arguments, the first being the name of a `Command`.
See more [documentation](./docs).
# See [examples](./examples):
* [Simple single command program that sums numbers](./examples/summation.py)
* [Multiple command program that uses a `dict` to manage user key-value pairs](./examples/user_items.py)
Raw data
{
"_id": null,
"home_page": null,
"name": "npycli",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "cli, npy, command line interface",
"author": null,
"author_email": "Franklyn Vasquez <franklynvasquez24@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/3d/36/7d723a0eb1ec9b59a465bda67da1bf097d6c1c22eb60276b03a482283f67/npycli-0.3.0.tar.gz",
"platform": null,
"description": "# npycli\r\n\r\nA library to create fast and easy cli programs.\r\n\r\nPrograms contain either one or many *commands*. a command is represented by\r\nthe type `Command`. \r\nA program with *more than one* `Command` should use the type `CLI` which manages many things.\r\n\r\n`Command`s can be executed by using the `()`/`__call__` operator, by passing in a `list` of arguments,\r\nand type parsers that convert a `str` to a specific type. \r\nex. `{bool: lambda s: s.strip().casefold() == 'true'.strip().casefold()}`: Converts `str` to `bool`.\r\n\r\n`CLI` will execute a specified command when using `the CLI.exec` bound function. Pass in `entries` to the function which\r\nis a `list` of arguments, the first being the name of a `Command`.\r\n\r\nSee more [documentation](./docs).\r\n\r\n# See [examples](./examples):\r\n\r\n* [Simple single command program that sums numbers](./examples/summation.py)\r\n* [Multiple command program that uses a `dict` to manage user key-value pairs](./examples/user_items.py)\r\n",
"bugtrack_url": null,
"license": null,
"summary": "CLI program helper/framework",
"version": "0.3.0",
"project_urls": {
"Issues": "https://github.com/Narwhalsss360/npycli/issues",
"Repository": "https://github.com/Narwhalsss360/npycli"
},
"split_keywords": [
"cli",
" npy",
" command line interface"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "9c37a84c0457d5320277e46c0950452f311fb5c45dc0d6c5fd33fc5ded96d20d",
"md5": "a01708d2f69e687051d01f3f32303eeb",
"sha256": "0bab80104b3f6a1e1e062dace306c46954c0cebebd15e32af5428b96622a99fa"
},
"downloads": -1,
"filename": "npycli-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a01708d2f69e687051d01f3f32303eeb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 15003,
"upload_time": "2025-08-23T20:35:05",
"upload_time_iso_8601": "2025-08-23T20:35:05.895366Z",
"url": "https://files.pythonhosted.org/packages/9c/37/a84c0457d5320277e46c0950452f311fb5c45dc0d6c5fd33fc5ded96d20d/npycli-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3d367d723a0eb1ec9b59a465bda67da1bf097d6c1c22eb60276b03a482283f67",
"md5": "25c841d4002f092bd61a7d5d3e9120a1",
"sha256": "6b8b2d8478d31979216b98d0035ba3eef3c3999a0e288baa20aa9de461623031"
},
"downloads": -1,
"filename": "npycli-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "25c841d4002f092bd61a7d5d3e9120a1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 28365,
"upload_time": "2025-08-23T20:35:07",
"upload_time_iso_8601": "2025-08-23T20:35:07.076362Z",
"url": "https://files.pythonhosted.org/packages/3d/36/7d723a0eb1ec9b59a465bda67da1bf097d6c1c22eb60276b03a482283f67/npycli-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-23 20:35:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Narwhalsss360",
"github_project": "npycli",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "npycli"
}