Skip to main content

BuiltOn Python SDK

Project description

BuiltOn Python SDK

Python SDK for the BuiltOn APIs

PyPI PyPI - Status PyPI - Downloads

Builton logo

BuiltOn offers a platform as a service that digitizes core business functions and optimizes resource allocation with baked-in machine learning capabilities. This package gives you access to our platform's building blocks and will help you implement its API. Get instant access to modules like Payments, Messaging Tools, User Management, Scheduling, Resource Allocation and more.

Documentation

See the BuiltOn API documentation for a full reference of the API or visit our website - https://builton.dev - if you want to create an account.

Getting Started

Prerequisites

This package has been fully tested using Python 3.6, but it's expected to work in all Python 3+ versions.

Installation

To install the package use pip as usual:

pip install --upgrade builton-sdk

To install from source use:

python setup.py install

Usage

from builton_sdk import Builton
builton = Builton(api_key="API_KEY", bearer_token="BEARER_TOKEN")
builton.product().get_all({"size": 1})

The API_KEY and the BEARER_TOKEN are both in the Settings section of your BuiltOn dashboard. The API_KEY will be under API Keys and if you don't have one yet, please go ahead and create it. The BEARER_TOKEN you can fetch from the Service Accounts section, from an existing Service Account or by creating a new one.

Contributing

Configuration

Before starting to use the package, please copy the config.py.template into config.py and edit the configuration inside accordingly. Have a look at the Usage section for more information on how to find the values to put inside the config.py.

Testing

Our test suite depends heavily on talkback to mock some of the API responses. So, in order to contribute you'll need to first have node.js and npm installed and then you can run the following script to start the talkback server:

./tests/integration/scripts/run_server.sh

After the server starts, you can put it in background and then run the tests:

python -m pytest tests/

Pushing Changes

Follow the steps below to open a new Pull Request into this package:

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b amazing-feature)
  3. Commit your Changes (git commit -m 'Add some Amazing Feature')
  4. Push to the Branch (git push origin amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT license. See the LICENSE file for more info.

Contact

Please use the github issues for problems you find with the package or suggestions for changes.

If you need to get in touch with anyone from our team please email us at hello@builton.dev

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

builton-sdk-0.2.2.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

builton_sdk-0.2.2-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file builton-sdk-0.2.2.tar.gz.

File metadata

  • Download URL: builton-sdk-0.2.2.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for builton-sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 44123c4727049050169ddb425dc446872a68ec265a62f635b895261cbfa03903
MD5 9d7f8c3c80b3bac40606edae254cb6cb
BLAKE2b-256 b6eeabd9ab69e123890409c4db7ef40c229169c3c0e6dbb35f7ce87ac905eacd

See more details on using hashes here.

File details

Details for the file builton_sdk-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: builton_sdk-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for builton_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d155c217d6bfaac51703ba0bfdda4c8dff4081182e33e4df1ebecb05a2eb446
MD5 bc5a68132fe0b44c8de17c53efe9ba76
BLAKE2b-256 ada3b29b6e48139efbdc452e9c403ba312225eed06b913c06bbf04e8e1d5b853

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