Skip to main content

Thin Python client for Iricity machine-payment flows.

Project description

iricity-sdk

Thin Python client for:

  • catalog
  • developer purchase orchestration
  • API key creation from a session
  • quote
  • execute
  • wait
  • provenance-aware settled responses

Install from repo

pip install ./apps/sdk-python

Publish-ready install target

pip install iricity-sdk

Install Verification

python -m pip install iricity-sdk
python -c "from iricity_sdk import IricityClient; print(IricityClient.__name__)"

Example

from iricity_sdk import IricityClient

client = IricityClient(api_key="your_api_key")

result = client.run(
    "analysis-job",
    {
        "primary": {
            "documentText": "Paste your source text here...",
            "goal": "Summarize key points and actions",
            "audience": "Operations leadership",
        },
        "options": {
            "outputMode": "brief",
            "urgency": "normal",
            "includeArtifacts": False,
        },
    },
    wait=True,
)

print(result)

Developer Bootstrap Flow

Use a session token when you want to orchestrate the compliant purchase/bootstrap path before switching to an API key.

from iricity_sdk import IricityClient

session_client = IricityClient(session_token="your_session_token")

checkout = session_client.create_pack_checkout_intent("starter-api")
print(checkout["orderId"], checkout["paddle"])

# Finish Paddle checkout in the browser, then poll the order:
order = session_client.wait_for_order(checkout["orderId"])
print(order["status"])

created = session_client.create_api_key(label="cli-bootstrap")
print(created["apiKey"]["token"])

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

iricity_sdk-0.1.6.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

iricity_sdk-0.1.6-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file iricity_sdk-0.1.6.tar.gz.

File metadata

  • Download URL: iricity_sdk-0.1.6.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iricity_sdk-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ea68b16d4afc7feccdb8f324c83a0e87e893acd88ef5eeaecadb9c5d8fb5d81e
MD5 9ec3cae05fdbda9eb41f2226cf945e99
BLAKE2b-256 a5b9225b0792abed9054afe1cbf64ace1bdd82b03591e385c4b4040352e2554f

See more details on using hashes here.

Provenance

The following attestation bundles were made for iricity_sdk-0.1.6.tar.gz:

Publisher: sdk-publish.yml on iricity/iricity-webapp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iricity_sdk-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: iricity_sdk-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iricity_sdk-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fe84f1e6dc369f667e7d2ae4242daf6876a9df7d372340fb44648c414c399c7f
MD5 1e5490975552f86dde477611afe76b43
BLAKE2b-256 c9edceb9949795f60c8b920be2e9e4de1e62db2f578fcc171800df51a13c3d21

See more details on using hashes here.

Provenance

The following attestation bundles were made for iricity_sdk-0.1.6-py3-none-any.whl:

Publisher: sdk-publish.yml on iricity/iricity-webapp

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