Skip to main content

Screenshot using python

Project description

winzy-screenshot

PyPI Changelog Tests License

Screenshot using python

Installation

First configure your Winzy project to use Winzy.

Then install this plugin in the same environment as your Winzy application.

pip install winzy-screenshot

Usage

To use

winzy screenshot -b 7.57 8.11 70.14 51.0

Press Right shift to take a screenshot. Esc twice to end.

winzy screenshot demo

To Get help, type.

winzy screenshot -h

usage: winzy screenshot [-h] [-b BBOX BBOX BBOX BBOX] [-ut] [-t TITLE] [-aw]

Screenshot using python

optional arguments:
  -h, --help            show this help message and exit
  -b BBOX BBOX BBOX BBOX, --bbox BBOX BBOX BBOX BBOX
                        Bounding box as left,top,width,height in percentages
                        (can be specified multiple times)
  -ut, --use-tempdir    Use tempdir to save the screenshots
  -t TITLE, --title TITLE
                        Create BBOX for the windows whose title is given. type
                        'none' to choose window
  -aw, --activewindow   Capture the active window

Features

  • Bounding Box Capture: Define regions of interest using percentages (left, top, width, height)
  • Multiple Regions: Specify multiple -b flags to capture several areas at once
  • Active Window Mode: Use --activewindow to automatically capture the currently active window
  • Window Title Targeting: Use --title to capture specific windows by their title
  • Temporary Directory: Save screenshots to system temp directory with --use-tempdir
  • Keyboard Controls: Press Right Shift to capture, Esc twice to exit

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd winzy-screenshot
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winzy_screenshot-0.0.6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winzy_screenshot-0.0.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file winzy_screenshot-0.0.6.tar.gz.

File metadata

  • Download URL: winzy_screenshot-0.0.6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for winzy_screenshot-0.0.6.tar.gz
Algorithm Hash digest
SHA256 870978729f41eab12bea37da809b541fdf95917277306892b30159413c80ddff
MD5 3c17e2d3cfdfc18d782f80a7dd4e93e5
BLAKE2b-256 5d8080c8af8a1a228173eeea42608a8001d3bbcb65a0d6377e39563af076cf03

See more details on using hashes here.

Provenance

The following attestation bundles were made for winzy_screenshot-0.0.6.tar.gz:

Publisher: publish.yml on sukhbinder/winzy-screenshot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file winzy_screenshot-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for winzy_screenshot-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 284142a3d0421e2d27187c77c0d89167e74ac7e0624ac06769206ded1f7fe045
MD5 b856bfed24962e0a344dca3455e904db
BLAKE2b-256 a041c7b795816f89ec1228f0b9f7fc4af55de53cfd001ab0081adcb0660bf07a

See more details on using hashes here.

Provenance

The following attestation bundles were made for winzy_screenshot-0.0.6-py3-none-any.whl:

Publisher: publish.yml on sukhbinder/winzy-screenshot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page