Skip to main content

pyautoscreenshot

🖼️ A Python utility for automatically capturing and saving screenshots at regular intervals

PyPI version Python Support License

✨ Features

  • 📸 Capture screenshots at customizable intervals
  • 🕒 Automatic timestamp-based filenames
  • 📁 Configurable output directory
  • 🏷️ Custom filename prefixes
  • 🖼️ High-quality PNG format
  • 🚀 Simple CLI interface

📦 Installation

Using pip

pip install pyautoscreenshot

Using uv (Recommended)

uv is a blazing-fast Python package installer:

# Install uv
pip install uv

# Install pyautoscreenshot using uv
uv pip install pyautoscreenshot

🚀 Quick Start

Command Line Usage

# Basic usage (default: 10-second interval)
pyautoscreenshot

# Custom output directory
pyautoscreenshot --output D:/screenshots

# Custom prefix and interval
pyautoscreenshot --prefix workscreen --interval 5

Python Module Usage

python -m pyautoscreenshot [options]

In Your Code

from pyautoscreenshot import take_screenshot

# Take a single screenshot
filepath = take_screenshot("./screenshots", "custom")
print(f"Screenshot saved to: {filepath}")

🎛️ Configuration Options

Option Short Description Default
--output -o Output directory ./screenshots
--prefix -p Filename prefix screenshot
--interval -i Capture interval (seconds) 10

🛠️ Development

Setup Development Environment

  1. Clone the repository
git clone https://github.com/fxyzbtc/pyautoscreenshot.git
cd pyautoscreenshot
  1. Create and activate virtual environment
python -m venv venv
.\venv\Scripts\activate  # Windows
  1. Install development dependencies
uv pip install -e ".[dev]"

Running Tests

pytest

Code Style

# Format code
black .

# Sort imports
isort .

📝 Example Output

Screenshots are saved with the following naming pattern:

{prefix}_{YYYYMMDD}_{HHMMSS}.png

Example:

screenshot_20250404_153022.png

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support


Made with ❤️ using Python

Metadata

Release files for pyautoscreenshot 0.1.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 pyautoscreenshot 0.1.1
File Size Uploaded
pyautoscreenshot-0.1.1.tar.gz 5.1 kB Details

Built distribution (wheel)

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

Total release size: 9.6 kB

Release files / pyautoscreenshot-0.1.1.tar.gz

Download URL pyautoscreenshot-0.1.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9261b5eca3c9ca19eee24cbaa1fcf3d33f4f2152974dbc17eb468b67e76fb87
BLAKE2b-256 checksum
How to use checksums
7efea75cba7f93443b8242a016ea834032d8a871d3f56b41f709bce948cf2be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.25

Release files / pyautoscreenshot-0.1.1-py3-none-any.whl

Download URL pyautoscreenshot-0.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41d9aeb6307b9e8d6a3fea5d7557e4e9469cafd0f96301c042911c269fe3d1b1
BLAKE2b-256 checksum
How to use checksums
4f00d0728eb2fdd6e2759493f3cce2065aeee1d233dbcfc9aaeb6886381ff3a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.25

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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