bettercli


Namebettercli JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/r5dan/better-cli
SummaryA better CLI library
upload_time2025-01-18 13:04:26
maintainerNone
docs_urlNone
authorR5dan
requires_pythonNone
licenseMIT
keywords cli command line command-line interface library tool better python python3 cli-library cli-tool cli-interface cli-library better-cli
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # BetterCLI

A Python library for building better command-line interfaces with ease.

## Installation
You can install BetterCLI using pip:

```bash
pip install bettercli
```

## Example

```python
from bettercli import CLI, pos_option, kw_option

cli = CLI()

@cli.command("greet")
def greet(name):
    print(f"Hello {name}!")
    
@pos_option("name", str, length=1, default="World")
@cli.command("greet")
def greet(name):
    print(f"Hello {name}!")
```

## License
BetterCLI is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/r5dan/better-cli",
    "name": "bettercli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "cli, command line, command-line, interface, library, tool, better, python, python3, cli-library, cli-tool, cli-interface, cli-library, better-cli",
    "author": "R5dan",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/d0/2c/77cecab76cdb43ea65b10fb9b1e63b25685d225f44b6d3be7e46c12581fe/bettercli-0.1.0.tar.gz",
    "platform": "any",
    "description": "# BetterCLI\n\nA Python library for building better command-line interfaces with ease.\n\n## Installation\nYou can install BetterCLI using pip:\n\n```bash\npip install bettercli\n```\n\n## Example\n\n```python\nfrom bettercli import CLI, pos_option, kw_option\n\ncli = CLI()\n\n@cli.command(\"greet\")\ndef greet(name):\n    print(f\"Hello {name}!\")\n    \n@pos_option(\"name\", str, length=1, default=\"World\")\n@cli.command(\"greet\")\ndef greet(name):\n    print(f\"Hello {name}!\")\n```\n\n## License\nBetterCLI is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A better CLI library",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/r5dan/better-cli"
    },
    "split_keywords": [
        "cli",
        " command line",
        " command-line",
        " interface",
        " library",
        " tool",
        " better",
        " python",
        " python3",
        " cli-library",
        " cli-tool",
        " cli-interface",
        " cli-library",
        " better-cli"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d34b3d8d7e7f64adaaa11dd6807cb1bfc1830f79622c0326f9bef02a4f9d2b7",
                "md5": "ae2e32325aaf742e615ecc1625d74532",
                "sha256": "1d31e57555d09ca78c122bb8e9ffadc287dffb41ff96306be030043ff74dffd8"
            },
            "downloads": -1,
            "filename": "bettercli-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ae2e32325aaf742e615ecc1625d74532",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10250,
            "upload_time": "2025-01-18T13:04:24",
            "upload_time_iso_8601": "2025-01-18T13:04:24.879259Z",
            "url": "https://files.pythonhosted.org/packages/1d/34/b3d8d7e7f64adaaa11dd6807cb1bfc1830f79622c0326f9bef02a4f9d2b7/bettercli-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d02c77cecab76cdb43ea65b10fb9b1e63b25685d225f44b6d3be7e46c12581fe",
                "md5": "37ed4f3c08c5aeac68fc3fa6ec922a38",
                "sha256": "d7c2851fb22d4a724a31e78307678e79e871cff7705e75e48c34ba66085bb07a"
            },
            "downloads": -1,
            "filename": "bettercli-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "37ed4f3c08c5aeac68fc3fa6ec922a38",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8670,
            "upload_time": "2025-01-18T13:04:26",
            "upload_time_iso_8601": "2025-01-18T13:04:26.783503Z",
            "url": "https://files.pythonhosted.org/packages/d0/2c/77cecab76cdb43ea65b10fb9b1e63b25685d225f44b6d3be7e46c12581fe/bettercli-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-18 13:04:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "r5dan",
    "github_project": "better-cli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "bettercli"
}
        
Elapsed time: 0.53431s