Registry / aws / learnosity-sdk

learnosity-sdk

JSON →
library0.3.13pypypi✓ verified 83d ago

The official Python SDK for integrating with the Learnosity platform. It provides tools for generating secure requests, building question and assessment UIs, and interacting with Learnosity APIs. Current version 0.3.13, released November 2024. The SDK is actively maintained, with regular minor releases.

pip install learnosity-sdk
INSTALL
IMPORT
SIG · LEARNOSITY-SDK
L
learnosity-sdk
awspythonv0.3.13
Install
2.3s avg
Import
Disk
21MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.13 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 22.4MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.3s · import 0.000s · 23MB
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Init
from learnosity_sdk.request import Init
from learnosity_sdk import Init

Instantiate the Init class with your consumer key/secret and request parameters, then generate the secure request packet.

from learnosity_sdk import Init init = Init( 'consumer_key', 'consumer_secret', { 'domain': 'localhost', 'user_id': 'demo_student', 'activity_id': 'demo_activity', 'session_id': 'demo_session', 'rendering_type': 'assess', 'type': 'local_practice', 'name': 'Demo Activity' } ) request_packet = init.generate() print(request_packet)
Debug
Known issues
deprecatedDirect import from `learnosity_sdk.init.Init` is deprecated. Use `from learnosity_sdk import Init`.
fix
Change import to `from learnosity_sdk import Init`.
affects: >=0.3.10
gotchaThe `security_packet` parameter in Init constructor was renamed to `security` in recent versions.
fix
Use `security` instead of `security_packet`.
affects: >=0.3.0
breakingPython 3.6 and earlier dropped support. SDK now requires Python 3.7+.
fix
Upgrade Python to 3.7 or later.
affects: >=0.3.0
gotchaDo not modify the generated JSON request packet before sending; changing the structure will break authentication.
fix
Use the packet as returned by `init.generate()`.
affects: all
gotchaThe `domain` parameter must match the domain registered in Learnosity, otherwise requests will fail with a security error.
fix
Set the `domain` to your application's domain (e.g., 'yourcompany.com').
affects: all
deprecated`datetime.datetime.utcnow()` used internally in older versions; removed in 0.3.11.
fix
Update to SDK >=0.3.11 to avoid deprecation warnings.
affects: <=0.3.10
Upgrade
Version history
0.3.13latest on PyPI · released Jan 14, 2026
Audit
Dependencies
requestsrequiredHTTP requests for API calls
PyJWTrequiredJWT token generation
certifirequiredSSL certificate validation (vendored in some versions)
Agent activity
14 hits · last 30 days
node
14
Resources
learnosity-sdk — pip install learnosity-sdk · libregistry