Skip to main content

Monopane Python SDK

Python client for the Monopane API: courses, modules, lessons and activities; learners, enrollments, progress and quizzes; webhooks.

API reference: https://api.monopane.io/docs

Install

pip install monopane

Requires Python 3.11 or newer.

Authentication

Create an API key in the Monopane console. Keys start with mpk_live_ (or mpk_test_ for test mode) and belong to one tenant (project).

Usage

import os
import monopane

config = monopane.Configuration(
    host="https://api.monopane.io",
    access_token=os.environ["MONOPANE_API_KEY"],
)
tenant_id = "tnt_..."

with monopane.ApiClient(config) as client:
    courses = monopane.CoursesApi(client)

    course = courses.create_course(
        tenant_id,
        monopane.CreateCourseRequest(title="Intro to SQL", slug="intro-to-sql"),
    )

    page = courses.list_courses(tenant_id)
    print(len(page.data), page.next_cursor)

Errors raise monopane.ApiException, with .status and .body.

Quiz answers

Quiz answers are a union type. Build each one from its model and wrap it in SubmissionAnswer:

answer = monopane.SubmissionAnswer(
    monopane.MultipleChoiceAnswer(question_id="q1", type="multiple_choice", answer="4")
)
monopane.SubmissionsApi(client).create_submission(
    tenant_id,
    enrollment_id,
    monopane.CreateSubmissionRequest(activity_id=activity_id, answers=[answer]),
)

Do not pass a plain dict in answers: the SDK serializes it as null and the API rejects the request.

About this package

The client is generated from the Monopane OpenAPI document with OpenAPI Generator. In the source repository everything except this README and pyproject.toml is generated; regenerate with pnpm sdk:generate instead of editing it.

Metadata

Release files for monopane 0.2.0

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

Source distribution (sdist)

Source distribution for monopane 0.2.0
File Size Uploaded Provenance Actions
monopane-0.2.0.tar.gz 87.3 kB With provenance Details for monopane-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monopane 0.2.0
File Interpreter ABI Platform Actions
monopane-0.2.0-py3-none-any.whl Python 3 none any Details for monopane-0.2.0-py3-none-any.whl

Total release size: 336.5 kB

Release files / monopane-0.2.0.tar.gz

Download URL monopane-0.2.0.tar.gz
Size 87.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c308edd5e1871c9d2c8f1d236a1eea89ee7f6a59ebc1925f55492c29eaa2bed3
BLAKE2b-256 checksum
How to use checksums
5b882a983d55588a11f01d2e3af083136c531aaf0f3bbbf2b392b6b610641876
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Release files / monopane-0.2.0-py3-none-any.whl

Download URL monopane-0.2.0-py3-none-any.whl
Size 249.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c301b7007348bd6c92117d9ed98bb453f6a70c31b0e8821ec2c1dc709d77f110
BLAKE2b-256 checksum
How to use checksums
c6b34939a5b02280e1aca1374f49a402abc667a08ce49744b8e7e9db58e61060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Security for monopane 0.2.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for monopane-0.2.0.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 Nov 24, 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