Skip to main content

PyQt utility that takes screenshots.

Project description

Project logo

Zala

PyPi Chat Support

ZALA Z-16

Zala is a screenshot tool designed to capture images of your desktop. It has options to capture a specific region of the screen. Built using PyQt, Zala can be integrated into Python projects as a dependency.

If you're looking for a standalone program to create screenshots and don't plan to integrate it into a PyQt project, consider using maim. Maim is written in a more efficient language.

Install

Install using pipx from pypi.

pipx install zala

Python usage

Zala can be integrated into PyQt6 projects as a library. The example below shows how to capture a screenshot and let the user select a region.

import sys

from PyQt6.QtWidgets import QApplication
from zala.main_window import ZalaSelect
from zala.screenshot_preview import UserSelectionResult
from zala.screenshot import ZalaScreenshot


def main() -> None:
    app = QApplication(sys.argv)
    scr = ZalaScreenshot(app)

    def on_selection_finished(result: UserSelectionResult) -> None:
        if result.pixmap:
            result.pixmap.save("screenshot.png")
        app.quit()

    sel = ZalaSelect(scr.capture_screen())
    sel.selection_finished.connect(on_selection_finished)
    sel.showFullScreen()
    app.exec()


if __name__ == "__main__":
    main()

Bash examples

Take a region of the screen.

zala select

Verbose mode.

zala select -v

Show commands.

zala

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

zala-26.3.22.0.tar.gz (219.8 kB view details)

Uploaded Source

Built Distribution

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

zala-26.3.22.0-py3-none-any.whl (220.6 kB view details)

Uploaded Python 3

File details

Details for the file zala-26.3.22.0.tar.gz.

File metadata

  • Download URL: zala-26.3.22.0.tar.gz
  • Upload date:
  • Size: 219.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zala-26.3.22.0.tar.gz
Algorithm Hash digest
SHA256 0349c32a100db8ce5d6a1b8a58f51f17198e8a0daee9431cc0d039bae7414fb6
MD5 ebf80098c28e4665b3c5f6849501631b
BLAKE2b-256 728cb13c86a978cd20fe4fea35339e73db57a2a409352a437a0473c502224e0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for zala-26.3.22.0.tar.gz:

Publisher: release.yml on Ajatt-Tools/zala

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

File details

Details for the file zala-26.3.22.0-py3-none-any.whl.

File metadata

  • Download URL: zala-26.3.22.0-py3-none-any.whl
  • Upload date:
  • Size: 220.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zala-26.3.22.0-py3-none-any.whl
Algorithm Hash digest
SHA256 171607a45d37bea974e52204c2033ef1a39435705ff1731e3dde5fb02cf4cf29
MD5 d1551e1ba85629fd53f9a400e10b4edd
BLAKE2b-256 77b35c6c18b07b9aecff4cbf9a2ec4cfb14dd7d13bf06adf1c3f4e34d8370cb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for zala-26.3.22.0-py3-none-any.whl:

Publisher: release.yml on Ajatt-Tools/zala

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