Skip to main content

Weaver Python SDK

PyPI version Python CI

English | 中文

Python client for the NexWeave Weaver server. The SDK mirrors the REST API exposed by weaver-server and provides ergonomic helpers for training, sampling, telemetry, and operations management.

Installing locally

pip install nex-weaver

Configuration

Configuration can be provided via keyword arguments or environment variables:

  • WEAVER_API_KEY
  • WEAVER_ORGANIZATION_ID / WEAVER_PROJECT_ID for canonical IDs
  • WEAVER_ORGANIZATION / WEAVER_PROJECT for UUIDs, slugs, or display names

Canonical IDs take precedence. When no organization or project is configured, the server keeps its stable personal-organization/default-project fallback.

Quickstart

from weaver import ServiceClient

def main():
    with ServiceClient() as client:
        session = client.ensure_session()
        print(session)

if __name__ == "__main__":
    main()

Select a scope by human-readable references, or discover and resolve available scopes:

with ServiceClient(organization="research", project="alignment") as client:
    client.ensure_session()
weaver organizations list
weaver projects list --organization research
weaver scope resolve --organization research --project alignment

Organization slugs are globally unique. Project slugs and names are unique inside their organization; an ambiguous display name is rejected instead of guessed.

Usage

See examples/weaver_walkthrough.ipynb for an interactive walkthrough of the full SDK workflow using a Pig Latin translation task — covering data preparation, LoRA / full fine-tuning, sampling, and checkpoint management.

For a complete runnable script, see examples/pig_latin.py. For large packed datasets, examples/streaming_sft.py shows bounded token-budget batching and submit-ahead.

Ecosystem

NexRL is the companion RL training framework. In its training-service mode, NexRL orchestrates the full RL loop (rollouts, trajectory collection, policy updates) while Weaver handles the underlying training and inference services.

Use Cases

OpenClaw Autonomous LearningMetaClaw has integrated Weaver as an RL backend. By setting rl.backend=weaver, MetaClaw turns every live conversation into a learning signal and uses Weaver for cloud-based LoRA training, enabling personal agents to continuously evolve without a local GPU.

Deep Dive

For more technical details, see Deep Dive into Weaver.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nex_weaver-1.10.0.tar.gz (95.4 kB view details)

Uploaded Source

Built Distribution

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

nex_weaver-1.10.0-py3-none-any.whl (87.2 kB view details)

Uploaded Python 3

File details

Details for the file nex_weaver-1.10.0.tar.gz.

File metadata

  • Download URL: nex_weaver-1.10.0.tar.gz
  • Upload date:
  • Size: 95.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nex_weaver-1.10.0.tar.gz
Algorithm Hash digest
SHA256 c9668d3dceb8ab6dc8523e67c138e816aff81cd949409258582a0f7d99126857
MD5 0e15eef6af0a4e1ce58c64c1bfba873c
BLAKE2b-256 2bee9ef173a9fc2cab0c157075efc6b4ef7ca8af9760458646c3ecc5e0c7430f

See more details on using hashes here.

Provenance

The following attestation bundles were made for nex_weaver-1.10.0.tar.gz:

Publisher: publish.yml on nex-agi/weaver

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

File details

Details for the file nex_weaver-1.10.0-py3-none-any.whl.

File metadata

  • Download URL: nex_weaver-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 87.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for nex_weaver-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b9a141565f272e1a11c0936c369727e577cca854b432cce03fc45a44f4675d
MD5 fc7f8bdc7478c10c321aa1fcd2dde760
BLAKE2b-256 c59a2b517ce24fa3fefd7e257b586c9374e45f749bd17d5d4a2d10d22de77921

See more details on using hashes here.

Provenance

The following attestation bundles were made for nex_weaver-1.10.0-py3-none-any.whl:

Publisher: publish.yml on nex-agi/weaver

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

Release history Release notifications | RSS feed

1.14.0

2 files

1.13.0

2 files

1.12.0

2 files

This release

1.10.0 This release

2 files

1.9.0

2 files

1.7.0.4

2 files

1.7.0.3

2 files

1.7.0.2

2 files

1.7.0.1

2 files

1.7.0

2 files

1.6.3

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.7

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

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