Metadata-Version: 2.2
Name: escl-scanner-cli
Version: 0.2.0
Summary: Control eSCL network scanners using a CLI utility
Home-page: https://github.com/PJK/escl-scanner-cli
Author: https://github.com/zegman, Pavel Kalvoda
Author-email: me@pavelkalvoda.com
License: Apache
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: xmltodict
Requires-Dist: zeroconf
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: summary


# scanner-cli
A MacOS/Linux CLI client for scanning documents using a network scanner supporting the [Mopria Alliance eSCL Scan Technical Specification](https://mopria.org/MopriaeSCLSpecDownload.php)

Known to work with at least:
- Brother DCP-L3550CDW
- Brother MFC-L2710DW
- Canon Pixma G3260
- HP DeskJet 4640 series
- HP OfficeJet Pro 9000 series
- HP OfficeJet Pro 9010 series

## Installation
From PyPI:
```
pipx install escl-scanner-cli
```

Locally:
```
pip install .
```

## Publishing to PyPI

```
pip install -r requirements-dev.txt
[ -n "$(ls -A dist 2>/dev/null)" ] && rm -r dist/*
python -m build
python -m twine upload dist/*
```

## TODOs

- Use click for CLI parsing
- Automatic publishing to PyPI

## Usage
```
escl-scan output_filename.pdf

positional arguments:
  filename

optional arguments:
  -h, --help            show this help message and exit
  --source {feeder,flatbed,automatic}, -S {feeder,flatbed,automatic}
  --format {pdf,jpeg}, -f {pdf,jpeg}
  --grayscale, -g
  --resolution {75,100,200,300,600}, -r {75,100,200,300,600}
  --debug, -d
  --no-open, -o
  --quiet, -q
  --duplex, -D
  --today, -t           Prepend date to file name in ISO format
  ```
