Skip to main content

A modern Python package to prevent system sleep by simulating mouse movements

Project description

StayUp 🖱️

PyPI version License: GNU Python Versions

A modern Python package to prevent system sleep by simulating small mouse movements. Perfect for keeping your system awake during long downloads, installations, or when you need to maintain an active system state. 💻✨

✨ Features

  • 🎯 Configurable mouse movement intervals
  • ⏱️ Adjustable movement duration and distance
  • ⌛ Run for a specific duration or until a command completes
  • 🛡️ Safe movement patterns that avoid screen edges
  • 🛑 Graceful shutdown with Ctrl+C
  • 🔇 Quiet mode for reduced output

🚀 Installation

pip install stayup

📖 Usage

Basic Usage

# Run with default settings (moves mouse every 5 minutes)
stayup

# Alternative: Run as a module
python -m stayup

# Run for 2 hours
stayup --run-for 120

# Run until a specific command completes
stayup --wait-cmd "pip install large-package"

# Move mouse every 2 minutes with 0.2s movement duration
stayup --interval 120 --duration-movement 0.2

Options

Option Description Default
--run-for Run for specified number of minutes -
--wait-cmd Run until the specified command completes -
--interval Interval between mouse movements in seconds 60
--duration-movement Duration of mouse movement in seconds 0.1
--movement-distance Distance in pixels for mouse movement 1
--disable-failsafe Disable the failsafe feature False
--quiet Reduce output verbosity False

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for how to get started.

🐛 Bug Reports & Feature Requests

If you encounter any bugs or have ideas for new features, please open an issue on our GitHub Issues page.

📜 License

This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.

🌟 Star History

Star History Chart

📊 Stats

GitHub stars GitHub forks


Made with ❤️ by the manthanby.tech

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

stayup-0.1.2.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

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

stayup-0.1.2-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file stayup-0.1.2.tar.gz.

File metadata

  • Download URL: stayup-0.1.2.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for stayup-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bb07ab048bd04bf921065dc6248073c62926990c36e8e598a5b6f4f4be111daf
MD5 635d835fc9a853c09b04cabbbd8f3c94
BLAKE2b-256 0b67252dd8b7d02d4b65f7c8f22d1a70db61eacf7fc5a75a44c59d9362a1d561

See more details on using hashes here.

File details

Details for the file stayup-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: stayup-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for stayup-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78da9e5800bb032c82acde6dea6edf78f06f569b0a6e087dc896f5451ffdc361
MD5 af332c5e82f45c243fa92f7712bb4783
BLAKE2b-256 fcd704ab8e450b818c0aa6b34a45ab4f5c266e0a2c14c46452c27820a74b8e34

See more details on using hashes here.

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