Skip to main content

Turbine GraphQL Python SDK (generated via ariadne-codegen)

Project description

Turbine Python SDK

Minimal, sync-first Python client for the Turbine GraphQL API.

Getting Started

Installation from PyPI

Install from PyPI as netrise-turbine-sdk:

# pip
pip install netrise-turbine-sdk

# poetry
poetry add netrise-turbine-sdk

# uv
uv add netrise-turbine-sdk

Configure environment variables

The SDK automatically loads environment variables from a .env file in your current working directory when you call TurbineClientConfig.from_env(). You can also set environment variables directly.

Option 1: Using a .env file (recommended)

Create a .env file in your project directory:

endpoint=https://apollo.turbine.netrise.io/graphql/v3
audience=https://prod.turbine.netrise.io/
domain=https://authn.turbine.netrise.io
client_id=<client_id>
client_secret=<client_secret>
organization_id=<org_id>

The SDK will automatically load these when you call TurbineClientConfig.from_env(). The .env file is searched in:

  • Current working directory (most common)
  • Parent directories (walks up the directory tree)

Option 2: Set environment variables directly

import os
os.environ["endpoint"] = "https://apollo.turbine.netrise.io/graphql/v3"
# ... set other variables

cfg = TurbineClientConfig.from_env(load_env_file=False)

Option 3: Disable automatic .env loading

If you prefer to load .env files manually:

from dotenv import load_dotenv
load_dotenv()  # Your custom loading logic

cfg = TurbineClientConfig.from_env(load_env_file=False)

Populate the missing values. Reach out to mailto:support@netrise.io if you need assistance.

License

See LICENSE for details.

Documentation

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

netrise_turbine_sdk-0.1.5.tar.gz (55.3 kB view details)

Uploaded Source

Built Distribution

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

netrise_turbine_sdk-0.1.5-py3-none-any.whl (93.3 kB view details)

Uploaded Python 3

File details

Details for the file netrise_turbine_sdk-0.1.5.tar.gz.

File metadata

  • Download URL: netrise_turbine_sdk-0.1.5.tar.gz
  • Upload date:
  • Size: 55.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for netrise_turbine_sdk-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8eeef8c3f06986237a879b3cb5a058d239fbc2f831ea2ee91c4b96155ab910c7
MD5 0dc62c2f950377d212a510089cf642d8
BLAKE2b-256 b3b1f00823e84bbf29c08ea928dd5471b0793d2467d18bdd77aaf384cef61da7

See more details on using hashes here.

File details

Details for the file netrise_turbine_sdk-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for netrise_turbine_sdk-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5d86d73c8ed687f64ff0be93045abde98ccede6795a48e407509816eaacb532c
MD5 6aed4291f7a089c394d9d34fb69f7d7b
BLAKE2b-256 b1df00898feeeb2fbf7b4582107ebc47722374e0a17e762d2805bf9768b4cd37

See more details on using hashes here.

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