Skip to main content

pyipptool

https://travis-ci.org/ezeep/pyipptool.png?branch=master https://coveralls.io/repos/ezeep/pyipptool/badge.png Latest PyPI version

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

Setup

python setup.py install

Tests

python setup.py test

Configuration

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

[main]
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

Usage

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

>>> from pyipptool import create_printer_subscription
>>> create_printer_subscription(
        'http://localhost:631/',
        printer_uri='http://localhost:631/classes/printer-XYZ',
        requesting_user_name='admin',
        notify_recipient_uri='rss://',
        notify_events='all',
        notify_lease_duration=0,
        notify_lease_expiration_time=0)
{'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

http://www.apache.org/licenses/LICENSE-2.0

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.

Metadata

Release files for pyipptool 0.4.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 pyipptool 0.4.1
File Size Uploaded
pyipptool-0.4.1.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyipptool 0.4.1
File Interpreter ABI Platform
pyipptool-0.4.1-py27-none-any.whl Python 2.7 none any Details

Total release size: 22.6 kB

Release files / pyipptool-0.4.1.tar.gz

Download URL pyipptool-0.4.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
abccf325f2392b66feffde6c291a03f5b898c14a90fd6328e603e14c034c308c
BLAKE2b-256 checksum
How to use checksums
4c2dc4cec89cc643a46abd5ad5f88708f8774ff45fc0d2f128254649e29a3e8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyipptool-0.4.1-py27-none-any.whl

Download URL pyipptool-0.4.1-py27-none-any.whl
Size 13.3 kB
Tags Python 2.7
SHA-256 checksum
How to use checksums
f641298b3805ba7a687ae82502eaee47b112ccb4b317e324f3cc0dacadb14b00
BLAKE2b-256 checksum
How to use checksums
ecef24edbf30399b65dc9704e6b63c4d6bab919b230baacf8a609d3701b2df16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

This release

0.4.1 This release

2 release files

0.4

2 release files

0.3

2 release files

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