skip to navigation
skip to content

Not Logged In

pyipptool 0.4.1

ipptool python wrapper

Latest Version: 0.4.8 Latest PyPI version

Convenient IPP request generator for python to interrogate CUPS or IPP devices, with the help of ipptool.


python install


python test


Add the following content in ~/.pyipptool.cfg or /etc/pyipptool/pyipptol.cfg.

ipptool_path = /usr/bin/ipptool
;If authentication is required
login = admin
password = secret
graceful_shutdown_time = 2
timeout = 10

Where ipptool_path points to the absolute path of your installed ipptool


Create an infinite time subscription for printer-XYZ class for the rss notifier

>>> from pyipptool import create_printer_subscription
>>> create_printer_subscription(
{'Name': 'Create Printer Subscription',
 'Operation': 'Create-Printer-Subscription',
 'RequestAttributes': [{'attributes-charset': 'utf-8',
                        'attributes-natural-language': 'en',
                        'printer-uri': 'http://localhost:631/classes/printer-XYZ',
                        'requesting-user-name': 'admin'},
                       {'notify-events': 'all',
                        'notify-lease-duration': 0,
                        'notify-lease-expiration-time': 0,
                        'notify-recipient-uri': 'rss://'}],
 'ResponseAttributes': [{'attributes-charset': 'utf-8',
                         'attributes-natural-language': 'en'},
                        {'notify-subscription-id': 23}],
 'StatusCode': 'successful-ok',
 'Successful': True,
 'notify-subscription-id': 23}

Copyright 2013 ezeep GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

File Type Py Version Uploaded on Size
pyipptool-0.4.1-py27-none-any.whl (md5) Python Wheel 2.7 2014-02-07 12KB
pyipptool-0.4.1.tar.gz (md5) Source 2014-02-07 9KB
  • Downloads (All Versions):
  • 31 downloads in the last day
  • 395 downloads in the last week
  • 4498 downloads in the last month