Skip to main content

The official Yield SDK for Python

Project description

Yield SDK for Python PyPI - Version

The official Yield SDK for Python.

Documentation

Installation

pip install yield-sdk

Usage

import yield_sdk
import os

# For security, don't save the actual key in your code or repo
client = yield_sdk.SyncClient(os.environ["YIELD_API_KEY"])

# Fetch an existing order
order = client.order.fetch("ord_...")
print(order.customer.registered_name)

# Or create a new one
new_order = client.order.create({
    "customer_id": "org_...",
    "total_amount": "PHP 1234.50",
    "note": "Test order from the Python SDK!",
})

# Don't forget to close the client when you won't use it anymore
client.close()

For more details, check out our API reference.

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

yield_sdk-0.7.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

yield_sdk-0.7.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file yield_sdk-0.7.0.tar.gz.

File metadata

  • Download URL: yield_sdk-0.7.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for yield_sdk-0.7.0.tar.gz
Algorithm Hash digest
SHA256 1bb56a9228a8f28107d2926fa0d0a21c0c64c0e4c9ae01ebdfe5285208238ff5
MD5 87b22364c8888ceb615d2eb215facd21
BLAKE2b-256 825b18056f378f6f501a09a479de68526aff87874433112fb9b986e34df8e214

See more details on using hashes here.

File details

Details for the file yield_sdk-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: yield_sdk-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for yield_sdk-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4be1bdd77368c36dc6681f38164f0935da9f893e6691bd1c25985af626331458
MD5 5817ed2771f946d2f087ea7cd954143d
BLAKE2b-256 fa933209e11db97d9d1025a2bf77100b3842fe2266eab0e5450f5b14697f5052

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