Weaver Python SDK
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_KEYWEAVER_ORGANIZATION_ID/WEAVER_PROJECT_IDfor canonical IDsWEAVER_ORGANIZATION/WEAVER_PROJECTfor 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 Learning —
MetaClaw 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9668d3dceb8ab6dc8523e67c138e816aff81cd949409258582a0f7d99126857
|
|
| MD5 |
0e15eef6af0a4e1ce58c64c1bfba873c
|
|
| BLAKE2b-256 |
2bee9ef173a9fc2cab0c157075efc6b4ef7ca8af9760458646c3ecc5e0c7430f
|
Provenance
The following attestation bundles were made for nex_weaver-1.10.0.tar.gz:
Publisher:
publish.yml on nex-agi/weaver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nex_weaver-1.10.0.tar.gz -
Subject digest:
c9668d3dceb8ab6dc8523e67c138e816aff81cd949409258582a0f7d99126857 - Sigstore transparency entry: 2342134760
- Sigstore integration time:
-
Permalink:
nex-agi/weaver@cb6de37c5c4747cfbdaae69d8a7c96fcfe9e6a4a -
Branch / Tag:
refs/tags/v1.10.0 - Owner: https://github.com/nex-agi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cb6de37c5c4747cfbdaae69d8a7c96fcfe9e6a4a -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0b9a141565f272e1a11c0936c369727e577cca854b432cce03fc45a44f4675d
|
|
| MD5 |
fc7f8bdc7478c10c321aa1fcd2dde760
|
|
| BLAKE2b-256 |
c59a2b517ce24fa3fefd7e257b586c9374e45f749bd17d5d4a2d10d22de77921
|
Provenance
The following attestation bundles were made for nex_weaver-1.10.0-py3-none-any.whl:
Publisher:
publish.yml on nex-agi/weaver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nex_weaver-1.10.0-py3-none-any.whl -
Subject digest:
a0b9a141565f272e1a11c0936c369727e577cca854b432cce03fc45a44f4675d - Sigstore transparency entry: 2342134778
- Sigstore integration time:
-
Permalink:
nex-agi/weaver@cb6de37c5c4747cfbdaae69d8a7c96fcfe9e6a4a -
Branch / Tag:
refs/tags/v1.10.0 - Owner: https://github.com/nex-agi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cb6de37c5c4747cfbdaae69d8a7c96fcfe9e6a4a -
Trigger Event:
release
-
Statement type: