Skip to main content

Sammler Python SDK

The official Python SDK for interacting with the Sammler GraphQL API.

This SDK is async-first, type-safe, and powered by httpx and pydantic. It allows developer-tier Sammler users to programmatically manage, query, and update their personal collections.

Features

  • Async/Await Support: Built on top of httpx for efficient, non-blocking network calls.
  • Type Safety: All responses are fully parsed into Pydantic models for auto-completion and compile-time checks.
  • Developer Profile Integration: Direct access to your collections, items, and profile details using your Sammler API key.

Installation

Install the package via pip from PyPI:

pip install sammler-sdk

Quick Start

To use the SDK, you need a Sammler API Key. Once you have it, you can instantiate the client as an async context manager:

import asyncio
from sammler import SammlerClient

async def main():
    # Initialize the client with your API key
    async with SammlerClient(api_key="your_sammler_api_key") as client:
        # Retrieve all of your collections
        collections = await client.get_collections()
        
        print(f"Found {len(collections)} collection(s):")
        for collection in collections:
            print(f"- {collection.name}: {collection.description or 'No description'}")

if __name__ == "__main__":
    asyncio.run(main())

Available SDK Methods

The SammlerClient exposes high-level async methods matching the Sammler API:

  • get_current_user(): Retrieve the authenticated developer user's profile info (ID, name, email, tier, etc.).
  • get_collections(): Retrieve all collections belonging to the authenticated user.
  • get_collection(id: str): Retrieve a specific collection by its ID, including all items inside it.
  • get_items(): Retrieve all collection items across all collections.
  • get_item(id: str): Retrieve a single item by its ID, including details about its parent collection.

Raw client access

If you need direct access to the underlying raw queries/operations without wrapper methods, you can use client.raw_client.

Code Generation & Development

If you want to modify queries or develop/contribute to the SDK:

  1. Clone the repository and set up a virtual environment:
    python3 -m venv .venv
    source .venv/bin/activate
    
  2. Install the package in editable mode with development dependencies:
    pip install -e .
    pip install "ariadne-codegen[http]"
    
  3. Update queries in graphql/operations.graphql and run codegen:
    ariadne-codegen
    

Metadata

Release files for sammler-sdk 1.1.2

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

Source distribution (sdist)

Source distribution for sammler-sdk 1.1.2
File Size Uploaded Provenance Actions
sammler_sdk-1.1.2.tar.gz 9.5 kB With provenance Details for sammler_sdk-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sammler-sdk 1.1.2
File Interpreter ABI Platform Actions
sammler_sdk-1.1.2-py3-none-any.whl Python 3 none any Details for sammler_sdk-1.1.2-py3-none-any.whl

Total release size: 21.8 kB

Release files / sammler_sdk-1.1.2.tar.gz

Download URL sammler_sdk-1.1.2.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
83f41a8f1cb89d30240cecb17c48793dddcc24fd621db862a8988cdb1812702b
BLAKE2b-256 checksum
How to use checksums
c4c85bc63b69c5c656cac4fbf4a46585c66c98e7947e7eb3b27e581577b16803
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 7, 2026.

Transparency log

Release files / sammler_sdk-1.1.2-py3-none-any.whl

Download URL sammler_sdk-1.1.2-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ced089ed729c38640deb9f904a496c9f794cc78cdad030615377e1c87a17d77e
BLAKE2b-256 checksum
How to use checksums
874c23f7292d63a93dac26c1591508d58a85063adbd0ee5e2f8fe8072a0a8cbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 7, 2026.

Transparency log

Security for sammler-sdk 1.1.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sammler_sdk-1.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 7, 2026.

Transparency log

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