Skip to main content

Neurograph Core Python SDK

neurograph-core v2 is the Virtuous-backed Python SDK for Neurograph Core.

This is a breaking major release from the legacy OpenAPI Generator SDK. The old neurograph.v1 package layout is not preserved; use neurograph_core imports.

Install

pip install neurograph-core

Usage

Python SDK callers should use a Core service token. Pass it as token_auth; the generated client sends it as Authorization: Bearer <service token>.

from neurograph_core import NEUROGRAPH_CORE_PROD_URL, create_client

client = create_client(
    base_url=NEUROGRAPH_CORE_PROD_URL,
    token_auth="<service token>",
)

resp = client.api_v1_clients_get(limit=100_000, offset=0)
for item in resp.data:
    print(item.id, item.name)

The SDK also exports NEUROGRAPH_CORE_STAGING_URL for staging callers. For deployed services, prefer passing the selected URL from environment config:

import os

from neurograph_core import create_client

client = create_client(
    base_url=os.environ["NEUROGRAPH_CORE_URL"],
    token_auth=os.environ["NEUROGRAPH_CORE_TOKEN"],
)

Use api_key_auth only for Firebase ID-token admin/browser contexts. Service integrations should prefer token_auth.

Request and response dataclasses are exported from the package root:

from neurograph_core import PersonaInstanceCreateRequest

request = PersonaInstanceCreateRequest(
    name="Example",
    persona_seed_id="seed_123",
    tag="test",
    personality_img_url="",
    personality_video_url="",
    metadata="{}",
    age=0,
    female=0,
    male=0,
    income="",
    value="",
    description="",
    summary_detail="",
    summary_headline="",
    positioning_statement="",
    personality_background="",
    personality_first_name="",
    personality_last_name="",
    personality_quote="",
    personality_gender="",
)

created = client.api_v1_persona_instance_post(body=request)

Migration Notes

Legacy v1 usage:

from neurograph.v1.configuration import Configuration
from neurograph.v1.api_client import ApiClient
import neurograph.v1.api as ng

New v2 usage:

from neurograph_core import create_client

client = create_client(base_url=core_url, token_auth=core_key)
resp = client.api_v1_clients_get(limit=100_000, offset=0)

Metadata

Release files for neurograph-core 2.0.1

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

Source distribution (sdist)

Source distribution for neurograph-core 2.0.1
File Size Uploaded Provenance Actions
neurograph_core-2.0.1.tar.gz 62.9 kB Without provenance Details for neurograph_core-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neurograph-core 2.0.1
File Interpreter ABI Platform Actions
neurograph_core-2.0.1-py3-none-any.whl Python 3 none any Details for neurograph_core-2.0.1-py3-none-any.whl

Total release size: 123.3 kB

Release files / neurograph_core-2.0.1.tar.gz

Download URL neurograph_core-2.0.1.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7f618c5ba565f59dfba446511e7d7ab3040cb638519ef903c29e6aac8c18ca26
BLAKE2b-256 checksum
How to use checksums
1f46a6df28e008519b0196401f0d3ce597c3e3b7fd58355147add2dc22b4fbeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / neurograph_core-2.0.1-py3-none-any.whl

Download URL neurograph_core-2.0.1-py3-none-any.whl
Size 60.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df51746699233502aaf4066a3b8cb1423732a2b59e205c3954c1dba1e86fab5d
BLAKE2b-256 checksum
How to use checksums
3f05abb6cffcfb5dd910a6da6282615ff3e949883d2c05519e65eb4266bdc0ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for neurograph-core 2.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files No provenance

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