clashai


Nameclashai JSON
Version 1.0.5 PyPI version JSON
download
home_pageNone
SummaryAn API wrapper for the ClashAI API
upload_time2024-10-01 14:36:46
maintainerNone
docs_urlNone
authorlndrdev, invalidsian
requires_python>=3.9
licenseMIT
keywords clash-ai clashai api clashapi clashai ai gpt llama mixtral gemini
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![ClashAI Wide-Banner](https://i.ibb.co/xMHXC9M/Clash-AI-Wide-Banner-No-Background.png)
# 🚀 | ClashAI Python Package
**ClashAI Python Package for easy API integration!**

## Installation
```python
pip install clashai
```

## Chat Completions
```python
import clashai

client = clashai.Client(api_key="[YOUR API KEY]")
completion = client.chat.completions.create(
    messages=[
        {
            "role": "user",
            "content": "Hello, World!",
        }
    ]
)

print(completion['choices'][0]['message']['content'])
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "clashai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "clash-ai, clashai, api, clashapi, clashai, ai, gpt, llama, mixtral, gemini",
    "author": "lndrdev, invalidsian",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/3b/16/c7ee56ee4c43f96087e416227f85cd113e2be32c5c7dd2e4cefa55a06d0d/clashai-1.0.5.tar.gz",
    "platform": null,
    "description": "![ClashAI Wide-Banner](https://i.ibb.co/xMHXC9M/Clash-AI-Wide-Banner-No-Background.png)\r\n# \ud83d\ude80 | ClashAI Python Package\r\n**ClashAI Python Package for easy API integration!**\r\n\r\n## Installation\r\n```python\r\npip install clashai\r\n```\r\n\r\n## Chat Completions\r\n```python\r\nimport clashai\r\n\r\nclient = clashai.Client(api_key=\"[YOUR API KEY]\")\r\ncompletion = client.chat.completions.create(\r\n    messages=[\r\n        {\r\n            \"role\": \"user\",\r\n            \"content\": \"Hello, World!\",\r\n        }\r\n    ]\r\n)\r\n\r\nprint(completion['choices'][0]['message']['content'])\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An API wrapper for the ClashAI API",
    "version": "1.0.5",
    "project_urls": {
        "Documentation": "https://clashai.readthedocs.io",
        "GitHub": "https://github.com/clashai/clashai"
    },
    "split_keywords": [
        "clash-ai",
        " clashai",
        " api",
        " clashapi",
        " clashai",
        " ai",
        " gpt",
        " llama",
        " mixtral",
        " gemini"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9616a7c4d90314308936f78cb8ed5cb6a024b156fdaf9270dd70c6890f80389e",
                "md5": "8997849205dd3754f7599886f54dc783",
                "sha256": "b533a3fd163aab49c4ab93ef5c5f05268cb9612b9276e76fd200bbc4b0c0a219"
            },
            "downloads": -1,
            "filename": "clashai-1.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8997849205dd3754f7599886f54dc783",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 2212,
            "upload_time": "2024-10-01T14:36:44",
            "upload_time_iso_8601": "2024-10-01T14:36:44.616399Z",
            "url": "https://files.pythonhosted.org/packages/96/16/a7c4d90314308936f78cb8ed5cb6a024b156fdaf9270dd70c6890f80389e/clashai-1.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b16c7ee56ee4c43f96087e416227f85cd113e2be32c5c7dd2e4cefa55a06d0d",
                "md5": "1624a96888480ab299fb9a773019c9cd",
                "sha256": "2e34cd00dfcc9569b35cb0b6aec3877bb02d5d8ea477c96d661543d31aa6c342"
            },
            "downloads": -1,
            "filename": "clashai-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "1624a96888480ab299fb9a773019c9cd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 2283,
            "upload_time": "2024-10-01T14:36:46",
            "upload_time_iso_8601": "2024-10-01T14:36:46.301323Z",
            "url": "https://files.pythonhosted.org/packages/3b/16/c7ee56ee4c43f96087e416227f85cd113e2be32c5c7dd2e4cefa55a06d0d/clashai-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-01 14:36:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "clashai",
    "github_project": "clashai",
    "github_not_found": true,
    "lcname": "clashai"
}
        
Elapsed time: 1.72896s