Last release to PyPi: 1st February 2016

A Python package for
Standards in Learning Education and Training (LET)

Pyslet implements a number of LET-specific standards, including IMS QTI, Content Packaging and Basic LTI. It also includes support for some general standards, including the data access standard OData.

Getting Started

Download the latest Pyslet release from PyPi or grab the master from GitHub and then go to the documentation and follow the examples for the standard you are interested in. For example, to start using OData just do something like this:

import pyslet.odata2.client as odata

c = odata.Client('')
with c.feeds['DataPoints'].OpenCollection() as collection:
    for d in collection.iterpage():
        print d['TimePoint'].value, d['Temperature'].value

You'll see 10 temperatures printed from the Cambridge Weather OData service (which is implemented using Pyslet's OData Server support).

Design Objectives

The purpose of Pyslet is to expose some of the details of the standards it supports, allowing you to reuse concepts at a more granular level. For example, standards often make normative references to something simple like the media types defined by HTTP, Pyslet exposes a MediaType object with methods allowing you to parse and format instances as strings and use dictionary-style key lookup to determine if named parameters are present (such as charset or name):

>>> from pyslet.http.params import MediaType
>>> m = MediaType.from_str('text/html; Charset=utf-8; Name="Steve\'sFile.html"')
>>> print m['name']

More information