Skip to main content

stigg-api-client-v2

This library provides a Python wrapper to Stigg's GraphQL API based on the operations that are in use by the Stigg's Node.js SDK.

The ariadne-codegen code generator is used to generate a typesafe Python API client.

Documentation

TBD

Installation

pip install stigg-api-client-v2

Usage

Initialize the client:

import os
from stigg import Stigg

api_key = os.environ.get("STIGG_SERVER_API_KEY")

client = Stigg.create_async_client(api_key)

Provision a customer

import os
from stigg import Stigg
from stigg.generated import ProvisionCustomerInput

api_key = os.environ.get("STIGG_SERVER_API_KEY")

client = Stigg.create_async_client(api_key)

customer_input = ProvisionCustomerInput(
    **{
        "customer_id": "1661115567186116608", # mandatory, everything else is optional
        "name": "Acme",
        "email": "billing@acme.com",
        "additional_meta_data": {"key": "value"},
        "subscription_params": {"plan_id": "plan-acme-free"},
    }
)
result = await client.provision_customer(customer_input)

print(result.provision_customer.customer)

Get a customer by ID

import os
from stigg import Stigg
from stigg.generated import GetCustomerByRefIdInput

api_key = os.environ.get("STIGG_SERVER_API_KEY")

client = Stigg.create_async_client(api_key)

result = await client.get_customer_by_id(GetCustomerByRefIdInput(**{"customer_id": "1661115567186116608"}))

print(result.get_customer_by_ref_id.name)

Metadata

Release files for stigg-api-client-v2 6.27.0

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

Source distribution (sdist)

Source distribution for stigg-api-client-v2 6.27.0
File Size Uploaded Provenance Actions
stigg_api_client_v2-6.27.0.tar.gz 108.6 kB Without provenance Details for stigg_api_client_v2-6.27.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stigg-api-client-v2 6.27.0
File Interpreter ABI Platform Actions
stigg_api_client_v2-6.27.0-py3-none-any.whl Python 3 none any Details for stigg_api_client_v2-6.27.0-py3-none-any.whl

Total release size: 240.9 kB

Release files / stigg_api_client_v2-6.27.0.tar.gz

Download URL stigg_api_client_v2-6.27.0.tar.gz
Size 108.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a56f389397a677490d7337b87a888fb0ee5212fe0bf3a1a72479fa24fcf65cad
BLAKE2b-256 checksum
How to use checksums
d0460c93d01fc9fe3220b554db3d7360adaa868f9c014f38564f5f35d2952f25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.12 Linux/6.6.141

Release files / stigg_api_client_v2-6.27.0-py3-none-any.whl

Download URL stigg_api_client_v2-6.27.0-py3-none-any.whl
Size 132.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7afafa7e43f19ca1052ca16e964b1e584f25532cbc60e37306ac95b1a60270df
BLAKE2b-256 checksum
How to use checksums
b33a59e72fd9675ad7c26dcea477d01fd1d26e150dfaa89b1ea8134dd3c971cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.12 Linux/6.6.141

Security for stigg-api-client-v2 6.27.0

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

6.27.0 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