Python SDK for Pluginfer — distributed AI compute mesh.
Project description
pluginfer
Python SDK for Pluginfer — the distributed AI compute mesh.
Install
pip install pluginfer
Quickstart
from pluginfer import Pluginfer
with Pluginfer(api_key="pf_live_...", base_url="https://api.pluginfer.network") as p:
# Submit a job, then stream events until done.
job = p.jobs.submit(
kind="llm.completion",
payload={"prompt": "Say hi.", "max_tokens": 32},
cost_ceiling_usd=0.05,
latency_ceiling_ms=10_000,
)
print(job.job_id, job.state.state)
for event in p.jobs.stream(job.job_id):
print(event["event"])
result = p.jobs.result(job.job_id)
print(p.jobs.decode_result(result))
Wallet-signature auth (no API key)
from pluginfer import Pluginfer
from pluginfer_node_sdk.wallet import Wallet # any obj with .public_key_pem and .sign(bytes)
p = Pluginfer(base_url="https://api.pluginfer.network")
sid = p.auth.login_with_wallet(Wallet.load_or_create())
# sid is now stashed; subsequent SDK calls are authed.
License
Apache 2.0.
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
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 pluginfer-1.8.0.tar.gz.
File metadata
- Download URL: pluginfer-1.8.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f9ad7e60ec838dc5ae1aa75823f399757fe8fce17d81fb508cb4f2cdc662af0
|
|
| MD5 |
e95e1845b7afec99853aab355bf5fcdf
|
|
| BLAKE2b-256 |
572354e29a988c34196ed000d68a85e5fa8748505936043543ed54cc50ae10b9
|
Provenance
The following attestation bundles were made for pluginfer-1.8.0.tar.gz:
Publisher:
release.yml on pluginfer/pluginfer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pluginfer-1.8.0.tar.gz -
Subject digest:
7f9ad7e60ec838dc5ae1aa75823f399757fe8fce17d81fb508cb4f2cdc662af0 - Sigstore transparency entry: 2194680774
- Sigstore integration time:
-
Permalink:
pluginfer/pluginfer@66bbaba3381e028f1add5d550fd1a3fe2c75f1f1 -
Branch / Tag:
refs/tags/v1.8.0 - Owner: https://github.com/pluginfer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@66bbaba3381e028f1add5d550fd1a3fe2c75f1f1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pluginfer-1.8.0-py3-none-any.whl.
File metadata
- Download URL: pluginfer-1.8.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76586706b5e9995c32f3d3e32ed7c430a4a7f80692aa7b53281c2c7629f9bbdc
|
|
| MD5 |
f4544502eed4e2cf44843f55594983db
|
|
| BLAKE2b-256 |
f94000b1da070ff68773171c2ab68613ed915640207530f67cac1958e5558848
|
Provenance
The following attestation bundles were made for pluginfer-1.8.0-py3-none-any.whl:
Publisher:
release.yml on pluginfer/pluginfer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pluginfer-1.8.0-py3-none-any.whl -
Subject digest:
76586706b5e9995c32f3d3e32ed7c430a4a7f80692aa7b53281c2c7629f9bbdc - Sigstore transparency entry: 2194680779
- Sigstore integration time:
-
Permalink:
pluginfer/pluginfer@66bbaba3381e028f1add5d550fd1a3fe2c75f1f1 -
Branch / Tag:
refs/tags/v1.8.0 - Owner: https://github.com/pluginfer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@66bbaba3381e028f1add5d550fd1a3fe2c75f1f1 -
Trigger Event:
push
-
Statement type: