Python client for NocoDB API v2
Install from pypi:
pip install nocodb-api
Install from Github:
pip install "nocodb-api@git+https://github.com/infeeeee/nocodb-api"
from nocodb import NocoDB
noco = NocoDB(url="https://app.nocodb.com", api_key="superapikey")
base = noco.get_base("ple9j3sg0j3ks6m")
table = base.get_table_by_title("Sample Views")
[print(i, r.metadata) for i,r in enumerate(table.get_records())]
Get debug log:
import logging
from nocodb import NocoDB
logging.basicConfig()
logging.getLogger('nocodb').setLevel(logging.DEBUG)
# Now every log is visible.
# Limit to submodules:
logging.getLogger('nocodb.Base').setLevel(logging.DEBUG)
python -m venv .venv
. ./.venv/bin/activate
Create a file test_config.json
with the parameters, or change the Environment Variables in tests/Dockerfile
, than run:
docker run --rm -it $(docker build -q -f tests/Dockerfile .)
Documentation with pdoc
TODO
pip install -e ".[doc]"
pdoc -d google nocodb