Skip to main content

ipptool python wrapper

Project description

https://magnum.travis-ci.com/ezeep/pyipptool.png?token=1cZ3Jy2DStcoTAvezSS8&branch=master

Convenient ipp request generator 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

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

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

pyipptool-0.2.dev.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file pyipptool-0.2.dev.tar.gz.

File metadata

File hashes

Hashes for pyipptool-0.2.dev.tar.gz
Algorithm Hash digest
SHA256 d3139cf4098c2ef3922d59c967c3838d090b02d8c672b82022a63d02d15a0cec
MD5 0296489505ab931b348f59bab42c3ce8
BLAKE2b-256 8b5b4897a5c9f43ab3614731fc8aae89aa3d61951450d3837c742d3e61212cd5

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