SDKs¶
Official clients for /v4 are developed in this repository. They handle login, pagination and batching.
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.
Both document the same topics: authentication, configuration, instances, batches, pagination, queries, structure, and users and administration.