Skip to main content

python-xrectsel

Geometry of a rectangular screen region

Python Versions Build Status PyPI version License: GPLV3 Code style: black

The project idea based on xrectsel. Its Python variant with some enhancements.

Installation:

pip install python-xrectsel

Usage:

❯ xrectsel --help
Usage: xrectsel [OPTIONS]

Options:
  -f, --format TEXT               Format output string with fallowing options:

                                  %x - start x-coordinate

                                  %y - start y-coordinate

                                  %X - start

                                  %Y - end

                                  %w - width

                                  %h - height

                                  Note: default output is in "%wx%h+%x+%y"
                                  format.

  -ci, --cursor-icon [crosshair|cross|pencil|dotbox]
                                  Select cursor icon
  -cf, --cursor-foreground <INTEGER INTEGER INTEGER>...
                                  Select cursor foreground color
  -cb, --cursor-background <INTEGER INTEGER INTEGER>...
                                  Select cursor background color
  -h, --help                      Show this message and exit.
  • We can collect selected region geometry just by command xrectsel. Default format is %wx%h+%x+%y
$ xrectsel
$ # select rectangle on sreen
901x634+44+7 #(x-coordinate, y-coordinate, width, height)
  • We can format output geometry string
$ xrectsel -f "--x=%x --y=%y --width=%w --height=%h"
--x=264 --y=387 --width=1204 --height=519

Metadata

Release files for python-xrectsel 1.5

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

Source distribution (sdist)

Source distribution for python-xrectsel 1.5
File Size Uploaded Provenance Actions
python-xrectsel-1.5.tar.gz 7.7 kB Without provenance Details for python-xrectsel-1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-xrectsel 1.5
File Interpreter ABI Platform Actions
python_xrectsel-1.5-py3-none-any.whl Python 3 none any Details for python_xrectsel-1.5-py3-none-any.whl

Total release size: 13.2 kB

Release files / python-xrectsel-1.5.tar.gz

Download URL python-xrectsel-1.5.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2f30f772aa6b2f7439e2707453ddbf0a1965ad1052fedf39b33a0fd2ecfae72d
BLAKE2b-256 checksum
How to use checksums
5c9fe1535b528d28c26df1384ae07cb376d9d2a0aa6dfc71d326929237ca4c06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Release files / python_xrectsel-1.5-py3-none-any.whl

Download URL python_xrectsel-1.5-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f3af2bd816f68406813e77e7090cf2cfe58442053aa596c1c42b5ab8b5bdfda
BLAKE2b-256 checksum
How to use checksums
f7a4f0bde0501dbc314e5fe9cad876e4d8a1c8fa882f1912fd8431110943b76b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.14

Security for python-xrectsel 1.5

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