Python wrapper for Coda.io API
Project description
Python wrapper for Coda.io API
Installation
pip install codaio
Config via environment variables
The following variables will be called from environment where applicable:
CODA_API_ENDPOINT
(default valuehttps://coda.io/apis/v1beta1
)CODA_API_KEY
- your API key to use when initializing document from environment
Quickstart using raw API
Coda class provides a wrapper for all API methods.
from codaio import Coda
coda = Coda('YOUR_API_KEY')
coda.list_docs()
coda.create_doc('My document')
For full API reference for Coda class see documentation
Quickstart using codaio objects
codaio
implements convenient classes to work with Coda documents: Document
, Table
, Row
, Column
and Cell
.
from codaio import Coda, Document, Table
# Initialize by providing a coda object directly
coda = Coda('YOUR_API_KEY')
doc = Document('YOUR_DOC_ID', coda=coda)
# Or initialiaze from environment by storing your API key in environment variable `CODA_API_KEY`
doc = Document.from_environment('YOUR_DOC_ID')
doc.list_tables()
table: Table = doc.get_table('TABLE_ID')
For full API reference for Document class see documentation
Documentation
codaio
documentation lives at readthedocs.io
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
codaio-0.3.3.tar.gz
(8.2 kB
view hashes)
Built Distribution
codaio-0.3.3-py3-none-any.whl
(8.2 kB
view hashes)