No project description provided
Project description
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:
- users_interaction.py - example how to send requests to Users module using latest BuiltAPI version
- workspaces_interaction.py - example how to send requests to Workspaces module using latest BuiltAPI version
- entities_interaction.py - example how to send requests to Entities module using latest BuiltAPI version
- entities_records_interaction.py - example how to create entities, fill it with data and get data back
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
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 builtapi-0.1.0.tar.gz.
File metadata
- Download URL: builtapi-0.1.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.12 Linux/6.5.0-41-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8953f24e4f2ffff77fd0ad0705d0f408511e0287074c6eb49d0a30a695e017ac
|
|
| MD5 |
ae9873e77b6dab875f9d8151334d8ff4
|
|
| BLAKE2b-256 |
ec0734b53c6797cce61cf15e2ada9eff63aa653d149fa24029ee07d284a2bd06
|
File details
Details for the file builtapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: builtapi-0.1.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.5.0-41-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
021fbfdea65038ae4fbfaf70bef65d2faadd2e340dda3bbba721f65d20f8ef13
|
|
| MD5 |
394d6fb4afd5e1ff6ce30f84eeb5709c
|
|
| BLAKE2b-256 |
023056c43e0bfe02006bb4fd8e50f256057ec28bc3665aabe321b31e679f9eda
|