ipptool python wrapper
Project description
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(
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyipptool-0.3.tar.gz
.
File metadata
- Download URL: pyipptool-0.3.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddc346c1b80526cb6fd0aeb93f8cf3de613d3bba10e93c0a7964d319750b6a6e |
|
MD5 | daa56ab1658e9a6a31adb13a65d0a2b2 |
|
BLAKE2b-256 | a06a4266ce19a33748c467db02b408a97c4b2b5a09075988862e916e44f86629 |
File details
Details for the file pyipptool-0.3-py27-none-any.whl
.
File metadata
- Download URL: pyipptool-0.3-py27-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 2.7
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7894107fc6654deabf39c3fd5cf5063ee73cedd31d9f9e7de13d459e1ed16ce2 |
|
MD5 | 0bd63a6997e2e245d2e59cd8275c848e |
|
BLAKE2b-256 | 542d331f1f1e087b26960232d39167c4ebba53d3d0389c90170462faabd6962a |