Skip to main content

The official Yield SDK for Python

Project description

The official Yield SDK for Python

Installation

pip install yield-sdk

Usage

import yield_sdk
import os

# for security, never commit the actual key in your code
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(dict(
    customer_id="org_...",
    total_amount="PHP 1234.50",
    note="Test order from the Python SDK!",
))

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.5.0.tar.gz (10.4 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.5.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yield_sdk-0.5.0.tar.gz
Algorithm Hash digest
SHA256 89759993cc59e60111b3d05c4f81937fef540af9a6f1df9c5f453754a5f308c4
MD5 251b030ae3d0bc731f463553f816b787
BLAKE2b-256 dc101403a9f6de9eb6309dc3a46ec867c8410458b3ec6392efe836e50f37e683

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for yield_sdk-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80c406601a9b250084c28a1a97aba216eacba92c418093badc37dd61a15bde81
MD5 6dd736613c268e77499a0badd49d9a52
BLAKE2b-256 889289ff9de16b9363b12949b231761008bec351bce955ae07003ec6f1fcbbdc

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