Nebula Python SDK (autogenerated)
Project description
nebula-sdk
Official Nebula API SDK for Python. Provides typed async access to the public Nebula REST API: collections, memories, connectors, snapshots, and system health.
Install
# Stable
pip install nebula-sdk
# Preview (next iteration, RC versions)
pip install --pre nebula-sdk
Pre-launch: The public surface is still being shaped. Plain semver releases (
1.6.0,1.7.0, …) are stable. Iteration ships as PEP 440 pre-release versions (1.6.0rc1,rc2, …) which pip's default resolver excludes —pip install nebula-sdkgets stable;--preopts in to the iteration channel. Version specifiers likenebula-sdk>=1.6.0,<2.0.0likewise exclude pre-releases unless the specifier itself names one.
Quick start
import asyncio
from nebula import Nebula, ClientOptions
async def main() -> None:
async with Nebula(ClientOptions(api_key="...")) as client:
memory_id = await client.store_memory(
collection_id="01234567-...",
raw_text="hello, world",
)
results = await client.memories.search(body={"query": "hello"})
print(results)
asyncio.run(main())
This SDK is async-first. If you need to call it from a sync context, wrap
each call with asyncio.run(...). A dedicated sync client is not currently
provided.
Auth
Pass either api_key (for Nebula API keys) or bearer_token (for JWTs)
when constructing the client. If you pass an opaque-looking token via
api_key (one that isn't prefixed with key_ or neb_), the DX layer
automatically routes it through the Authorization: Bearer header
instead — handy when your app exchanges a workspace token for the SDK
and doesn't want to think about which header to use.
async with Nebula(ClientOptions(api_key="...")) as client:
...
async with Nebula(ClientOptions(bearer_token="...")) as client:
...
Errors
All HTTP errors map to a typed exception hierarchy:
NebulaBadRequestError(400)NebulaUnauthorizedError(401)NebulaForbiddenError(403)NebulaNotFoundError(404)NebulaConflictError(409)NebulaValidationError(422)NebulaRateLimitError(429) — carriesretry_afterwhen the server returnsRetry-AfterNebulaServerError(5xx)NebulaConnectionError/NebulaTimeoutError— transport-level
Docs
- API reference: https://docs.zeroset.com
- Migration notes: see
MIGRATION.mdin the source repo
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nebula_sdk-1.6.0rc0.tar.gz.
File metadata
- Download URL: nebula_sdk-1.6.0rc0.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
797a129e6d5d7329f83334dbee9a02f2df7fae1d80196335970dc35b11980c9e
|
|
| MD5 |
2e0866e17191d519e7ec9d7759de8b45
|
|
| BLAKE2b-256 |
13aa3e9213fedbf078d8343b0c36c7e6a74a2cdd59f0be8538106588611ffaf5
|
Provenance
The following attestation bundles were made for nebula_sdk-1.6.0rc0.tar.gz:
Publisher:
publish-pypi.yml on zeroset-inc/nebula-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nebula_sdk-1.6.0rc0.tar.gz -
Subject digest:
797a129e6d5d7329f83334dbee9a02f2df7fae1d80196335970dc35b11980c9e - Sigstore transparency entry: 1631318833
- Sigstore integration time:
-
Permalink:
zeroset-inc/nebula-python@73e22562c911ad5e140f11ce350eddcb0fb4f8db -
Branch / Tag:
refs/tags/v1.6.0-rc.0 - Owner: https://github.com/zeroset-inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@73e22562c911ad5e140f11ce350eddcb0fb4f8db -
Trigger Event:
release
-
Statement type:
File details
Details for the file nebula_sdk-1.6.0rc0-py3-none-any.whl.
File metadata
- Download URL: nebula_sdk-1.6.0rc0-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee481c546d6e4f0bbbf93560f541367dbd58e24b2e5e0a1c580a8e3e65e2f84
|
|
| MD5 |
31b8e4c2e1bb4a9f252af779159eb400
|
|
| BLAKE2b-256 |
89b2d3004335ee8deb624372f50e6c9843a7429fbd702133f04293eb6139c56a
|
Provenance
The following attestation bundles were made for nebula_sdk-1.6.0rc0-py3-none-any.whl:
Publisher:
publish-pypi.yml on zeroset-inc/nebula-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nebula_sdk-1.6.0rc0-py3-none-any.whl -
Subject digest:
1ee481c546d6e4f0bbbf93560f541367dbd58e24b2e5e0a1c580a8e3e65e2f84 - Sigstore transparency entry: 1631318845
- Sigstore integration time:
-
Permalink:
zeroset-inc/nebula-python@73e22562c911ad5e140f11ce350eddcb0fb4f8db -
Branch / Tag:
refs/tags/v1.6.0-rc.0 - Owner: https://github.com/zeroset-inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@73e22562c911ad5e140f11ce350eddcb0fb4f8db -
Trigger Event:
release
-
Statement type: