Skip to main content

ipptool python wrapper

Project description

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

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)
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.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyipptool-0.4-py27-none-any.whl (12.1 kB view details)

Uploaded Python 2.7

File details

Details for the file pyipptool-0.4.tar.gz.

File metadata

  • Download URL: pyipptool-0.4.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyipptool-0.4.tar.gz
Algorithm Hash digest
SHA256 67f8d6d8988c63839728f331b94a085d2ffe0c49293c00efdb43981964bab448
MD5 ee0b9119b897701061bfe961cdb2c698
BLAKE2b-256 a394640af414e73f9c84cbb337ce1f3102444c6055c8471007afdbcd7e1ee225

See more details on using hashes here.

File details

Details for the file pyipptool-0.4-py27-none-any.whl.

File metadata

File hashes

Hashes for pyipptool-0.4-py27-none-any.whl
Algorithm Hash digest
SHA256 cfadcb0d3e8d8461c000407a97114e85b5c841806b2ac85b85e779f63813f80c
MD5 92c02cdc23e08f150b6f5d415d1321c8
BLAKE2b-256 d270cd13aa51c01bc514c6d11abd84e074f55366a81a40618a435cdd6ab0d869

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page