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.8.tar.gz (4.0 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.8-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snsr-0.1.8.tar.gz
  • Upload date:
  • Size: 4.0 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.8.tar.gz
Algorithm Hash digest
SHA256 6a07e1976e15455a56ed3cb4b745debb014b47218b78ecedeffadd518df37519
MD5 0ca8b78f6e5a4dfb0d4b3cd445680495
BLAKE2b-256 372ef08a3cad12ffd7e2b31dfb32295044c22d289e23a2f4ed679eb77339f9e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snsr-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f8455ecd023fd46a52f9149284982bca8ee37e79bdf923e399dc7377a5c945de
MD5 a0161358cb5e47e19008b233878b6650
BLAKE2b-256 ba6222010ae1809ac69803a802f894a722552143a32acd14d0cdedc1e2c6c70c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.9

2 files

This release

0.1.8 This release

2 files

0.1.7

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