Skip to main content

ScreenPen

Multiplatform screen annotation software that allows drawing directly on the screen.

Package version License Number of downloads

Description

Screen annotation software which allows drawing directly on the screen. It is an open source and multiplatform (all systems that support Python) alternative to tools such as Epic Pen. Supported shapes:

  • line,
  • rectangle,
  • chart (using matplotlib).

The behavior of the program depends on the Window System you use:

  • if the system supports "live transparency then a transparent background is used (you can see a video playing in the background),
  • if not then the screenshot is taken, and the user draws on the captured image (you see a static image of the screen),
  • sometimes your WM may be detected as not supporting "live transparency". In that case try running with -t parameter to force it._

Demo (video)

https://user-images.githubusercontent.com/19404835/130215780-705e4eb9-330b-4a91-bd1f-b9ec3843556e.mp4

Note: The app is created ad-hoc only for my use case. It may contain bugs...

Usage

Installation and execution

Tu run the program you need to have Python installed and execute following:

pip install screenpen
screenpen                # or python -m screenpen

NOTE: Your WM may be detected as not supporting "live transparency". In that case try running with -t parameter:

screenpen -t

Controls

  • Left mouse button - drawing.
  • Right mouse button - quit.
  • Keyboard shortcuts:
    • Ctrl+Z - undo,
    • Ctrl+Y - redo,
    • hold Shift - change mouse cursor icon to arrrow.

Configuration

There are a few configuration options that can be set using config file:

  • icon_size - size of the icons (default: 50)
  • hidden_menus - to hide menus on start (default: False)

The config should look like below:

[screenpen]
; Possible values for areas: topToolBarArea, bottomToolBarArea, leftToolBarArea, rightToolBarArea
penbar_area = topToolBarArea
boardbar_area = topToolBarArea
actionbar_area = leftToolBarArea
hidden_menus = False
icon_size = 50

(more options will be added in the future...)

TODO

  • Better Matplotlib charts support.
  • Better wayland support.
  • Extended configuration.

Compatilibity notes

Screenpen (from 0.2 version) is compatible with PyQt5 and PyQt6, nevertheless the PyQt5 is currently in the requirements and recommended. It is possible to run it using PyQt6 by running:

pip install matplotlib>=3.2 numpy>=1.8 PyQt6
pip install screenpen --no-deps

Wayland support

Screenpen works in some Wayland compositors, but it is not perfect. There are issues with windows positioning and transparency. In case the window opens on wrong monitor (which I noticed on Sway WM) you can move it using Win+Shift+Arrows (or Alt+Shift+Arrows) shortcuts to a desired monitor. I have no plans to fix it in near future, but I will accept PRs.

Metadata

Release files for screenpen 0.3.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 screenpen 0.3.1
File Size Uploaded Provenance Actions
screenpen-0.3.1.tar.gz 47.0 kB Without provenance Details for screenpen-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 93.7 kB

Release files / screenpen-0.3.1.tar.gz

Download URL screenpen-0.3.1.tar.gz
Size 47.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b46925a66aef75d105a711cd7a95b917829e8ef7192dfcb12e52bed99aa5fbcc
BLAKE2b-256 checksum
How to use checksums
57d58f44c26f69a6f7c87d08b721131fd73cb78eb8c7583db014bdb1cef89aca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / screenpen-0.3.1-py3-none-any.whl

Download URL screenpen-0.3.1-py3-none-any.whl
Size 46.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07378f8c97844bbc5e59204195c4d113844454b0dd72d2614cb06749c5b4ec5b
BLAKE2b-256 checksum
How to use checksums
ef855f388c952139ecbad692a0ba6e9d44c6f500961865d0e8daa90e27d6b4e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for screenpen 0.3.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.

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