Skip to main content

Python: Internet Printing Protocol (IPP) Client

Asynchronous Python client for Internet Printing Protocol (IPP).

Note: aioipp is a maintained fork of pyipp by Chris Talkington. It keeps the pyipp import name and adds page counter support. It is published on PyPI as aioipp; do not install it alongside pyipp.

About

This package allows you to monitor printers that support the Internet Printing Protocol (IPP) programmatically.

Installation

pip install aioipp

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())

Reporting a problem with your printer

Printers vary a lot in how closely they follow the IPP specification. If your printer fails to set up in Home Assistant, or a value looks wrong, the most useful thing you can provide is a raw capture of what the printer sends. The package ships a small diagnostics command for exactly that:

uvx --python 3.14 aioipp ipp://192.168.1.10:631/ipp/print

or, in an environment where the package is already installed:

python -m pyipp ipp://192.168.1.10:631/ipp/print

Use ipps:// if the printer requires TLS, and --ipp-version 1.1 for older devices. The command prints the attributes the library received, what it parsed them into, and a full traceback if parsing failed. It always writes the raw response to ipp-<host>.bin in the current directory.

Then open an issue with:

  • the printer make, model and firmware version
  • the full output of the command
  • the ipp-<host>.bin file (zip it if GitHub refuses the extension)

Serial numbers, UUIDs, hosts and names are masked in both the capture and the output, so they are safe to post. Masking keeps every value the same length, so a masked capture still reproduces the problem. Pass --no-scrub to keep the original values, for example when debugging locally. Captured files become regression tests in tests/fixtures, so they are the fastest route to a fix.

When aioipp fails to parse a response inside another application, such as Home Assistant, the logged error ends with a -----BEGIN SCRUBBED IPP RESPONSE----- block. It holds the same masked capture, compressed and base64 encoded, so pasting the full error into an issue is enough. Maintainers can turn it back into a capture file with:

python -m pyipp --from-log home-assistant.log -o ipp-capture.bin

If you cannot install Python packages, the ipptool command that ships with CUPS on Linux and macOS is a good substitute. Its output is not masked, so remove the serial number, UUIDs and hosts before posting it:

ipptool -tv ipp://192.168.1.10:631/ipp/print get-printer-attributes.test

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

Metadata

Release files for aioipp 0.21.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioipp 0.21.1
File Size Uploaded Provenance Actions
aioipp-0.21.1.tar.gz 25.8 kB With provenance Details for aioipp-0.21.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aioipp 0.21.1
File Interpreter ABI Platform Actions
aioipp-0.21.1-py3-none-any.whl Python 3 none any Details for aioipp-0.21.1-py3-none-any.whl

Total release size: 53.4 kB

Release files / aioipp-0.21.1.tar.gz

Download URL aioipp-0.21.1.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
01a54720706ae59de81601d99e16beada9a68486005a5893083eab8b830ee333
BLAKE2b-256 checksum
How to use checksums
126d7e7fa92207eb404c706d72caae3c604e50a6dc8c71f28b3b95cecfb5d541
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / aioipp-0.21.1-py3-none-any.whl

Download URL aioipp-0.21.1-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6fc4242c269942c365f2af3d5d761eaea2607ffc44de021e187fea334af92a8
BLAKE2b-256 checksum
How to use checksums
b9077d330e6db9677ec7392d0045ffc14b753ba25c494da8f6825637dd6b26fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for aioipp 0.21.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aioipp-0.21.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page