Skip to main content

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

pluginfer-1.9.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pluginfer-1.9.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pluginfer-1.9.0.tar.gz.

File metadata

  • Download URL: pluginfer-1.9.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

Hashes for pluginfer-1.9.0.tar.gz
Algorithm Hash digest
SHA256 c2ac6d1d50ff2e87f9ab411765fb25a3ed7ee05688f00a0a3cad365c4262b94c
MD5 575f961e03549446153433b2e59af088
BLAKE2b-256 7c418e71e4561dee6147bddbf8262b43cd22fc3d4469daa160c78fc66d0ab20a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pluginfer-1.9.0.tar.gz:

Publisher: release.yml on pluginfer/pluginfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pluginfer-1.9.0-py3-none-any.whl.

File metadata

  • Download URL: pluginfer-1.9.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

Hashes for pluginfer-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbec638435d9484fca8462a8b9d72305a8d87a0329546ef8b4a732e5a39edaac
MD5 df5d85dc44e6e4cda7ecd2e4a30b2d0a
BLAKE2b-256 593384609a2a58a1274738f6f7433a241a91b52a7521a03ee145f79eb424481f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pluginfer-1.9.0-py3-none-any.whl:

Publisher: release.yml on pluginfer/pluginfer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page