Asynchronous Python client for Internet Printing Protocol (IPP)
Project description
Python: Internet Printing Protocol (IPP) Client
Asynchronous Python client for Internet Printing Protocol (IPP).
About
This package allows you to monitor printers that support the Internet Printing Protocol (IPP) programmatically.
Installation
pip install pyipp
Usage
import asyncio
from pyipp import IPP, Printer
async def main():
"""Show example of connecting to your IPP print server."""
async with IPP("ipps://EPSON123456.local:631/ipp/print") as ipp:
printer: Printer = await ipp.printer()
print(printer)
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Setting up development environment
This Python project is fully managed using the Poetry dependency manager. But also relies on the use of NodeJS for certain checks during development.
You need at least:
- Python 3.9+
- Poetry
- NodeJS 20+ (including NPM)
To install all packages, including all development requirements:
npm install
poetry install
As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:
poetry run pre-commit run --all-files
To run just the Python tests:
poetry run pytest
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
File details
Details for the file pyipp-0.17.0.tar.gz
.
File metadata
- Download URL: pyipp-0.17.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a4cf7acbeecfbf2a7c658b33858b7006c1c6ec7643fc418576a59ba2c5bdec |
|
MD5 | 2c74d2f7f849428b3dc0c6f37afa3ca3 |
|
BLAKE2b-256 | 96440859d4b5ee653642f4654dd255c7277b5485ca6f62f684245fb3e90a54d7 |
File details
Details for the file pyipp-0.17.0-py3-none-any.whl
.
File metadata
- Download URL: pyipp-0.17.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5276dd083640c7b050d0f6eeaafaabe4f648ce983809356d4a9a04ddc4f33ceb |
|
MD5 | 425bbd117608e19eec899e8e222e7ddb |
|
BLAKE2b-256 | 2b23896a705b39b72834c51cef9b9e3ed574f96e670c74ec84ba60c8f8a6232c |