Interactions with Bubble.io API in Python made easy !
Project description
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 BubbleClient instance :
from bubble_api import BubbleClient
bubble_client = BubbleClient(
base_url="https://cuure.com",
api_token="YOUR_API_TOKEN",
bubble_version="live"
)
Interact with bubble data :
From the BubbleClient
instance you can now interact with the data api easily.
object_data = bubble_client.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 BubbleClient, Field
from datetime import datetime
bubble_client = BubbleClient( ... )
constraints = [
Field("name") == "Bob",
Field("Created") > datetime(2023, 1, 1),
]
data = bubble_client.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
File details
Details for the file bubble_api-0.5.1.tar.gz
.
File metadata
- Download URL: bubble_api-0.5.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c2b9ff62df724c98c3fe91c03a0062874c060cf30dbb629e837ffb19dc2e607 |
|
MD5 | 7e8ea55a909acadb0c4dbea680130c86 |
|
BLAKE2b-256 | 1726e59fce159af8000d2f969d4bd3fa1fb75607dc4750a3b22e81129d382f8b |
File details
Details for the file bubble_api-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: bubble_api-0.5.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93f4907eb1ec37b595364d2bc16a0d278c24ce93d5fcb9ef50a612cf3f2dc422 |
|
MD5 | 4190a854d01cfeb037f5dc470927a123 |
|
BLAKE2b-256 | 88b86bd954a217ada55732b664a0e88099ef2f59e8039c03b640944474784da5 |