ghostai


Nameghostai JSON
Version 1.3.1 PyPI version JSON
download
home_pagehttps://github.com/The-UnknownHacker/ghostaiapi
SummaryA Python library for interacting with the GhostAI API
upload_time2024-03-27 02:51:29
maintainerNone
docs_urlNone
authorCyberZenDev
requires_python>=3.6
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # GhostAI

[![PyPI version](https://badge.fury.io/py/ghostaiapi.svg)](https://badge.fury.io/py/ghostaiapi)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Python library for interacting with the GhostAI API.

## Installation

You can install `ghostai` via pip:

```
pip install ghostai
```

## Usage

```python
import ghostai

# Example usage for ghostai
chat("api_key", "model", "prompt") # Model is either chat or img

# Api key can be found by emailing
# cyberzendev@gmail.com


# Example usage for generating a chat
response = chat("api_key", "chat", "prompt")

print(response)

# Example usage for generating an image

import ghostai

# Define your API key and model
api_key = "YOUR_API_KEY"
model = "YOUR_MODEL"

# Send a message and receive the response with an image
message = "Your prompt here"
decoded_image = ghostai.chat_with_image(api_key, model, message)

# Display the decoded image
if decoded_image:
    decoded_image.show()
else:
    print("Failed to receive or decode the image.")

```

## API Key

You need to obtain an API key from GhostAI to use this library. Visit [GhostAI](https://ghostai.me) for more information.

## License

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/The-UnknownHacker/ghostaiapi",
    "name": "ghostai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "CyberZenDev",
    "author_email": "cyberzendev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/58/4e/ac86a882fa42b7ba7b58ec8a60feaea94c138f1f15ca005eaa1fefab3aa1/ghostai-1.3.1.tar.gz",
    "platform": null,
    "description": "# GhostAI\r\n\r\n[![PyPI version](https://badge.fury.io/py/ghostaiapi.svg)](https://badge.fury.io/py/ghostaiapi)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n\r\nPython library for interacting with the GhostAI API.\r\n\r\n## Installation\r\n\r\nYou can install `ghostai` via pip:\r\n\r\n```\r\npip install ghostai\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nimport ghostai\r\n\r\n# Example usage for ghostai\r\nchat(\"api_key\", \"model\", \"prompt\") # Model is either chat or img\r\n\r\n# Api key can be found by emailing\r\n# cyberzendev@gmail.com\r\n\r\n\r\n# Example usage for generating a chat\r\nresponse = chat(\"api_key\", \"chat\", \"prompt\")\r\n\r\nprint(response)\r\n\r\n# Example usage for generating an image\r\n\r\nimport ghostai\r\n\r\n# Define your API key and model\r\napi_key = \"YOUR_API_KEY\"\r\nmodel = \"YOUR_MODEL\"\r\n\r\n# Send a message and receive the response with an image\r\nmessage = \"Your prompt here\"\r\ndecoded_image = ghostai.chat_with_image(api_key, model, message)\r\n\r\n# Display the decoded image\r\nif decoded_image:\r\n    decoded_image.show()\r\nelse:\r\n    print(\"Failed to receive or decode the image.\")\r\n\r\n```\r\n\r\n## API Key\r\n\r\nYou need to obtain an API key from GhostAI to use this library. Visit [GhostAI](https://ghostai.me) for more information.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python library for interacting with the GhostAI API",
    "version": "1.3.1",
    "project_urls": {
        "Homepage": "https://github.com/The-UnknownHacker/ghostaiapi"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "045949431ce08adad01672e70e5f99888ba4837e3a18a962864b78e264646885",
                "md5": "425410fa44d5461c83ce8d6a8b72e29a",
                "sha256": "f90e273a4bad5cc125929beb0441ecb9fc445df254aee33cd6a925263c2b4ef5"
            },
            "downloads": -1,
            "filename": "ghostai-1.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "425410fa44d5461c83ce8d6a8b72e29a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2572,
            "upload_time": "2024-03-27T02:51:27",
            "upload_time_iso_8601": "2024-03-27T02:51:27.300779Z",
            "url": "https://files.pythonhosted.org/packages/04/59/49431ce08adad01672e70e5f99888ba4837e3a18a962864b78e264646885/ghostai-1.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "584eac86a882fa42b7ba7b58ec8a60feaea94c138f1f15ca005eaa1fefab3aa1",
                "md5": "6cdf9a6346171a98ae0082b83307676b",
                "sha256": "e9aafa458f0771a79e8ae4e875cf8974a0d30b69896b8875c4cc9b7ab9c0b981"
            },
            "downloads": -1,
            "filename": "ghostai-1.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6cdf9a6346171a98ae0082b83307676b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2397,
            "upload_time": "2024-03-27T02:51:29",
            "upload_time_iso_8601": "2024-03-27T02:51:29.067684Z",
            "url": "https://files.pythonhosted.org/packages/58/4e/ac86a882fa42b7ba7b58ec8a60feaea94c138f1f15ca005eaa1fefab3aa1/ghostai-1.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-27 02:51:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "The-UnknownHacker",
    "github_project": "ghostaiapi",
    "github_not_found": true,
    "lcname": "ghostai"
}
        
Elapsed time: 0.37558s