Current collected state Current
Observed since 20 Oct, 18:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
acdh-baserow-pyutils
API client for Baserow
a python client for baserow
pip install acdh-baserow-pyutils
Have a look into tests/test_baserow_client.py
import os
from acdh_baserow_pyutils import BaseRowClient
# store baserow credentials as ENV-Variables
BASEROW_USER = os.environ.get("BASEROW_USER")
BASEROW_PW = os.environ.get("BASEROW_PW")
BASEROW_TOKEN = os.environ.get("BASEROW_TOKEN") # you need to create a token via baserow
DATABASE_ID = "41426" # you can get this ID from Baserow
BASEROW_URL="https://my-custom-baserow/api/
# initialize the client to baserows hosted instance
br_client = BaseRowClient(BASEROW_USER, BASEROW_PW, BASEROW_TOKEN)
# to initialize the client to some other baserow instance, you need to pass in br_base_url=BASEROW_URL
br_client = BaseRowClient(BASEROW_USER, BASEROW_PW, BASEROW_TOKEN, br_base_url="https://api.baserow.io/api/",)
# writes all tables from Database as json.files into a folder 'out' (the folder needs to exist!) and returns a list of the file names
files = br_client.dump_tables_as_json(DATABASE_ID, folder_name='out')
print(files)
# ['out/place.json', 'out/person.json', 'out/profession.json']
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
requestsEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.9",
"evaluation": "NOT_EVALUATED"
} | requests>=2.32.5 | runtime |
bdist_wheel · 6.49 KB · Python py3
sdist · 5.9 KB · Python source
Shared repository data · GitHub
Observed since 20 Oct, 18:04 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:7a5401428c789fe6477e55b52fba848104e6d763ccc131cd6b39880fa2bee3ab