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.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 nees-core-sdk 0.1.1
File Size Uploaded
nees_core_sdk-0.1.1.tar.gz 6.2 kB Details

Built distribution (wheel)

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

Total release size: 13.2 kB

Release files / nees_core_sdk-0.1.1.tar.gz

Download URL nees_core_sdk-0.1.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1a3f81e1f6d8f0ef3068088f47cf0154478013589a6acb71ec333e56bbb2a03d
BLAKE2b-256 checksum
How to use checksums
01177e5866b5775731118ed43c85eaf268673cefcd43d8f700c46b992f5040ea
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.1-py3-none-any.whl

Download URL nees_core_sdk-0.1.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d744dd10a53772aca65d068f146d34b4860f9735907ac25fc356cf6d31677694
BLAKE2b-256 checksum
How to use checksums
2c8cb15df6780da7210da9bbd23608f2931b7afa7f8598ca61e51f9b6f2754c8
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

0.2.0

2 release files

This release

0.1.1 This release

2 release files

0.1.0

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