Skip to main content

Python client for NocoDB API v2

Project description

nocodb-api

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/nocodb-api"

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


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.3.tar.gz (45.0 kB view details)

Uploaded Source

Built Distribution

nocodb_api-0.0.3-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file nocodb_api-0.0.3.tar.gz.

File metadata

  • Download URL: nocodb_api-0.0.3.tar.gz
  • Upload date:
  • Size: 45.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for nocodb_api-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0820abfdcde1a92fc924bd8344761412dbcd9e55d53eb4c9524c6426a994f6cb
MD5 83eb30324cf3b3611abc66e940eee368
BLAKE2b-256 7ce9c46dcfebd3e13f96afb863f176cc5be13f03f5ba897e557c589af57b6b58

See more details on using hashes here.

File details

Details for the file nocodb_api-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nocodb_api-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for nocodb_api-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f830f8e7aa2044d6e4f73a41841d3805899ee87166cdc17defb42d33f2c1dcc8
MD5 84456a4e36e641706d0d341ed1153736
BLAKE2b-256 69eecfc591d4d7167f5a582a8569f328c45e378ee82ca252a706a8c7943cf0c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page