doxieapi
A Python library for the developer API of the Doxie Go Wi-Fi document scanner.
Installation
doxieapi is available on PyPI: https://pypi.python.org/pypi/doxieapi. Install with pip:
$ pip install doxieapi
Usage
Doxie scanners on the network can discovered automatically using SSDP:
>>> from doxieapi import DoxieScanner
>>> scanners = DoxieScanner.discover()
>>> print(scanners)
[<DoxieScanner: Doxie model DX250 (Doxie_01AFD2) at http://10.0.1.3:8080/>]
Recent and all scans can be listed:
>>> scanner = scanners[0]
>>> scanner.recent
'/DOXIE/JPEG/IMG_0074.JPG'
>>> scanner.scans[:2]
[{'modified': '2010-05-01 00:17:28', 'name': '/DOXIE/JPEG/IMG_0001.JPG', 'size': 1365552},
{'modified': '2010-05-01 00:17:44', 'name': '/DOXIE/JPEG/IMG_0002.JPG', 'size': 1362595}]
Scans can be downloaded individually or all at once:
>>> scanner.download_scan("/DOXIE/JPEG/IMG_0001.JPG", "/tmp")
'/tmp/IMG_0001.JPG'
>>> scanner.download_scans("/tmp")
['/tmp/IMG_0001.JPG', '/tmp/IMG_0002.JPG']
Scans can be deleted too:
>>> scanner.delete_scan("/DOXIE/JPEG/IMG_0001.JPG")
True
>>> scanner.delete_scans([scan['name'] for scan in scanner.scans])
True
Other attributes from the API can be queried:
>>> scanner.firmware
'0.26'
>>> scanner.network
'supersecretwifi'
>>> scanner.name
'Doxie_01AFD2'
>>> scanner.firmware_wifi
'1.29'
You can also run the module directly to download all available scans from all Doxies on the network to the current directory:
$ python -m doxieapi
Discovered Doxie model DX250 (Doxie_01AFD2) at http://10.0.1.3:8080/
Saved /Users/dave/Code/doxieapi/doxieapi/IMG_0001.JPG
Saved /Users/dave/Code/doxieapi/doxieapi/IMG_0002.JPG
Configuration
Connecting to password-protected Doxies is made possible by putting the password for
each scanner in ~/.doxieapi.ini. Create sections named with the scanner's MAC address,
for example:
[00:11:22:33:44:55]
password=supersecretpassword
Credits
Includes ssdp.py by Dan Krause.
Metadata
Release files for doxieapi 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| doxieapi-0.1.2.tar.gz | 6.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| doxieapi-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 14.2 kB
Release files / doxieapi-0.1.2.tar.gz
| Download URL | doxieapi-0.1.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a15e1c2ea091b268ce49379bda40e2fb7264c5cd8390a7b14b207eedf5e966e0
|
|
BLAKE2b-256 checksum How to use checksums |
479ca98796e1456bd0cf14c9a5bd3e67ea8f811e520836ed8b68b89ee261770f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
|
Release files / doxieapi-0.1.2-py2.py3-none-any.whl
| Download URL | doxieapi-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
61696d3ae73be4e016acfed5ae3e9137c8880e2240999fc79397ab568c964acd
|
|
BLAKE2b-256 checksum How to use checksums |
ee19ccdae1bee75c700c94fa5b94ef9769b18e7c6ab43c75b5a4d18e47763285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0
|
Security for doxieapi 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.