neuranet


Nameneuranet JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryNeuraNET Python API library
upload_time2023-12-05 10:56:46
maintainer
docs_urlNone
authorDark25 (Ruben Roy)
requires_python
license
keywords ai machine learning neuranet
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 🌐 NeuraNET Python API library



The Official NeuraNET Python Library



---



## 🛠 Installation



To get started with the library, simply run the following command:



```bash

pip install neuranet

```



## 💬 Chat Usage

Using the Chat AIs library is straightforward. Below is an example of a conversation:

```python

import neuranet



api_key = "YOUR_API_KEY_HERE"

mode = 'chat'

client = neuranet.client(api_key, mode)



# Set up the conversation history and model

conversation_history = [

    {"sender": "instruct", "content": "You are a helpful assistant."},

    {"sender": "user", "content": "Hello."},

    {"sender": "assistant", "content": "Hello, how can I assist you?"},

    {"sender": "user", "content": "How are you?"}

]



model = "nlite"  # options: nlite, npro, npro-vision



# Get the response

try:

    response = client.generate(conversation_history, model)

    print(response)

except Exception as e:

    print(f"An error occurred: {e}")

```



## 🎨 Image Usage

Using the Image generation AIs library is straightforward. Below is an example of a conversation:

```python

import neuranet



api_key = "YOUR_API_KEY_HERE"

mode = 'image'

client = neuranet.client(api_key, mode)

model = "vinci-mini" # options: vinci-mini, vinci-max



prompt = "A large oak tree"



response = client.generate(prompt, model)

print(response)

```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "neuranet",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "ai,machine learning,neuranet",
    "author": "Dark25 (Ruben Roy)",
    "author_email": "me@ruben-roy.com",
    "download_url": "https://files.pythonhosted.org/packages/d5/4a/5b9cbd46e3b033042339ad1140056a15a301bd81f10f7f66938e6746ed77/neuranet-0.0.1.tar.gz",
    "platform": null,
    "description": "\r\n# \ud83c\udf10 NeuraNET Python API library\r\n\r\n\r\n\r\nThe Official NeuraNET Python Library\r\n\r\n\r\n\r\n---\r\n\r\n\r\n\r\n## \ud83d\udee0 Installation\r\n\r\n\r\n\r\nTo get started with the library, simply run the following command:\r\n\r\n\r\n\r\n```bash\r\n\r\npip install neuranet\r\n\r\n```\r\n\r\n\r\n\r\n## \ud83d\udcac Chat Usage\r\n\r\nUsing the Chat AIs library is straightforward. Below is an example of a conversation:\r\n\r\n```python\r\n\r\nimport neuranet\r\n\r\n\r\n\r\napi_key = \"YOUR_API_KEY_HERE\"\r\n\r\nmode = 'chat'\r\n\r\nclient = neuranet.client(api_key, mode)\r\n\r\n\r\n\r\n# Set up the conversation history and model\r\n\r\nconversation_history = [\r\n\r\n    {\"sender\": \"instruct\", \"content\": \"You are a helpful assistant.\"},\r\n\r\n    {\"sender\": \"user\", \"content\": \"Hello.\"},\r\n\r\n    {\"sender\": \"assistant\", \"content\": \"Hello, how can I assist you?\"},\r\n\r\n    {\"sender\": \"user\", \"content\": \"How are you?\"}\r\n\r\n]\r\n\r\n\r\n\r\nmodel = \"nlite\"  # options: nlite, npro, npro-vision\r\n\r\n\r\n\r\n# Get the response\r\n\r\ntry:\r\n\r\n    response = client.generate(conversation_history, model)\r\n\r\n    print(response)\r\n\r\nexcept Exception as e:\r\n\r\n    print(f\"An error occurred: {e}\")\r\n\r\n```\r\n\r\n\r\n\r\n## \ud83c\udfa8 Image Usage\r\n\r\nUsing the Image generation AIs library is straightforward. Below is an example of a conversation:\r\n\r\n```python\r\n\r\nimport neuranet\r\n\r\n\r\n\r\napi_key = \"YOUR_API_KEY_HERE\"\r\n\r\nmode = 'image'\r\n\r\nclient = neuranet.client(api_key, mode)\r\n\r\nmodel = \"vinci-mini\" # options: vinci-mini, vinci-max\r\n\r\n\r\n\r\nprompt = \"A large oak tree\"\r\n\r\n\r\n\r\nresponse = client.generate(prompt, model)\r\n\r\nprint(response)\r\n\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "NeuraNET Python API library",
    "version": "0.0.1",
    "project_urls": null,
    "split_keywords": [
        "ai",
        "machine learning",
        "neuranet"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "46dc6794f44aa2156ec73a43fbd9cb8ca5b775883a26d7f4354636071559a9ab",
                "md5": "e7deb3a0043b4f81c36c86f76b926491",
                "sha256": "da73897402d5ea1720c406ce8cd43aa9f2576af5b72af15097399d7891ac415b"
            },
            "downloads": -1,
            "filename": "neuranet-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e7deb3a0043b4f81c36c86f76b926491",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2810,
            "upload_time": "2023-12-05T10:56:44",
            "upload_time_iso_8601": "2023-12-05T10:56:44.340141Z",
            "url": "https://files.pythonhosted.org/packages/46/dc/6794f44aa2156ec73a43fbd9cb8ca5b775883a26d7f4354636071559a9ab/neuranet-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d54a5b9cbd46e3b033042339ad1140056a15a301bd81f10f7f66938e6746ed77",
                "md5": "e39ad3d69fd318ced75af7b0dd5e560d",
                "sha256": "29337b5e753377cd13b2d6ec867b1d4ed8e9cac06a6f7eea6c4775915ecbe654"
            },
            "downloads": -1,
            "filename": "neuranet-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e39ad3d69fd318ced75af7b0dd5e560d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2790,
            "upload_time": "2023-12-05T10:56:46",
            "upload_time_iso_8601": "2023-12-05T10:56:46.283602Z",
            "url": "https://files.pythonhosted.org/packages/d5/4a/5b9cbd46e3b033042339ad1140056a15a301bd81f10f7f66938e6746ed77/neuranet-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-05 10:56:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "neuranet"
}
        
Elapsed time: 0.62349s