Skip to main content

Neo4j Aura SDK for Python

This SDK provides a thin, async client for the Neo4j Aura HTTP API.

Highlights in this branch

  • Support for both v1 and v2beta1 endpoints.
  • Client-level API versioning and guards so v2 endpoints can't be called by a v1-configured client.
  • Models and helper methods for import jobs and IP filters (v2beta1).

Installation

Install from PyPI (when published) or install locally for development:

Using pip:

python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .
# install test/runtime deps
pip install pytest httpx pydantic

Using poetry:

poetry install

API versioning

The client defaults to the v1 API surface. To call v2 endpoints (v2beta1) you must construct the client with an API version that begins with v2.

  • Constructor option: pass api_version="v2beta1" to AuraClient.
  • Environment helper: AuraClient.from_env() will read AURA_API_VERSION (defaults to v1).

The client enforces a guard for v2 endpoints: calling a v2 method when the client is configured for v1 will raise a clear ValueError indicating the API version mismatch. This prevents accidental use of v2 endpoints when the client is not configured for them.

Examples

Default (v1) client — v2 methods will be blocked:

from neo4j_aura_sdk import AuraClient

async with AuraClient.from_env() as client:  # AURA_API_VERSION default is 'v1'
    tenants = await client.tenants()
    # The following will raise ValueError because the client is v1:
    # await client.list_organization_ip_filters("org-id")

Create a v2beta1 client (allows v2 calls):

from neo4j_aura_sdk import AuraClient

async with AuraClient("id", "secret", api_version="v2beta1") as client:
    # Calls to v2beta1 endpoints (IP filters, import jobs) are allowed
    filters = await client.list_organization_ip_filters("org-id")

You can also set the environment variable AURA_API_VERSION=v2beta1 before calling AuraClient.from_env().

Usage

Minimal example (uses environment variables for credentials):

from neo4j_aura_sdk import AuraClient
import asyncio

async def main():
    async with AuraClient.from_env() as client:
        tenants = await client.tenants()
        print(tenants)

if __name__ == "__main__":
    asyncio.run(main())

Development

Run tests

With poetry:

poetry run pytest -q

With pip/venv:

source .venv/bin/activate
pytest -q

Build/publish

poetry build
poetry publish

Contributing

Please see CONTRIBUTING.md for contributor guidelines.

Notes

  • The repository now exposes an api_version property on AuraClient and provides clear guards for attempting v2 calls on a v1-configured client.
  • Several v1 and v2 methods include concise docstrings describing inputs and return models.

Metadata

Release files for neo4j-aura-sdk 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neo4j-aura-sdk 0.1.5
File Size Uploaded Provenance
neo4j_aura_sdk-0.1.5.tar.gz 85.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for neo4j-aura-sdk 0.1.5
File Interpreter ABI Platform
neo4j_aura_sdk-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 175.9 kB

Release files / neo4j_aura_sdk-0.1.5.tar.gz

Download URL neo4j_aura_sdk-0.1.5.tar.gz
Size 85.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a81c3223bfecaf7014e93f30585a4c791c97f7c45d3e4632cebdfcc4d6983e36
BLAKE2b-256 checksum
How to use checksums
07b8ea14a101774e0b9c48dca3b668ad19a762b7abd87b8c6e7bd3d949b47ab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 30, 2026.

Transparency log

Release files / neo4j_aura_sdk-0.1.5-py3-none-any.whl

Download URL neo4j_aura_sdk-0.1.5-py3-none-any.whl
Size 89.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e8705f855c8bddf912fb921896a24603dc2dd8616fe85c7e484064e26d67fd8
BLAKE2b-256 checksum
How to use checksums
723e9ccb1b0e94446e80157d43213fa78e10400c911fbf8f874199919a9ff95e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 30, 2026.

Transparency log

Security for neo4j-aura-sdk 0.1.5

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for neo4j_aura_sdk-0.1.5.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 Sep 30, 2026.

Transparency log

A 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.

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