npycli


Namenpycli JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryCLI program helper/framework
upload_time2024-08-27 02:52:17
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseNone
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/e3/6e/a575ef86e5b129d1b4c632457dd0fb53ed1d34557ed4af2e5fcb2979f60b/npycli-0.1.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.1.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": "",
            "digests": {
                "blake2b_256": "8ed2ea6463429a2f3b007d26fe0c0375b0d725c29b5082ef26e2b17e83a3be12",
                "md5": "0445c5ac1c04c0e140be452b9b055368",
                "sha256": "73b6da3ee6b2634ecaa9974c7c90e25e8bbaf895e8354e9eda9c01d3135a3508"
            },
            "downloads": -1,
            "filename": "npycli-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0445c5ac1c04c0e140be452b9b055368",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8854,
            "upload_time": "2024-08-27T02:52:15",
            "upload_time_iso_8601": "2024-08-27T02:52:15.073626Z",
            "url": "https://files.pythonhosted.org/packages/8e/d2/ea6463429a2f3b007d26fe0c0375b0d725c29b5082ef26e2b17e83a3be12/npycli-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e36ea575ef86e5b129d1b4c632457dd0fb53ed1d34557ed4af2e5fcb2979f60b",
                "md5": "e1b4065f7f4b8af3deed3139cf1fc17a",
                "sha256": "c31d2aeb81d33ff643a16532b4c8f07ec72c1a948ef7d6f02444139ff1d0595e"
            },
            "downloads": -1,
            "filename": "npycli-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e1b4065f7f4b8af3deed3139cf1fc17a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 20545,
            "upload_time": "2024-08-27T02:52:17",
            "upload_time_iso_8601": "2024-08-27T02:52:17.510624Z",
            "url": "https://files.pythonhosted.org/packages/e3/6e/a575ef86e5b129d1b4c632457dd0fb53ed1d34557ed4af2e5fcb2979f60b/npycli-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-27 02:52:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Narwhalsss360",
    "github_project": "npycli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "npycli"
}
        
Elapsed time: 0.83631s