Superblocks Agent Python SDK
Installation
Use the package manager pip to install.
pip install superblocks-agent-sdk
Quickstart
Run an API
from superblocks_agent_sdk.api import Api
from superblocks_agent_sdk.client import Client, Config
from superblocks_agent_sdk.testing.step import on, Params
# configure client
client = Client(config=Config(token="my-token"))
# specify api to run
api = Api("my-api-id")
# run with client in context manager
with client as c:
# run api
result = api.run(client=c, inputs={"input1": "foo", "input2": 5})
# create a mock for any step named "Step1" and have it return {"im": "mocked"}
mock = on(params=Params(step_name="Step1")).return_({"im": "mocked"})
result_with_mock = api.run(client=c, mocks=[mock])
# get api output
print(result.get_result())
# get block output by name
print(result_with_mock.get_block_result("Step1")) # {"im": "mocked"}
Metadata
Release files for superblocks-agent-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| superblocks-agent-sdk-0.1.1.tar.gz | 90.5 kB | Without provenance | Details for superblocks-agent-sdk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| superblocks_agent_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for superblocks_agent_sdk-0.1.1-py3-none-any.whl |
Total release size: 263.9 kB
Release files / superblocks-agent-sdk-0.1.1.tar.gz
| Download URL | superblocks-agent-sdk-0.1.1.tar.gz |
|---|---|
| Size | 90.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
596ccbb685f11c66296ca8eafa65f59b12da4ec7143aa2f6ccb672416cdcc860
|
|
BLAKE2b-256 checksum How to use checksums |
7ca7310188a1d5b68d0c2b4a41a97252df4d4b1d39e92984814b9419223cba76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Release files / superblocks_agent_sdk-0.1.1-py3-none-any.whl
| Download URL | superblocks_agent_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 173.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a00dc23a4e8ec38b339a015541435958d230325b5b9c919b0191b8d7912a08cf
|
|
BLAKE2b-256 checksum How to use checksums |
09d37eb69cfa50a469e35e7d3f0e1ca491d6d111a176056b59d978bbe6aef950
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for superblocks-agent-sdk 0.1.1
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.