Skip to main content

monitor-as-a-service (Python SDK)

Reference Python implementation of the MaaS Open Schema v1. Reads, parses and verifies dIAra/MaaS anchors directly from Stellar + IPFS — no API key, no centralized backend.

Powered by Mivisor.com.

License: MIT

Open In Colab

Coautores

Install

From source (until published to PyPI):

pip install -e ./sdk/py
# or, if using requirements.txt: -e git+https://github.com/alejoherrera/stellar_repo.git#subdirectory=sdk/py&egg=monitor_as_a_service

Quickstart

from monitor_as_a_service import Client

client = Client.testnet("GDRWQERI6PI3WICTGPJBFBEFRV7ZRLCWG3IRA2YZQA5ZINHPY23JCPFR")

project = client.project()
print(project.name, project.partner)

for o in client.outputs():
    print(o.output_id, o.workers, o.phase, o.image_url)

# Verify cryptographic integrity of one output
result = client.verify("20251029-060211")
print("JSON match:", result.json_ok, "Image match:", result.image_ok)

API

Client.testnet(account) / Client.mainnet(account)

Builds a read-only client. Optional kwargs: gateways=[...], timeout=30.

client.project() -> Project | None

Returns the project metadata (name, partner, url, system) read from proj:{code}:* keys.

client.outputs() -> Iterator[Output]

Iterates over all anchored outputs, newest first.

client.get(output_id) -> Output | None

Fetches a specific output.

client.verify(output_id, verify_image=True) -> VerificationResult

Fetches content from IPFS gateways (with fallback) and compares SHA-256 against on-chain anchors.

client.fetch_from_ipfs(cid, as_bytes=False)

Low-level: try each gateway, return parsed JSON or raw bytes.

Examples

License

MIT — see source. The schema itself is CC0.

Metadata

Release files for monitor-as-a-service 1.1.1

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

Source distribution (sdist)

Source distribution for monitor-as-a-service 1.1.1
File Size Uploaded Provenance Actions
monitor_as_a_service-1.1.1.tar.gz 10.6 kB Without provenance Details for monitor_as_a_service-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monitor-as-a-service 1.1.1
File Interpreter ABI Platform Actions
monitor_as_a_service-1.1.1-py3-none-any.whl Python 3 none any Details for monitor_as_a_service-1.1.1-py3-none-any.whl

Total release size: 20.6 kB

Release files / monitor_as_a_service-1.1.1.tar.gz

Download URL monitor_as_a_service-1.1.1.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8c540a9e3afb57bdb7af5d431f06441fc001b7e794089f41aaa425f845d7c59b
BLAKE2b-256 checksum
How to use checksums
5b939cede27b12a0066ca499b7b1acfb715b49056b0c6a8270d22354b6405e40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / monitor_as_a_service-1.1.1-py3-none-any.whl

Download URL monitor_as_a_service-1.1.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7d1048d2ebd0faf997ce7db0bde9ca06b9433d2b2183376b71a3c27fa33832c
BLAKE2b-256 checksum
How to use checksums
e75fcefc45da4f379c3d66bb6292eca9998f0cdec7a5b9eecc90daf3f6a97bab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for monitor-as-a-service 1.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.

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