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

# 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.1.tar.gz (21.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.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stayup-0.1.1.tar.gz
  • Upload date:
  • Size: 21.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.1.tar.gz
Algorithm Hash digest
SHA256 e503eb17adf3b2329bb56b2a708789658ca43877aab7e5de1c88c379a75bdf77
MD5 76c099de7630cb4952def24b6bf21b6f
BLAKE2b-256 9620eee3fe7cf4304766ae908dcdad6d6755beccecd912a19d9aa7c002d6036b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stayup-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ced991453a4019eebd78f4942bbefa465c01eaf195c51027b197acef3ad70a4
MD5 819371b8c262ec1cf6c1bdc7d841944a
BLAKE2b-256 19e7ecd3f270bd89405419c11ac8919b4d682671a75ca2e96dfca28148d1f7b4

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