Skip to main content

luma.core | luma.docs | luma.emulator | luma.examples | luma.lcd | luma.led_matrix | luma.oled

Luma.Emulator

https://github.com/rm-hull/luma.emulator/workflows/luma.emulator/badge.svg?branch=master https://coveralls.io/repos/github/rm-hull/luma.emulator/badge.svg?branch=master https://img.shields.io/pypi/pyversions/luma.emulator.svg https://img.shields.io/pypi/v/luma.emulator.svg https://img.shields.io/pypi/dm/luma.emulator

luma.emulator provides a series of pseudo-display devices which allow the luma.core components to be used without running a physical device. These include:

  • Real-time (pixel) emulator, based on pygame

  • LED matrix and 7-segment renderers

  • PNG screen capture

  • Animated GIF animator

  • Real-time ASCII-art & block emulators

Documentation

Documentation can be found on https://luma-emulator.readthedocs.io.

clock invaders crawl asciiart max7219 emulator

License

The MIT License (MIT)

Copyright (c) 2017-2026 Richard Hull and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contributing

Pull requests (code changes / documentation / typos / feature requests / setup) are gladly accepted. If you are intending to introduce some large-scale changes, please get in touch first to make sure we’re on the same page: try to include a docstring for any new method or class, and keep method bodies small, readable and PEP8-compliant. Add tests and strive to keep the code coverage levels high.

GitHub

The source code is available to clone at: https://github.com/rm-hull/luma.emulator

Contributors

  • Thijs Triemstra (@thijstriemstra)

  • Christoph Handel (@fragfutter)

  • Boeeerb (@Boeeerb)

  • xes (@xes)

  • Roger Dahl (@rogerdahl)

  • Václav Šmilauer (@eudoxos)

  • Claus Bjerre (@bjerrep)

ChangeLog

Version

Description

Date

1.7.0

  • Drop support for Python 3.8

  • asciiart: fix compatibility with Pillow ≥ 10

2026/02/01

1.6.0

  • Drop support for Python 3.7

2024/10/26

1.5.0

  • Drop support for Python 3.6

  • Switch to implicit namespace package configuration

2023/08/31

1.4.0

  • Remove Python 3.5 support. Only Python 3.6 or newer is supported.

2020/12/29

1.3.0

  • Remove Python 2.7 support. Only Python 3.5 or newer is supported.

2020/07/04

1.2.0

  • Rework namespace handling for luma sub-projects

2019/06/16

1.1.0

  • Added ASCII-block emulator

2018/02/03

1.0.2

  • Changed version number to inside luma/emulator/__init__.py

2017/11/23

1.0.1

  • Workaround pygame bug & use io module

2017/11/22

1.0.0

  • Stable version

  • Minor documentation and setup fixes

2017/11/03

0.2.5

  • Correct noop import

2017/09/06

0.2.4

  • Move show/hide/contrast methods into emulator

  • Add segment mapper

  • Refactor tests

2017/04/30

0.2.3

  • Added ASCII-art emulator

2017/04/15

0.1.3

  • Add contrast & show/hide functionality to pygame emulator

2017/03/02

0.1.2

  • Restrict exported Python symbols from luma.emulator.device

2017/03/02

0.1.1

  • Split out emulator functionality from rm-hull/luma.core

2017/02/17

Release files for luma.emulator 1.7.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 luma.emulator 1.7.0
File Size Uploaded
luma_emulator-1.7.0.tar.gz 879.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for luma.emulator 1.7.0
File Interpreter ABI Platform
luma_emulator-1.7.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 906.4 kB

Release files / luma_emulator-1.7.0.tar.gz

Download URL luma_emulator-1.7.0.tar.gz
Size 879.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0f4bc1d528fe4f4aa4a6f98c8f7120b915bba1878f67899067ba88e98250b444
BLAKE2b-256 checksum
How to use checksums
65ea4962e87863341c70996b02ab3387c902b7308c153251373765d78c19ef9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / luma_emulator-1.7.0-py2.py3-none-any.whl

Download URL luma_emulator-1.7.0-py2.py3-none-any.whl
Size 27.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0accb342e12441bdb602c5daa8a1d54a93e09eba8f0c4be2093d7ab066dfa151
BLAKE2b-256 checksum
How to use checksums
cf1b98b23ed86658b0134fefcbeea986943acfc368f3e37b5b691219edefb3eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.7.0 This release

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

1 release file

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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