Skip to main content

No project description provided

Project description

builtapi_python.png

Python CLient for BuiltAPI service

Dear users, welcome to the repository with Python binding for BuiltAPI.

Basic usage example

from builtapi.token import get_token
from builtapi.api.main import BuiltAPI

# Create BuiltAPI instance
token = get_token(
  username='username',
  password='password',
  client_id='client_id',
  client_secret='client_secret',
)
client = BuiltAPI(
  workspace_id='workspace_id',
  token=token,
)

# Get all entities
entities = client.entities.list()

# Get all records from entity
records = client.records.list(entity_id='entity_id')

# Create new record
new_record = client.records.create(
  entity_id='entity_id',
  data={
    'field1': 'value1',
    'field2': 'value2',
  }
)

Brief introduction

First you need to understand how the BuiltAPI platform works. For this purpose it will be useful to review the official documentation - BuiltAPI documentation. However, to make it shorter we will describe the main building blocks of the service here:

  • Workspace - group all business entities with separate databases;
  • Entity - 'data capacitor' or storage. It is the basic building block in which data is stored;
  • Record - individual elements (rows) in an entity (database);
  • View - Transformation pipeline for data in an entity;

The main goal of this library is to provide a simple and convenient way to interact with the BuiltAPI service using Python.

Repository structure

This repository consists of the following key elements:

  • applications - complicated real use cases of this library;
  • builtapi - the core of the Python-binding library;
  • examples - folder with simple examples how to use this binding (see section Examples below);
  • tests - folder with unit and integration tests which cover the vital functionality both of the BuiltAPI platform and Python binding.

Examples

Examples how to use binding can be found in examples folder, for example:

Applications

Real use cases is presented in the applications folder:

  • dwell_density.py - merging data from three different sources and providing aggregation logic to calculate sum, mean values and others statistics

Additional information

Link to the console: https://console.builtapi.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

builtapi-0.2.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

builtapi-0.2.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file builtapi-0.2.0.tar.gz.

File metadata

  • Download URL: builtapi-0.2.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.12 Linux/6.8.0-40-generic

File hashes

Hashes for builtapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ebafc2853e3f72b697fb233f87dd0918e1d34f4a9621a8d8ccbdb08c6fe8a85a
MD5 6b2af1c483744e468dd066fc0572e11d
BLAKE2b-256 9c66ec3854af2c8f5b681365bee78b97bb48a4fc88a1fa285c861c59a05487a4

See more details on using hashes here.

File details

Details for the file builtapi-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: builtapi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.12 Linux/6.8.0-40-generic

File hashes

Hashes for builtapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c04b2996a76eaa4ef46dd33457fbcd70edee58299454fbb146d052343c38017
MD5 800013fccf217533da6ce084d59de9f7
BLAKE2b-256 85a78b993f8ec64144cfc686b343bde2465470e21790331cc8859ae95412fda8

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