Skip to main content

snsr

A playful Python-based "screensaver" that randomly moves your mouse and simulates key presses to keep your screen active.

Features

  • Moves the mouse to random screen positions.
  • Simulates random key presses.
  • Keeps your system from going idle.
  • Lightweight and easy to use.

Usage

Using uv

If you're using uv, you can run the snsr command directly without needing to activate a virtual environment first. Just use uvx:

uvx snsr

`snsr` now auto-detects your platform/session and selects the best backend automatically (Linux uses the Ubuntu/Linux-safe backend by default, with fallback logic if needed).

Using pip

You can install snsr using pip:

pip install snsr
snsr

It will:

  • Move your mouse to random points on the screen
  • Press a random key (a, s, d, f, j, k, l)
  • Repeat this process every few seconds

To Stop

Press Ctrl+C in the terminal to exit.

Notes

  • Ensure your OS allows simulated input events from Python scripts.
  • Useful for keeping your machine awake during long tasks (e.g., rendering, builds, meetings).

Disclaimer

This project is intended for educational or personal use only. Use responsibly and respect your organization's policies regarding input automation.


MIT License © 2025

Download files

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

Source Distribution

snsr-0.1.7.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

snsr-0.1.7-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file snsr-0.1.7.tar.gz.

File metadata

  • Download URL: snsr-0.1.7.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for snsr-0.1.7.tar.gz
Algorithm Hash digest
SHA256 13a66ded9f16a8e609f27fd9f4828ae8b22172bd1fb520256dcb88663d1a4834
MD5 c65ba48f9e7fe22df2f7705332a43131
BLAKE2b-256 bf4e6836fbcbe35fb8723fb2be428da38596f52dad7fa0077730219176b9f1b0

See more details on using hashes here.

File details

Details for the file snsr-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: snsr-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for snsr-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4cfd4c916942ffa03adc1dc2cf8331d056c517a9fc402bce782c0cfb66a305fc
MD5 e26353b08c5573bb60e1683dc8a7ee2d
BLAKE2b-256 2821911e323e62bd8e6ad45cdd6378701c9b0125366bfc2bd9f468328bf35af8

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.9

2 files

0.1.8

2 files

This release

0.1.7 This release

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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