Skip to main content

foundry-client

Python client for FoundryNet — MINT Protocol work settlement on Solana.

Installation

pip install foundry-client

Relay API — recommended

No blockchain knowledge required.

from foundry_client import RelayClient, create_account

# One-time: create account
account = create_account("Acme Robotics", "ops@acme.com")
# Save api_key — shown once only

client = RelayClient(api_key="mint_xxxxx")

# Register machines
machines = client.register(["ROBOT-001", "ROBOT-002"])

# Settle when job completes — add this to your existing job completion callback
receipt = client.settle("MINT-7f3a9b", duration_seconds=3600)
print(receipt["verify_url"])  # https://solscan.io/tx/...

# History and fleet
history = client.history("MINT-7f3a9b")
fleet = client.fleet()

Direct Solana client

pip install foundry-client[solana]
from foundry_client import FoundryClient

client = FoundryClient()
client.init()
client.register_machine()
job_hash = client.generate_job_hash("work-content")
client.record_job(job_hash, duration_seconds=3600)

Links

Metadata

Release files for foundry-client 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foundry-client 3.0.0
File Size Uploaded Provenance
foundry_client-3.0.0.tar.gz 7.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for foundry-client 3.0.0
File Interpreter ABI Platform
foundry_client-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / foundry_client-3.0.0.tar.gz

Download URL foundry_client-3.0.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9c29fa081d9b884082c99187748ddfb3ff0dac984002612aba0e178008427c45
BLAKE2b-256 checksum
How to use checksums
3a9688fd53f76dd971756c87348ab3c69c6cefeedaa8b39b7ebf1e0700737b5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Release files / foundry_client-3.0.0-py3-none-any.whl

Download URL foundry_client-3.0.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de065dd56434a0988e72faf612918c2b9d378bafd34c47b15eb1833dd1c88880
BLAKE2b-256 checksum
How to use checksums
1b1990b977ceecd87423606abbd3a0bc7d13f74133264a1477e2467cefa82d26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Security for foundry-client 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page