Skip to main content

NEES Python SDK

The NEES Python SDK is the official Python client for connecting applications to NEES governed AI runtime services. SDK v0.1 currently exposes only the authenticated chat capability.

Install

pip install nees-core-sdk

The PyPI distribution is nees-core-sdk; the Python import package is nees.

Python 3.9 or newer is required.

Quickstart

Trial API keys are currently issued manually by Nainacore.

Windows PowerShell:

$env:NEES_API_KEY="..."

Linux/macOS:

export NEES_API_KEY="..."
from nees import NEESClient

client = NEESClient()
result = client.chat("Reply with exactly: NEES SDK connected")
print(result.reply)

To configure a different endpoint or timeout:

client = NEESClient(api_key="...", base_url="https://api.nees.cloud", timeout=30)

The SDK requires HTTPS for remote endpoints. Plain HTTP is accepted only for localhost development.

The SDK currently supports only chat:invoke.

Response boundary

The SDK exposes a deliberately limited public response model: reply/session identifiers, request and trace identifiers, and selected public governance fields. Unrecognized API response fields are not surfaced by the SDK.

Errors

Catch NEESAPIError for all API failures, or a specific exported subclass such as NEESAuthenticationError, NEESAuthorizationError, and NEESRateLimitError.

License

The SDK is distributed under the Nainacore SDK Proprietary License included with this package. This license applies to the SDK only and does not grant rights in the NEES Core Engine or other service-side technology.

Release files for nees-core-sdk 0.1.0

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

Source distribution (sdist)

Source distribution for nees-core-sdk 0.1.0
File Size Uploaded
nees_core_sdk-0.1.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nees-core-sdk 0.1.0
File Interpreter ABI Platform
nees_core_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / nees_core_sdk-0.1.0.tar.gz

Download URL nees_core_sdk-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a068c26b2eab74f654e3b8c00f4fc5f4dd8056d8fcfc0e42907c9f06efab194
BLAKE2b-256 checksum
How to use checksums
e57f26a52f1c6686cab8d44dddcbddb194a18edba185f82acd255d2b26823bed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / nees_core_sdk-0.1.0-py3-none-any.whl

Download URL nees_core_sdk-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e19b8015ef863f2be4e8cfc3ff9d968cb21b7a26629143ae5110528483833f7
BLAKE2b-256 checksum
How to use checksums
1e36084f3444be51c3d43a6863a57ca7a9082c99efec6953066994d00a158084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.0 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