Skip to main content

Sightlines

Sightlines is a framework for using a Novation Launchpad as an information display and control panel for general computing tasks.

Sightlines is made possible by the launchpad.py library, written by @FMMT666.

Quick Start

  • Install Sightlines: pip install git+ssh://git@github.com/jarpy/sightlines
  • Run a sample app: sightlines-rainbow

Writing an App (WIP)

Cell

Grid

Individual cells are not much fun. The Grid class collect all the cells in the main 8x8 grid of the launchpad together. You can then look up cells in various ways.

Linear Addressing

All the grid cells are available for lookup by linear index. They are numbered 0 to 63, starting top-left and proceeding left-to right, then top to bottom (revealing the cultural bias of the author).

grid = Grid()
top_left_cell = grid[0]
bottom_right_cell = grid[63]

Cartesian Addressing

You can use x/y coordinates to get a cell in a more spatial way.

grid = Grid()
top_left_cell = grid[0, 0]
bottom_right_cell = grid[7, 7]

Slicing

Finally, you can use Python's slicing syntax.

grid = Grid()
second_row = grid[8:15]

CellRunner

As a rule, information displays periodically gather some data and then update the display output with what they learned. Sightlines encapsulates this behaviour in the CellRunner class. A CellRunner takes a collection of cells, and a function. It then periodically calls the function and does whatever is in it, generally setting the color of the cells.

def be_green(cells):
    for cell in cells:
        cell.set_rgb(0, 127, 0)

CellRunner()

Cell Functions

When you press a cell on the Launchpad, it can do... stuff.

Metadata

Release files for sightlines 0.3.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 sightlines 0.3.0
File Size Uploaded Provenance Actions
sightlines-0.3.0.tar.gz 9.3 kB Without provenance Details for sightlines-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sightlines 0.3.0
File Interpreter ABI Platform Actions
sightlines-0.3.0-py3-none-any.whl Python 3 none any Details for sightlines-0.3.0-py3-none-any.whl

Total release size: 20.3 kB

Release files / sightlines-0.3.0.tar.gz

Download URL sightlines-0.3.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
80ce9a5e3b23fcb88b561b3624fa0d5cd00b0b801202ac97c0088178b351b628
BLAKE2b-256 checksum
How to use checksums
79f6845320098a48a7f1a51f71c0c2fbbedfa8fb4002cded3ef6ac112063c03c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Darwin/22.3.0

Release files / sightlines-0.3.0-py3-none-any.whl

Download URL sightlines-0.3.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91c324e21577f0183c8e59e261f3ce3298323a4854aed7fe6420cc8027811d84
BLAKE2b-256 checksum
How to use checksums
044cc8bb27b0e452b0629ed99217c3f4456301ccea3e6325efbbac6b2a1c9ac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Darwin/22.3.0

Security for sightlines 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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