Skip to main content

The official Python SDK for the NeuroCLI API

Project description

NeuroCLI Python SDK

The official Python library for the NeuroCLI API.

Installation

You can install this SDK locally:

pip install -e .

Usage

The SDK mimics the standard OpenAI Python client interface, making it extremely easy to drop into existing AI applications.

Basic Chat Completion

import neurocli

# Initialize the client
client = neurocli.NeuroCLI(
    api_key="ncli_YOUR_SECRET_KEY",
    # During local testing, point this to your local server:
    # base_url="http://127.0.0.1:8000/api/ai" 
)

# Generate a response
response = client.chat.completions.create(
    model="meta/llama-3.1-8b-instruct",
    messages=[
        {"role": "user", "content": "Explain quantum computing in simple terms."}
    ],
    temperature=0.7
)

print(response.choices[0].message.content)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neurocli_sdk-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neurocli_sdk-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file neurocli_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: neurocli_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for neurocli_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2bd6feeeee894b03798e27f42b64bb7abfddf1107de2340af36229a8349eec61
MD5 f646e7f6e679f1d669192c9d65d2fa7a
BLAKE2b-256 982a476f548c44e6059ee15ccfb95e51183c33aa713918f37a4f9105476136e7

See more details on using hashes here.

File details

Details for the file neurocli_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: neurocli_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for neurocli_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bdac28dd2bfb01cee2b4f685f504521eaddf3307b55b38564e9decf19fe59b7
MD5 156b00d8c6012be77997d560b3f194ad
BLAKE2b-256 89f7086cd23566b4817f6e0172680dabdef267bafc60ea71577a326817d9d856

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page