Baserow client for Python.
Project description
basedrow
basedrow is a Python wrapper around the Baserow API. It provides a simple and intuitive way to interact with Baserow databases, allowing users to perform various operations like listing rows, creating new rows, updating existing ones, and more.
Features
- Easy to use client for interacting with the Baserow API.
- Supports listing, creating, updating, and retrieving rows in a Baserow table.
- Additional support for advanced query parameters like search, order_by, filters, etc.
- Extensible design for easy integration with other Python applications.
Installation
To install basedrow, you can use pip:
pip install basedrow
Usage
Working with Tables
from basedrow import Client, Table
client = Client(url='YOUR_BASEROW_URL', token='YOUR_API_TOKEN')
# Initialize a table
table = Table(table_id='YOUR_TABLE_ID', client=client)
# List rows in the table
rows = table.list_rows()
# Filter rows
filtered_rows = table.list_rows(
# fields starting with `filter__{col}__{op}` will be converted to filters
# see Baserow the API documentation for your table for details
filter__name__contains='sam',
)
# Get a specific row
row = table.get_row(row_id='ROW_ID')
# Create a new row
new_row = table.create_row(row={'column_name': 'value'})
# Update existing rows
updated_rows = table.update_rows(rows=[{'id': 'ROW_ID', 'column_name': 'new_value'}])
Windmill Integration
from basedrow import WindmillClient
client = WindmillClient(resource="f/your/baserowresource")
Contributing
Contributions to basedrow are welcome! Please read our contributing guidelines to get started.
License
basedrow is licensed under the MIT License.
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 basedrow-0.3.0.tar.gz.
File metadata
- Download URL: basedrow-0.3.0.tar.gz
- Upload date:
- Size: 485.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bdbdec5ef798bbca4b9357e1005a0a470b2e2c0d6920e983e44149497bfc3f4
|
|
| MD5 |
75ef285cdd23c51429dd7e4dfb404d6b
|
|
| BLAKE2b-256 |
94f9e29e5babd3f28af883f49f1b327cdeb37fcda1ec048f4aa8f24e0fca6de8
|
File details
Details for the file basedrow-0.3.0-py2.py3-none-any.whl.
File metadata
- Download URL: basedrow-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15dda41df30261be6675a8f9d43d704262486e72aa54b876e7e727df6b79c769
|
|
| MD5 |
0140efb617581c8d6f3a1f9cb83297f5
|
|
| BLAKE2b-256 |
a0a67b8c9aadeb6beff9d580c395626ede16098b11b491d8c59de70a3f09a493
|