Skip to main content

LayData Python client SDK

Project description

LayData Python Client SDK

Install

  • From PyPI:
    pip install laydata
    

Quickstart

import asyncio
from laydata import Data

async def main():
    data = Data(endpoint="http://127.0.0.1:8077")

    assert await data.ping() is True
    print(await data.version())
    print(await data.health())

    # Navigate by names (idempotent create-or-get)
    space = await data.space("My Org")
    base = await space.base("Analytics Base")
    table = await base.table("Orders Table")

    # Records
    rec = await table.add({"Name": "Alice", "Age": 30, "IsActive": True})
    got = await table.get_record(rec["id"])
    await table.delete_record(rec["id"])  # optional cleanup

    await data.close()

asyncio.run(main())

Notes

  • Requires Python >= 3.10
  • Optional env config loaded via python-dotenv:
    • TEABLE_BASE_URL, TEABLE_TOKEN, LAYDATA_VERSION

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

laydata-0.1.0.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

laydata-0.1.0-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file laydata-0.1.0.tar.gz.

File metadata

  • Download URL: laydata-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for laydata-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6f33de7dda493d81a41ae2b1bfc627275e328f07fc4649223103688e51c0b9e2
MD5 9c4c268854365accd4520440ee1bee8c
BLAKE2b-256 cea9760242d85d4501f58b4c09e1bf5967bd71968022a62c5b47e830407c8e64

See more details on using hashes here.

File details

Details for the file laydata-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: laydata-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for laydata-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09269c2e1f9d7a7f6896a1385212f6c27b96bb456fcbc81d95631f690a3a0ab4
MD5 b4f01063152c5d7b53c2338de20c1156
BLAKE2b-256 23f9a8aa3789c168d2e4be8cdb52db98aba3f798cbc5ca41352c6941966d26a7

See more details on using hashes here.

Supported by

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