Skip to main content

Python bindings for slop

Just a quick python extension for region selecting. Read https://github.com/naelstrof/slop for info on what kind of region selecting.

Usage

import slop
rect = slop.select(border=30,r=1,g=0,b=0,a=0.5)
print(rect)

returns

{'x': 308, 'y': 179, 'w': 654, 'h': 447, 'id': 4199883, 'cancelled': 0}

Available arguments:

Argument Type Description
border Float The border width in pixels.
padding Float Space between the actual selection and the returned pixels, this is visible during selection.
tolerance Float The distance the mouse has to move in pixels before detecting a drag selection.
highlight Bool Draws an overlay over the selection with the given color. Only useful with alpha.
noopengl Bool Disables OpenGL accelleration, as well as shaders.
nokeyboard Bool Disables being able to cancel a selection with the keyboard.
nodecorations Bool Set to 0, 1 or 2. Enables different methods for removing window frame decorations.
shaders List A list of shader names. Example ["wiggle", "blur1", "blur2"]. Requires files, see slop website.
r Float The red component of the rectangle color.
g Float The green component of the rectangle color.
b Float The blue component of the rectangle color.
a Float The alpha component of the rectangle color.
xdisplay String The desired X display string.
quiet Bool If set to true, keeps slop from printing info to std::cout.

Installation

Windows: python setup.py install Linux: sudo python setup.py install

Metadata

Release files for slop 0.0.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 slop 0.0.1
File Size Uploaded Provenance Actions
slop-0.0.1.tar.gz 2.7 kB Without provenance Details for slop-0.0.1.tar.gz

Release files / slop-0.0.1.tar.gz

Download URL slop-0.0.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
844235c27acb38c3108e4a757bba197b7b2eed05106fd995af4fd29c71b17a0c
BLAKE2b-256 checksum
How to use checksums
5b8a41bf601b79ce15e764ab0bc744825400e57e15545567219a4f0d48676632
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for slop 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

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