Skip to main content

nextfarm-sdk

Thư viện chính thức để gọi NextFarm API từ Python, hỗ trợ cả đồng bộ và async.

Mã trong kho này được sinh tự động từ OpenAPI của NextFarm. Vui lòng không sửa trực tiếp, xem CONTRIBUTING.md.

Cài đặt

pip install nextfarm-sdk

Yêu cầu Python 3.11 trở lên.

Bắt đầu

import os
from nextfarm_sdk import create_client, SANDBOX_URL
from nextfarm_sdk.api.iot import get_api_v1_iot_devices

nf = create_client(api_key=os.environ["NEXTFARM_API_KEY"], base_url=SANDBOX_URL)

page = get_api_v1_iot_devices.sync(client=nf, page=1, page_size=20)
for d in page.items or []:
    print(d.name)

# async
page = await get_api_v1_iot_devices.asyncio(client=nf, page=1)

Ghi chú

  • Mỗi endpoint là một module trong nextfarm_sdk.api.<nhóm>, gồm bốn hàm sync, sync_detailed, asyncio và asyncio_detailed. Các hàm *_detailed trả thêm mã trạng thái và header.
  • Mặc định client gọi môi trường production. Khi thử nghiệm, dùng SANDBOX_URL với khoá sandbox.
  • Mã trạng thái không có trong tài liệu sẽ ném nextfarm_sdk.errors.UnexpectedStatus.

Tài liệu

Giấy phép MIT.

Metadata

Release files for nextfarm-sdk 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nextfarm-sdk 0.1.3
File Size Uploaded Provenance Actions
nextfarm_sdk-0.1.3.tar.gz 561.7 kB With provenance Details for nextfarm_sdk-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nextfarm-sdk 0.1.3
File Interpreter ABI Platform Actions
nextfarm_sdk-0.1.3-py3-none-any.whl Python 3 none any Details for nextfarm_sdk-0.1.3-py3-none-any.whl

Total release size: 2.1 MB

Release files / nextfarm_sdk-0.1.3.tar.gz

Download URL nextfarm_sdk-0.1.3.tar.gz
Size 561.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2773eb58dfe684180446bbb3db20115cc47c5cbafd1d979b012c5c8c865408c2
BLAKE2b-256 checksum
How to use checksums
9cf85ec88413c964127f6f623206dc2a51aac4a8cc16f72e78740acec91fb019
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / nextfarm_sdk-0.1.3-py3-none-any.whl

Download URL nextfarm_sdk-0.1.3-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ebf16b81a318151c2fc47cb81116563b89ac3e16c755528abaec84e10037c418
BLAKE2b-256 checksum
How to use checksums
69c564d254be1cde5681b8cc2e512fbf8d718930139d578fd421036257a99a5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for nextfarm-sdk 0.1.3

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nextfarm_sdk-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page