gearmind-sdk


Namegearmind-sdk JSON
Version 0.0.post1 PyPI version JSON
download
home_pageNone
SummaryA Python SDK for interacting with the GearMind API
upload_time2024-09-11 13:36:25
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT
keywords gearmind api sdk
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # GearMind SDK

A Python SDK for interacting with the GearMind API.

## Installation

```bash
pip install gearmind-sdk
```

## Usage

```python
from gearmind_sdk import GearMindSDK, Message

sdk = GearMindSDK(api_key="your_api_key_here")
messages = [
    Message(role="user", content="Hello, how are you?")
]

try:
    response = sdk.chat(messages)
    print(f"Assistant: {response.content}")
except GearMindError as e:
    print(f"Error: {e}")
    if e.status_code:
        print(f"Status code: {e.status_code}")
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gearmind-sdk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "gearmind, api, sdk",
    "author": null,
    "author_email": "Patcharaphon Srida <muc5674@gmail.com>",
    "download_url": null,
    "platform": null,
    "description": "# GearMind SDK\n\nA Python SDK for interacting with the GearMind API.\n\n## Installation\n\n```bash\npip install gearmind-sdk\n```\n\n## Usage\n\n```python\nfrom gearmind_sdk import GearMindSDK, Message\n\nsdk = GearMindSDK(api_key=\"your_api_key_here\")\nmessages = [\n    Message(role=\"user\", content=\"Hello, how are you?\")\n]\n\ntry:\n    response = sdk.chat(messages)\n    print(f\"Assistant: {response.content}\")\nexcept GearMindError as e:\n    print(f\"Error: {e}\")\n    if e.status_code:\n        print(f\"Status code: {e.status_code}\")\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python SDK for interacting with the GearMind API",
    "version": "0.0.post1",
    "project_urls": {
        "Bug Tracker": "https://github.com/mengsokool/gearmind-sdk-python/issues",
        "Homepage": "https://github.com/mengsokool/gearmind-sdk-python"
    },
    "split_keywords": [
        "gearmind",
        " api",
        " sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e52876851910508ae7820f25bea90112701e2470387c5b2a024d1669c8ec14c",
                "md5": "ee9a7abe99e58ebbb5b620e49589646c",
                "sha256": "95281fa5a79f5fecdae9b1a336c857856e01f0b6c52b3645349f123a419dc532"
            },
            "downloads": -1,
            "filename": "gearmind_sdk-0.0.post1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ee9a7abe99e58ebbb5b620e49589646c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4016,
            "upload_time": "2024-09-11T13:36:25",
            "upload_time_iso_8601": "2024-09-11T13:36:25.370385Z",
            "url": "https://files.pythonhosted.org/packages/0e/52/876851910508ae7820f25bea90112701e2470387c5b2a024d1669c8ec14c/gearmind_sdk-0.0.post1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-11 13:36:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mengsokool",
    "github_project": "gearmind-sdk-python",
    "github_not_found": true,
    "lcname": "gearmind-sdk"
}
        
Elapsed time: 0.89836s