Skip to main content

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-sdk gets stable; --pre opts in to the iteration channel. Version specifiers like nebula-sdk>=1.6.0,<2.0.0 likewise 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) — carries retry_after when the server returns Retry-After
  • NebulaServerError (5xx)
  • NebulaConnectionError / NebulaTimeoutError — transport-level

Docs

License

MIT

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

nebula_sdk-1.6.1.tar.gz (46.4 kB view details)

Uploaded Source

Built Distribution

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

nebula_sdk-1.6.1-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file nebula_sdk-1.6.1.tar.gz.

File metadata

  • Download URL: nebula_sdk-1.6.1.tar.gz
  • Upload date:
  • Size: 46.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nebula_sdk-1.6.1.tar.gz
Algorithm Hash digest
SHA256 9d47ef3344d0af3afcaad3f86ccb5c48bc1f6c4b76e2451d20d4b6250e05550d
MD5 0376a8b3d9d0a1c6a0fd8581927732bc
BLAKE2b-256 d88505bf60fa0f905de2893e39863ab2b137eb64d7aa92ca75e8c6ed84d25175

See more details on using hashes here.

Provenance

The following attestation bundles were made for nebula_sdk-1.6.1.tar.gz:

Publisher: publish-pypi.yml on zeroset-inc/nebula-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nebula_sdk-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: nebula_sdk-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nebula_sdk-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf99c00955d2e0e63a5e28436d6a0f0a8717e4651c7e6cbc89ab57e372f4fe3c
MD5 2e50bcfc77b8b87b0b97b6c36b99bbb2
BLAKE2b-256 166012e94a3c561fc4d32f7209fa1616fa3f5d1badffb14a359ec8bf60a90401

See more details on using hashes here.

Provenance

The following attestation bundles were made for nebula_sdk-1.6.1-py3-none-any.whl:

Publisher: publish-pypi.yml on zeroset-inc/nebula-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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