Add your description here
Project description
Print Dog
Watch a directory and automatically print PDF files as soon as they finish downloading.
Install
Install directly from the source checkout (editable)
pip install -e .
Once published to PyPI, anyone can install with:
pip install print-dog
Usage
Run the watcher with the console script that gets installed:
print-dog /path/to/watch --printer My_Printer
The folder argument is optional; if omitted the watcher monitors ~/Downloads. Use --log-level DEBUG for verbose logging.
If you omit --printer, the system default printer is used. Set it via lpoptions -d <printer-name> or list printers with lpstat -p.
Testing without a printer
-
Use
--dry-runto simulate printing while keeping the watcher logic intact. -
Or provide a custom command that receives the file path, e.g.:
print-dog --print-command "echo printing {file}"
Building a distribution
Use python -m build (requires pip install build) to produce source and wheel distributions that can be uploaded to PyPI with twine upload dist/*. The resulting package installs the print-dog command on macOS, Linux, and Windows.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file print_dog-0.1.0.tar.gz.
File metadata
- Download URL: print_dog-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de9944650892835fcadc95992290d62c5a1a906afadb871addf1c30991d70b06
|
|
| MD5 |
90db15dfceddc2686a8cd32c1f355003
|
|
| BLAKE2b-256 |
346c01971906e00d6745980b42e589ec376fef75cfb568251a78c3f041320447
|
File details
Details for the file print_dog-0.1.0-py3-none-any.whl.
File metadata
- Download URL: print_dog-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae2500144ded2a191f779b2e83123ba2c30e91ea263d4f4701c71e006a40e335
|
|
| MD5 |
d623fd50c911d9cd24d5168555ee6241
|
|
| BLAKE2b-256 |
e0006277990608721dd526fb645deee3f8dcf11a8d37101a9961e3ebfb53e4ab
|