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

pip install nebula-sdk
# or
uv add nebula-sdk

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.search("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

The constructor accepts api_key / access_token plus their camelCase aliases apiKey / accessToken / bearerToken. If you pass an API key that doesn't look like a Nebula key (not prefixed with key_ or neb_), the DX layer automatically routes it through the bearer-token header instead.

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.4.0.tar.gz (43.3 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.4.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nebula_sdk-1.4.0.tar.gz
  • Upload date:
  • Size: 43.3 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.4.0.tar.gz
Algorithm Hash digest
SHA256 411f2e3f539af509e862e8ca0ffbc8b16df78dcd74852b763330cdb6f5c9fbd2
MD5 1dcd1f1fda93dc454c7576a1b04b566a
BLAKE2b-256 663839af771642190a9d4115549d8a0c60972d18985ceb9814f071f092cc17b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nebula_sdk-1.4.0.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: nebula_sdk-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 36.4 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fbc02bfee96e2000acf6381bfcaee3c336ec0f741b8e2bca54743f292a89388
MD5 f898f1d305fbd0850ec5ef98d91f909c
BLAKE2b-256 1bc7aa5c87b2231c0d5192d652e2bfd51d132707532fa4e5eb5f6398f961bb6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for nebula_sdk-1.4.0-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