Skip to content

SDKs

Official clients for /v4 are developed in this repository. They handle login, pagination and batching.

pip install marmotgraph-sdk
from marmotgraph import Client, Stage

client = Client("https://core.example.org", token="<access-token>")

instance = client.instances.get(some_uuid, stage=Stage.RELEASED)

page = client.instances.list(types=["https://example.org/types/Person"])
for person in page.all_items():  # fetches further pages as needed
    print(person.uuid)

Requires Python 3.10 or newer. Authentication options include a token, client credentials and device login.

Python SDK documentation

The SDK is published to GitHub Packages, which requires a token with read:packages even for public packages.

<dependency>
    <groupId>org.marmotgraph</groupId>
    <artifactId>marmotgraph-sdk</artifactId>
    <version>0.1.0</version>
</dependency>

Java SDK documentation

Both document the same topics: authentication, configuration, instances, batches, pagination, queries, structure, and users and administration.