Cliente oficial Python para a API Catworld
Project description
catworld-sdk
Cliente oficial Python para a API Catworld.
Instalação
pip install catworld-sdk
Uso
from catworld import CatworldClient
with CatworldClient("https://seu-catworld.exemplo.com", "cw_live_...") as client:
projects = client.projects()
datasets = client.datasets()
result = client.upload("dados.csv", dataset_id="...", mode="replace")
print(result["status"], result["rowCount"])
rows = client.query("SELECT TOP 10 * FROM [schema].[tabela]")
print(rows["rows"])
Métodos
projects()/datasets()/tables(dataset_id)/rows(table_id, limit=100)query(sql, timeout=30, limit=10000)upload(path, dataset_id, mode="replace", key_column=None, poll_interval=2)
O token de API precisa de permissão WRITE (ou ADMIN) no escopo do dataset para usar upload().
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
catworld_sdk-0.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file catworld_sdk-0.1.0.tar.gz.
File metadata
- Download URL: catworld_sdk-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
904fd3a1540b91ec693f0739802fe29be22ac5e19088692a8a88ad446dfb046a
|
|
| MD5 |
d7d1095e81fc66aa2b8ded24d61c8b33
|
|
| BLAKE2b-256 |
5552a55c1045f49a6d81f1ec2e3404e9af77d525afd8ff0303e59eaeda515b25
|
File details
Details for the file catworld_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: catworld_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59bee4671a1d400d62e0695ccc5481d5a7a7ccdc3d2b82f2af47533dd262d452
|
|
| MD5 |
c78970c181caf8d826f30e7830f8ece2
|
|
| BLAKE2b-256 |
4740e1c05f39983767cac759b35cda538f6a9dae0b867d0f62ce8615562c902d
|