Skip to main content

PyLasaDataset PyPI CI

LASA Handwriting dataset loader and other tools for Python (3.9+).

The raw dataset is downloaded automatically from the official epfl-lasa/LASAHandwritingDataset repository the first time it is used, and cached locally (default: ~/.cache/pyLasaDataset; override with the PYLASADATASET_DATA_DIR environment variable).

Installation

pip install pylasadataset

Or directly from source:

pip install git+https://github.com/justagist/pylasadataset

Usage

import pyLasaDataset as lasa

# DataSet object has all the LASA handwriting data files
# as attributes, eg:
angle_data = lasa.DataSet.Angle
sine_data = lasa.DataSet.Sine

# List all available patterns:
print(lasa.DataSet.names)

# Each Data object has attributes dt and demos (For documentation,
# refer original dataset repo:
# https://github.com/epfl-lasa/LASAHandwritingDataset/blob/master/Readme.txt)
dt = angle_data.dt
demos = angle_data.demos # list of 7 Demo objects, each corresponding to a
                         # repetition of the pattern

# Each Demo object in demos list will have attributes pos, t, vel, acc
# corresponding to the original .mat format described in
# https://github.com/epfl-lasa/LASAHandwritingDataset/blob/master/Readme.txt
demo_0 = demos[0]
pos = demo_0.pos # np.ndarray, shape: (2,1000)
vel = demo_0.vel # np.ndarray, shape: (2,1000)
acc = demo_0.acc # np.ndarray, shape: (2,1000)
t = demo_0.t # np.ndarray, shape: (1,1000)

# To visualise the data (2D position and velocity) use the plot_model utility
lasa.utilities.plot_model(lasa.DataSet.BendedLine) # give any of the available
                                                   # pattern data as argument

Development

pip install -e .[test]
pytest

Acknowledgements

The LASA Handwriting Dataset is created and maintained by the LASA lab at EPFL. See the dataset repository for its terms of use and citation information.

Metadata

Release files for pyLasaDataset 0.2.1

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

Source distribution (sdist)

Source distribution for pyLasaDataset 0.2.1
File Size Uploaded
pylasadataset-0.2.1.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyLasaDataset 0.2.1
File Interpreter ABI Platform
pylasadataset-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / pylasadataset-0.2.1.tar.gz

Download URL pylasadataset-0.2.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aa2337fb101238c3af47037ec4d103449428b1166e02b959a60188e26527a8ac
BLAKE2b-256 checksum
How to use checksums
b52c9a6974b9354e37d9a9e453643d5b817ea1060b289265a2d2ecc33693ed86
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 12, 2026.

Transparency log

Release files / pylasadataset-0.2.1-py3-none-any.whl

Download URL pylasadataset-0.2.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4aa1747523955242aad3840c4f2c4dd91bd990b2110e708d30066b120aa0af0
BLAKE2b-256 checksum
How to use checksums
7a1cc0256f311eb6de7ae806834269c06d4334927650da16bb21f9036ae80fd5
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 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.0.1

2 release files

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