Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyipp-0.17.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

pyipp-0.17.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

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

Hashes for pyipp-0.17.0.tar.gz
Algorithm Hash digest
SHA256 88a4cf7acbeecfbf2a7c658b33858b7006c1c6ec7643fc418576a59ba2c5bdec
MD5 2c74d2f7f849428b3dc0c6f37afa3ca3
BLAKE2b-256 96440859d4b5ee653642f4654dd255c7277b5485ca6f62f684245fb3e90a54d7

See more details on using hashes here.

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

Hashes for pyipp-0.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5276dd083640c7b050d0f6eeaafaabe4f648ce983809356d4a9a04ddc4f33ceb
MD5 425bbd117608e19eec899e8e222e7ddb
BLAKE2b-256 2b23896a705b39b72834c51cef9b9e3ed574f96e670c74ec84ba60c8f8a6232c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page