Skip to main content

python-baserow-simple

This is a simple baserow API wrapper, that mainly does two things:

  • return rows with column names and selections with their labels
  • easier batch-updates accepting both existing and new rows

codecov CI

Install it from PyPI

pip install python_baserow_simple

Usage

Import the library and provide an Baserow API token with sufficient privileges.

from python_baserow_simple import BaserowApi

api = BaserowApi(database_url="URL TO BASEROW DB", token="BASEROW TOKEN")

# getting data
table_data = api.get_data(table_id="<TABLE ID>")
for entry_id, entry_data in table_data.items():
    ...


# updating entries for a table with a column named 'Name' accepting text
data = {
    "Name": "Hello World",
}
api.add_data("<TABLE ID>", data, row_id=<ROW ID>)

# multiple entries can be updated at the same time
entries = [
    {
        "id": None,  # this will create a new row
        "Name": "AAA",
    },
    {
        "id": 2,  # this will update row with baserow id 2
        "Name": "BBB",
    },
]
api.add_data_batch("<TABLE_ID>", entries)

Development

Read the CONTRIBUTING.md file.

Metadata

Release files for python-baserow-simple 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-baserow-simple 0.0.4
File Size Uploaded Provenance Actions
python_baserow_simple-0.0.4.tar.gz 6.2 kB Without provenance Details for python_baserow_simple-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-baserow-simple 0.0.4
File Interpreter ABI Platform Actions
python_baserow_simple-0.0.4-py3-none-any.whl Python 3 none any Details for python_baserow_simple-0.0.4-py3-none-any.whl

Total release size: 12.5 kB

Release files / python_baserow_simple-0.0.4.tar.gz

Download URL python_baserow_simple-0.0.4.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
25b072361a279e2fd82e99c610cf743ca9bd20b0418bad05112a8bab8219892f
BLAKE2b-256 checksum
How to use checksums
6030c7df15d6f29e60aca7d3cd3c0a88a616a3523103cb8a2e66257ad8b09217
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / python_baserow_simple-0.0.4-py3-none-any.whl

Download URL python_baserow_simple-0.0.4-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be60c7adab1cc796c9356d5c2a8a766876d8d7e58e1aa6b683fc4de91a117936
BLAKE2b-256 checksum
How to use checksums
aee293cd927e65b2d9c07c498cfbb2af881d4560740c806b1ec998b0a4281097
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.5

Security for python-baserow-simple 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page