Interactions with Bubble.io API in Python made easy !
Project description
Bubble Api
Interactions with Bubble.io API in Python made easy !
Installing
The easiest way to install it is through pipy :
pip install bubble-api
How to use it
At the moment, there is no documentation for this library. You can, however, rely on the integration tests we use to ensure proper integration with Bubble. You can find them here.
Creating a BubbleWrapper instance :
from bubble_api import BubbleWrapper
bubble_wrapper = BubbleWrapper(
base_url="https://cuure.com",
api_token="YOUR_API_TOKEN",
bubble_version="live"
)
Interact with bubble data :
From the BubbleWrapper
instance you can now interact with the data api easily.
object_data = bubble_wrapper.get(
"table_name",
bubble_id="bubble_object_id",
)
And so on with all the basic interactions with the api: delete, update, replace, ...
You can also use constraints for getting or deleting objects.
This is done through a list of Contraint
object you can declare by operations with the Field
class.
from bubble_api import BubbleWrapper, Field
from datetime import datetime
bubble_wrapper = BubbleWrapper( ... )
constraints = [
Field("name") == "Bob",
Field("Created") > datetime(2023, 1, 1),
]
data = bubble_wrapper.get(
"table_name",
constraints=constraints
)
All the fields names and constraints values formatting is handle by the library.
Incoming features
- Big request optimization using remaining approximation (exclude_remaining)
- Multithreading
- Default fields (Modified Date, unique id, Created Date, ...)
- Lifetime object management (update, refresh, replace)
- Documentation
Authors
- Dylan Nina - Initial work - settorac-nina
- Mathis Bourdin - Contributor - mathisbrdn
License
This project is licensed under the MIT License - see the LICENSE file for details
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
Hashes for bubble_api-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c26b4d5387d807ecd3dd0336e76f3681321d8e67d525cd9f46edb2e0023bb39a |
|
MD5 | 490f645215f631c410658f29f4cd8092 |
|
BLAKE2b-256 | 2ddab4a1ae33845c47e469b293976696caff5a5b0f7d06825cbdaa034cc811f8 |