This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.3.1 instead.
Reason given by maintainers: Insecure: transfer codes are weak and not generated with a cryptographic ▎ random source, and keys aren't stretched. Not compatible with current Help ▎ Peer clients. Install from source (pip install ./sdk) until 0.2.0 is ▎ released.
Help Peer Python SDK
A Python SDK for asynchronously sharing large file dumps (AI model weights) via the Help Peer network.
Installation
pip install helppeer
Quick Start
import helppeer
# Send a model directory
code = helppeer.send("./my-model", name="Llama-3-70B")
print(f"Transfer code: {code}")
# Share this code with the recipient. Data lives for 24 hours.
# Receive a transfer
helppeer.receive("38-vortex-xenon", output_dir="./received")
Configuration
import helppeer
# Use custom relay and storage nodes
helppeer.configure(
relay="https://relay.helppeer.dev",
storage_nodes=["https://node1.helppeer.dev", "https://node2.helppeer.dev"],
)
# Or use environment variables:
# HELPEER_RELAY_URL, HELPEER_STORAGE_NODES (comma-separated)
Agent Integration
import helppeer
import json
# Send and get structured result
result = helppeer.send("./model-weights", name="my-model", return_details=True)
# result = {"code": "38-vortex-xenon", "transfer_name": "my-model", "files": 4, "total_bytes": 1056}
# Receive with progress callback
def on_progress(file_path, segment, total_segments):
print(f" {file_path}: {segment}/{total_segments} segments")
helppeer.receive("38-vortex-xenon", output_dir="./received", progress=on_progress)
CLI
The SDK also installs a helppeer CLI:
helppeer send ./my-model --name "Llama-3-70B"
helppeer receive 38-vortex-xenon --output ./received
Metadata
Release files for helppeer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| helppeer-0.1.0.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| helppeer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.6 kB
Release files / helppeer-0.1.0.tar.gz
| Download URL | helppeer-0.1.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
603d296c6c284dcf5d40803290dee253c07b7ce2a5ce39ad43a1d189ef9974b9
|
|
BLAKE2b-256 checksum How to use checksums |
ab32cc02a32cb44b398528730c40071192f04c56768306a1b8c3927e9cd93c41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Release files / helppeer-0.1.0-py3-none-any.whl
| Download URL | helppeer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3761820c4a2a17bfa9e30475e42b63da8322f98000d5578555672bf18ce89704
|
|
BLAKE2b-256 checksum How to use checksums |
ca326df65929384805763f055ee45463ccc97f9726c470e659bc51fc36aa256a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|