Python SDK for Ryft API
Project description
Ryft Python SDK
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ryft_sdk-1.0.5.tar.gz.
File metadata
- Download URL: ryft_sdk-1.0.5.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68aad5d05944735f259b11f30944c8765aa1f87472efc1f39c16f61fd2c20829
|
|
| MD5 |
2f0649616c390e4903c48ff465b8b231
|
|
| BLAKE2b-256 |
f54f2ca0f3e5af5882e95c01101963b578e3e9def9a46551c41fdcef3c1adde1
|
Provenance
The following attestation bundles were made for ryft_sdk-1.0.5.tar.gz:
Publisher:
release.yml on RyftPay/ryft-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ryft_sdk-1.0.5.tar.gz -
Subject digest:
68aad5d05944735f259b11f30944c8765aa1f87472efc1f39c16f61fd2c20829 - Sigstore transparency entry: 372210444
- Sigstore integration time:
-
Permalink:
RyftPay/ryft-python@ea045c844c38c379eeaf1d7d7ec7b6752bac6f67 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/RyftPay
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ea045c844c38c379eeaf1d7d7ec7b6752bac6f67 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ryft_sdk-1.0.5-py3-none-any.whl.
File metadata
- Download URL: ryft_sdk-1.0.5-py3-none-any.whl
- Upload date:
- Size: 45.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0774e7e1fc090be87984eaf53a98577cd7c5c95959be52a0c647098f3bd0bc87
|
|
| MD5 |
2ab6966f3b068b1626041edba26f2274
|
|
| BLAKE2b-256 |
cb82dbf4be1eebe41e012f0684b1f8f4f9f95b80410dc25c73fa7c6de6284580
|
Provenance
The following attestation bundles were made for ryft_sdk-1.0.5-py3-none-any.whl:
Publisher:
release.yml on RyftPay/ryft-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ryft_sdk-1.0.5-py3-none-any.whl -
Subject digest:
0774e7e1fc090be87984eaf53a98577cd7c5c95959be52a0c647098f3bd0bc87 - Sigstore transparency entry: 372210455
- Sigstore integration time:
-
Permalink:
RyftPay/ryft-python@ea045c844c38c379eeaf1d7d7ec7b6752bac6f67 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/RyftPay
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ea045c844c38c379eeaf1d7d7ec7b6752bac6f67 -
Trigger Event:
workflow_dispatch
-
Statement type: