Skip to main content

🌐 NeuraNET Python API library

The Official NeuraNET Python Library


🛠 Installation

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

pip install neuranet

💬 Chat Usage

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

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:

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)

Release files for neuranet 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuranet 0.0.1
File Size Uploaded
neuranet-0.0.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neuranet 0.0.1
File Interpreter ABI Platform
neuranet-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size:5.6 kB

Release files / neuranet-0.0.1.tar.gz

Download URL neuranet-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
29337b5e753377cd13b2d6ec867b1d4ed8e9cac06a6f7eea6c4775915ecbe654
BLAKE2b-256 checksum
How to use checksums
d54a5b9cbd46e3b033042339ad1140056a15a301bd81f10f7f66938e6746ed77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / neuranet-0.0.1-py3-none-any.whl

Download URL neuranet-0.0.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da73897402d5ea1720c406ce8cd43aa9f2576af5b72af15097399d7891ac415b
BLAKE2b-256 checksum
How to use checksums
46dc6794f44aa2156ec73a43fbd9cb8ca5b775883a26d7f4354636071559a9ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page