Skip to main content

Python SDK for Ryft API

Project description

ryft-python

Python - Build & Test

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.0.1.tar.gz (19.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.0.1-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ryft_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6a1f7c379a199b029767bcee26f7fe3b6874c989afcb4277d661a601cd86c77e
MD5 5b160e2af0b18f3c0517855fdef1bcb9
BLAKE2b-256 939aa9f47593d9035ea87bf488d549ec82ebee481543a3a387d66e1b896efa0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ryft_sdk-1.0.1.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.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ryft_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b4f448a88ae95e3fc2c8f6121a6fda3d196fd1c6d9e2081c50b19a40fb81f8
MD5 c82e182fb38e8078d54d302be30e9f2a
BLAKE2b-256 5609a7cb16582eb255e513493ff2d4c86330dea60fa792235f47bc25ae7d520d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ryft_sdk-1.0.1-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