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.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| monopane-0.1.0.tar.gz | 86.7 kB | With provenance | Details for monopane-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| monopane-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for monopane-0.1.0-py3-none-any.whl |
Total release size: 335.1 kB
Release files / monopane-0.1.0.tar.gz
| Download URL | monopane-0.1.0.tar.gz |
|---|---|
| Size | 86.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9e7cbf724e183c6c29b7345d964938b2e6b11883a77a473c7383b010d48ef50
|
|
BLAKE2b-256 checksum How to use checksums |
d6ba333a08e900a4c358ba20fe6445d965210286827044e040888fdc6a6b0e73
|
| 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 logRelease files / monopane-0.1.0-py3-none-any.whl
| Download URL | monopane-0.1.0-py3-none-any.whl |
|---|---|
| Size | 248.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e78d20edbddbb1416e013a5afd36c4fe3809ebc6e69ca31e53692f08b599c58
|
|
BLAKE2b-256 checksum How to use checksums |
6f6a6a9e94f38be0202f463a69dd3b4c42db276a81b68f3ff3ddd55a441ca38b
|
| 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 logSecurity for monopane 0.1.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.
Attestation for monopane-0.1.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 logA 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.