This release is a pre-release and may not be stable for production use.
nextfarm-sdk
Mã trong kho này được sinh tự động từ OpenAPI công khai. Đừng sửa tay — xem CONTRIBUTING.md.
Gọi NextFarm API từ Python, có kiểu đầy đủ (đồng bộ và async). Mã sinh từ /openapi.json
và chỉ gồm các tuyến khoá API gọi được.
pip install nextfarm-sdk
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)
- Python ≥ 3.11. Mỗi tuyến là một mô-đun trong
nextfarm_sdk.api.<phân hệ>với 4 hàm:sync,sync_detailed,asyncio,asyncio_detailed. Bản*_detailedtrả thêm mã trạng thái và header. - Mặc định gọi prod (
PROD_URL). Thử nghiệm thì dùngSANDBOX_URLvới khoá sandbox. - Mã trạng thái ngoài tài liệu ném
nextfarm_sdk.errors.UnexpectedStatus.
Tài liệu: https://developers.nextfarm.vn/docs/sdk · Phiên bản và bỏ dần: VERSIONING.md · Giấy phép MIT
Metadata
Release files for nextfarm-sdk 0.1.1b14
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 | Actions |
|---|---|---|---|---|
| nextfarm_sdk-0.1.1b14.tar.gz | 559.9 kB | With provenance | Details for nextfarm_sdk-0.1.1b14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nextfarm_sdk-0.1.1b14-py3-none-any.whl | Python 3 | none | any | Details for nextfarm_sdk-0.1.1b14-py3-none-any.whl |
Total release size: 2.1 MB
Release files / nextfarm_sdk-0.1.1b14.tar.gz
| Download URL | nextfarm_sdk-0.1.1b14.tar.gz |
|---|---|
| Size | 559.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95b9ac6e91486e61fc7181f9a32e4e49b51fcf5eecfddb896996eac253299d39
|
|
BLAKE2b-256 checksum How to use checksums |
435eec8e8a719935bdc0caa39dc61e49072c79616b34ec806218055001df9d74
|
| 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 28, 2026.
Transparency logRelease files / nextfarm_sdk-0.1.1b14-py3-none-any.whl
| Download URL | nextfarm_sdk-0.1.1b14-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4932a6f91a2be0db4abec5da2aa995fb0db3a56221380f78728da5a06c9bc1ce
|
|
BLAKE2b-256 checksum How to use checksums |
28a9528d791c437fa6b8cb7239b4fd5790de98c32385d436245e6940e15d94f2
|
| 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 28, 2026.
Transparency logSecurity for nextfarm-sdk 0.1.1b14
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.
Attestation for nextfarm_sdk-0.1.1b14.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 28, 2026.
Transparency logA 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.