Skip to main content

DBT API SDK for Python

Project description

dbt-sdk-python

A Python implementation of DBT API SDK (ported from dbt-sdk-php)

Requirements

  • Python 3 (Recommended 3.6+)

Installation

sudo python3 -m pip install dbtsdk

Usage

Below are the steps neccessary to get you started with the DBT SDK.

1. Sign up for an API Key

Before you can start using the DBT SDK, you will need to sign up for an API Key at https://www.digitalbibleplatform.com.

2. (Optional) Add your API key to your environment

It's best not to hard code your API key in your script file. Instead, save it to your environment and let Python read it from there.

On Windows:

setx DBT_API_KEY "<your api key>"

On Mac and Linux:

export DBT_API_KEY=<your api key>

To make this environment persist between reboots, add this line to your .bash_profile file instead.

2. Include the SDK file

In your Python script, import the package.

from dbtsdk import Dbt

3. Create an instance of the object

When creating the object, pass the API key.

import os

api_key = os.environ['DBT_API_KEY']
dbt = Dbt.Dbt(api_key)

4. Retrieve volume information

For an example of the usual work flows, as well as examples of retrieving and displaying text, audio, and video, download the sample code.

API Documentation

Documentation for the underlying REST API can be found in the Digital Bible Platform Developer Documentation.

License

dbt-sdk-python is available under the MIT license. See the LICENSE file for more info.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

dbtsdk-0.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file dbtsdk-0.3-py3-none-any.whl.

File metadata

  • Download URL: dbtsdk-0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.1

File hashes

Hashes for dbtsdk-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bbf9f4225bec70da5db46418cc1d80ba4c4eed6c3f638a456b3ba9cebcf7325e
MD5 0d132d9322258f2a489230198185b1a3
BLAKE2b-256 64fdea965781dea11c0374bfe1109ce12ba2b7cb6ac894f475382aa777f1f734

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