one-api-cli


Nameone-api-cli JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
SummaryA CLI tool for the One API project.
upload_time2024-08-10 06:18:46
maintainerNone
docs_urlNone
authorNone
requires_python<3.12,>=3.9
licenseMIT License Copyright (c) 2023 RexWang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords oneapi cli tool
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # One API CLI

<a href="https://pypi.python.org/pypi/one-api-cli">
    <img src="https://img.shields.io/pypi/v/one-api-cli.svg" alt="PyPI version" />
</a>
<a href="https://github.com/RexWzh/one-api-cli/actions/workflows/test.yml">
    <img src="https://github.com/RexWzh/one-api-cli/actions/workflows/test.yml/badge.svg" alt="Tests" />
</a>
<a href="https://rexwzh.github.io/one-api-cli/">
    <img src="https://img.shields.io/badge/docs-github_pages-blue.svg" alt="Documentation Status" />
</a>
<a href="https://codecov.io/gh/RexWzh/one-api-cli">
    <img src="https://codecov.io/gh/RexWzh/one-api-cli/branch/main/graph/badge.svg" alt="Coverage" />
</a>

A Python CLI for the [One API](https://github.com/songquanpeng/one-api) project.

## Setup

Install the package using pip:

```bash
pip install one-api-cli
```

Setup environment variables:

```bash
export ONE_API_BASE_URL=https://your_base_url
export ONE_API_ACCESS_TOKEN=your_access_token # Optional
export ONE_API_SESSION_TOKEN=your_session_token # Optional
```

## Usage

See examples in [Jupyter notebooks](demo/one-api.ipynb).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "one-api-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.9",
    "maintainer_email": null,
    "keywords": "oneapi, cli, tool",
    "author": null,
    "author_email": "Rex Wang <1073853456@qq.com>",
    "download_url": "https://files.pythonhosted.org/packages/2c/d1/c2587590470d627580f7146ac86e3425efe2b2b4160f957bf143ae108a01/one_api_cli-0.2.1.tar.gz",
    "platform": null,
    "description": "# One API CLI\n\n<a href=\"https://pypi.python.org/pypi/one-api-cli\">\n    <img src=\"https://img.shields.io/pypi/v/one-api-cli.svg\" alt=\"PyPI version\" />\n</a>\n<a href=\"https://github.com/RexWzh/one-api-cli/actions/workflows/test.yml\">\n    <img src=\"https://github.com/RexWzh/one-api-cli/actions/workflows/test.yml/badge.svg\" alt=\"Tests\" />\n</a>\n<a href=\"https://rexwzh.github.io/one-api-cli/\">\n    <img src=\"https://img.shields.io/badge/docs-github_pages-blue.svg\" alt=\"Documentation Status\" />\n</a>\n<a href=\"https://codecov.io/gh/RexWzh/one-api-cli\">\n    <img src=\"https://codecov.io/gh/RexWzh/one-api-cli/branch/main/graph/badge.svg\" alt=\"Coverage\" />\n</a>\n\nA Python CLI for the [One API](https://github.com/songquanpeng/one-api) project.\n\n## Setup\n\nInstall the package using pip:\n\n```bash\npip install one-api-cli\n```\n\nSetup environment variables:\n\n```bash\nexport ONE_API_BASE_URL=https://your_base_url\nexport ONE_API_ACCESS_TOKEN=your_access_token # Optional\nexport ONE_API_SESSION_TOKEN=your_session_token # Optional\n```\n\n## Usage\n\nSee examples in [Jupyter notebooks](demo/one-api.ipynb).\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 RexWang  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A CLI tool for the One API project.",
    "version": "0.2.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/rexwzh/one-api-cli/issues"
    },
    "split_keywords": [
        "oneapi",
        " cli",
        " tool"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "71095dbf4239675931774f1f2f0972740d1a4c26d5f4affe0fd739eebafb9d78",
                "md5": "636b394b22dedd1e95abcefd325d6023",
                "sha256": "52d8d22197e1f7f9f0124ffd1f68de2e0ab441595ba5825be4f0b3357a07b307"
            },
            "downloads": -1,
            "filename": "one_api_cli-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "636b394b22dedd1e95abcefd325d6023",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.9",
            "size": 6579,
            "upload_time": "2024-08-10T06:18:44",
            "upload_time_iso_8601": "2024-08-10T06:18:44.640682Z",
            "url": "https://files.pythonhosted.org/packages/71/09/5dbf4239675931774f1f2f0972740d1a4c26d5f4affe0fd739eebafb9d78/one_api_cli-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2cd1c2587590470d627580f7146ac86e3425efe2b2b4160f957bf143ae108a01",
                "md5": "d9799d634bb4dbbe2345232845174b78",
                "sha256": "6e359696f4945edfb7e058c13eb774a8323029c2e0d1de8b7664f9c4f23e5bb2"
            },
            "downloads": -1,
            "filename": "one_api_cli-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d9799d634bb4dbbe2345232845174b78",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.9",
            "size": 6157,
            "upload_time": "2024-08-10T06:18:46",
            "upload_time_iso_8601": "2024-08-10T06:18:46.068247Z",
            "url": "https://files.pythonhosted.org/packages/2c/d1/c2587590470d627580f7146ac86e3425efe2b2b4160f957bf143ae108a01/one_api_cli-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-10 06:18:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rexwzh",
    "github_project": "one-api-cli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "one-api-cli"
}
        
Elapsed time: 4.41601s