Skip to content

Python Objects: Account

Account provides an interface to list all Workspaces, add/copy/delete Bases, and obtain access rights to a Base.

Separate Authentication required

Account requires a separate authentication.

from seatable_api import Account
username = 'xiongxxx@xxx.com'
password = 'xxxxxxx'
server_url = 'https://cloud.seatable.cn/'
account = Account(username, password, server_url)
account.auth()

List of account objects

List workspaces

Get all your workspaces and its Bases.

account.list_workspaces()

Add a base

Add a base to a Workspace.

account.add_base(name, workspace_id=None)

Example

account.add_base('new-base', 35)

Copy a base

Copy a base to a workspace.

account.copy_base(src_workspace_id, base_name, dst_workspace_id)

Example

account.copy_base(35, 'img-file', 74)

Get a base

Get a base object. Get the Base object named base_name that exists in the workspace whose id is workspace_id.

account.get_base(workspace_id, base_name)

Example

base = account.get_base(35, 'new-base')