Python client for NocoDB API v2
Project description
py-nocodb
Python client for NocoDB API v2
Install
Install from pypi:
pip install nocodb-api
Install from Github:
pip install "nocodb-api@git+https://github.com/infeeeee/py-nocodb"
Quickstart
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)
Development
python -m venv .venv
. ./.venv/bin/activate
Tests in Docker
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 .)
Official docs
Documentation with pdoc
TODO
pip install -e ".[doc]"
pdoc -d google nocodb
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
nocodb_api-0.0.2.tar.gz
(45.1 kB
view hashes)
Built Distribution
nocodb_api-0.0.2-py3-none-any.whl
(33.0 kB
view hashes)
Close
Hashes for nocodb_api-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03929568f2a1be5a1b9e46fae9dd8e496a34c978ddcd61a0e70bff42e3c74f7f |
|
MD5 | fc42cd2a0163faab60e8e17c634ea514 |
|
BLAKE2b-256 | 533498296ee1cd47ba753b033b1eb2811815c2c3c43ea47f7b4f604b25b198c0 |