Nuclia Python Client
In order to install
pip install nuclia
Authentication
Nuclia
You can login with your Nuclia user How to sign-up via
nuclia auth login
Nuclia Knowledgebox
You can login to a specific knowledgebox if you have a Service Token (How to get a Service Token) or your NucliaDB is deployed on-premise
nuclia auth kb --url KB_URL --token SERVICE_TOKEN
KB_URL its the url of the Knowledge Box. On the cloud service you can retrieve it on the dashboard. On the on-premise/community deployment its the url mapped to it.
Nuclia Understanding API
You can login with a Nuclia Understanding API key to process files, predict and train using our system
nuclia auth nua --key ZZZZ
Guardrails
Account guardrail policies can be managed with the synchronous or asynchronous SDK:
from nuclia_models.accounts.guardrails import CreateGuardrailPolicy
from nuclia.sdk import NucliaGuardrails
guardrails = NucliaGuardrails()
policy = guardrails.create(
CreateGuardrailPolicy(
name="Safety policy",
instruction="Flag requests that ask for dangerous instructions.",
query="Does the request violate the safety policy?",
enabled=True,
blocking=True,
),
zone="europe-1",
)
Enabled account policies are evaluated automatically for Predict chat requests. Content can also be evaluated directly against a configured or inline policy:
from nuclia_models.predict.guardrails import GuardrailRequest
from nuclia.sdk import NucliaPredict
result = NucliaPredict().guardrail(
GuardrailRequest(
content="Content to evaluate",
policy_id=str(policy.id),
)
)
Policy violations always block chat generation. The blocking setting controls
failure handling: evaluation failures fail closed when enabled and fail open
when disabled.
Documentation
You can find the documentation here
For internal use
Find more information on the internal CI setup here
Metadata
Release files for nuclia 4.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nuclia-4.15.0.tar.gz | 402.5 kB | With provenance | Details for nuclia-4.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nuclia-4.15.0-py3-none-any.whl | Python 3 | none | any | Details for nuclia-4.15.0-py3-none-any.whl |
Total release size: 565.4 kB
Release files / nuclia-4.15.0.tar.gz
| Download URL | nuclia-4.15.0.tar.gz |
|---|---|
| Size | 402.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ab5c4e94ad4e62599ced38a2d88a713037c5a637f4429130a119d46c3f8e753
|
|
BLAKE2b-256 checksum How to use checksums |
b0f353782e234f8b552271ba82212efe04c49a3fb93cb4924510768bc3e4fc77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logRelease files / nuclia-4.15.0-py3-none-any.whl
| Download URL | nuclia-4.15.0-py3-none-any.whl |
|---|---|
| Size | 162.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
687b5a6a08f8367924c3db914aeb3551c53408d63f34b88c4520ff8a7bf3a973
|
|
BLAKE2b-256 checksum How to use checksums |
4bcb2d1f8d55d7fd9afb82faf2c842c2436f3ad1bdf301d6b7b434d508f2e648
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for nuclia 4.15.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nuclia-4.15.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.