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().
Metadata
Release files for catworld-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| catworld_sdk-0.1.1.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| catworld_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / catworld_sdk-0.1.1.tar.gz
| Download URL | catworld_sdk-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c34e866d8c9f75358903d2307ddd94336f05a88c02a20ced3a962d2db38b1a96
|
|
BLAKE2b-256 checksum How to use checksums |
1ea730cc8bc6032dce23a5bf1e7324946ac61b284eb4c6fa7c607c1c0c44575f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / catworld_sdk-0.1.1-py3-none-any.whl
| Download URL | catworld_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5cae9cb4c377019f5de7d2811239bafbfd513f4dadb38154b80147bd73e1345
|
|
BLAKE2b-256 checksum How to use checksums |
2e8771fa9f718ed23b8e1bcf1e5e81289816254a17e47058a1d8e9b72e4ed1b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for catworld-sdk 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.