Skip to main content

TrimPy

GitHub CodeQL Lint

A basic API implementation for Trimlight Select systems.

Install:

python3 -m pip install --upgrade TrimPy

Usage:

Usage: TrimPy [options]

Options:
  -h, --help            show this help message and exit
  -i IP, --ip=IP        IP address to connect to (required)
  -m MODE, --mode=MODE  set trimlight to mode: timer, or manual
  -p PATTERN, --pattern=PATTERN
                        set trimlight to pattern: NEW_YEAR, ST_VALENTINE,
                        ST_PATRICK, MOTHERS_DAY, INDEPENDENCE_DAY, DEFAULT,
                        HALLOWEEN, THANKSGIVING, CHRISTMAS (also accepts
                        custom values in the form of integers representing the
                        pattern number)
  -n NAME, --set-name=NAME
                        set trimlight device name (< 25 characters)
  -d N, --dot-count=N   set trimlight device dot count to N (< 4096 dots)
  -q N, --query-pattern=N
                        query trimlight for information about pattern number N
  -D N, --delete-pattern=N
                        delete pattern number N
  -v, --verbose         make lots of noise [default: False]
  -V, --version         print version and exit

  Create/Update/Preview Pattern:
    create/update/preview a trimlight pattern to match your liking

    --preview-pattern   preview a pattern specified by the options below, will
                        not update pattern if using '--source-pattern'
    --source-pattern=N  source values from pattern number N
    --dest-pattern=N    write updated values to pattern number N
    --name=PATNAME      set pattern name (< 25 characters)
    --animation=ANIMATION
                        set animation style: STATIC, CHASE_FORWARD,
                        CHASE_BACKWARD, MIDDLE_TO_OUT, OUT_TO_MIDDLE, STROBE,
                        FADE, COMET_FORWARD, COMET_BACKWARD, WAVE_FORWARD,
                        WAVE_BACKWARD, SOLID_FADE
    --speed=SPEED       set animation speed [0-255]
    --brightness=BRIGHTNESS
                        set brightness [0-255]
    --color-one=R G B   set 'R G B' integer values for color index one
    --color-two=R G B   set 'R G B' integer values for color index two
    --color-three=R G B
                        set 'R G B' integer values for color index three
    --color-four=R G B  set 'R G B' integer values for for color index four
    --color-five=R G B  set 'R G B' integer values for color index five
    --color-six=R G B   set 'R G B' integer values for color index six
    --color-seven=R G B
                        set 'R G B' integer values for color index seven
    --count-one=N       set color index one to repeat N times [0-30]
    --count-two=N       set color index two to repeat N times [0-30]
    --count-three=N     set color index three to repeat N times [0-30]
    --count-four=N      set color index four to repeat N times [0-30]
    --count-five=N      set color index five to repeat N times [0-30]
    --count-six=N       set color index six to repeat N times [0-30]
    --count-seven=N     set color index seven to repeat N times [0-30]

Metadata

Release files for TrimPy 1.1.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 TrimPy 1.1.0
File Size Uploaded
trimpy-1.1.0.tar.gz 20.8 kB Details

Built distribution (wheel)

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

Total release size: 45.6 kB

Release files / trimpy-1.1.0.tar.gz

Download URL trimpy-1.1.0.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0c7480582688dc3815080bb03628461202d436e353acdaaf4d2f726b67a5bde3
BLAKE2b-256 checksum
How to use checksums
c03fe2e9949826a517b401d5e15c4c169e53643d12c4ab26d93f6376545d975e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Feb 23, 2025.

Transparency log

Release files / TrimPy-1.1.0-py3-none-any.whl

Download URL TrimPy-1.1.0-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25a7b4de7ccd89e4b6f0c0c0a372432a7efacd2d23f80e8fc2c2dd6d457b4e3a
BLAKE2b-256 checksum
How to use checksums
7d4bab2c27cce77ef96e91467f3aa967fe5a804019721d8ed793b4a078b803b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Feb 23, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

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