Skip to main content

Python SDK for Ryft API

Project description

Ryft Python SDK

Python - Build & Test PyPI version License: MIT

The Ryft Python SDK allows you to quickly integrate our API into your Python-powered backend services.

Installation

Usage

The SDK must be configured with your account's secret key in the Ryft Dashboard. The SDK will automatically determine the environment based on the provided key. For example, sk_sandbox... will point to sandbox, while sk_live... will point to production.

Importing the SDK

You can access the SDK and all of the methods and types by importing it as follows:

from ryft_sdk import Ryft

Initialising with a secret key

You can pass your secret key via the constructor in the Ryft package. For example:

ryft = Ryft(secret_key="sk_live_123")

Initialising with environment variables

You can set the following environment variable, and the SDK will automatically pick it up:

  • RYFT_SECRET_KEY

[!NOTE] Using env variables, you don't have to pass your secret key to the config. This is handled for you by the SDK

Basic Example

ryft = Ryft(secret_key="sk_live_123")

try:
  resp = await ryft.accounts.get('acc_123456789')
except RyftException as e:
  print(e)

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

ryft_sdk-1.3.0.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

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

ryft_sdk-1.3.0-py3-none-any.whl (57.3 kB view details)

Uploaded Python 3

File details

Details for the file ryft_sdk-1.3.0.tar.gz.

File metadata

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

File hashes

Hashes for ryft_sdk-1.3.0.tar.gz
Algorithm Hash digest
SHA256 a4c647be9615b3e8b59ab76980c7fe5b16db31a4c9c86f262309518b4e330b33
MD5 c6b6d1ccd1534a78cd873f4f308fa304
BLAKE2b-256 6628ee51dac10c8e7f7318f11a299d1f52bb9ccbe799bb579762daba803a772f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ryft_sdk-1.3.0.tar.gz:

Publisher: release.yml on RyftPay/ryft-python

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

File details

Details for the file ryft_sdk-1.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ryft_sdk-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88ea89a4b1f4c7ec5956af9ae81ef06193cbd3758ac099537203d31c07f88967
MD5 f68979ae162165e287a7613166c09d03
BLAKE2b-256 8bfb2ba7213659d0691c6e6d99143ec5db5327e48f875ef802cfa8e45d3b705d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ryft_sdk-1.3.0-py3-none-any.whl:

Publisher: release.yml on RyftPay/ryft-python

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