ipptool python wrapper
Project description
pyipptool
=========
.. image::
https://magnum.travis-ci.com/ezeep/pyipptool.png?token=1cZ3Jy2DStcoTAvezSS8&branch=master
:target: https://magnum.travis-ci.com/ezeep/pyipptool
Convenient ipp request generator to interrogate CUPS or IPP devices with the help of ipptool_.
.. _ipptool: http://www.cups.org/documentation.php/doc-1.7/man-ipptool.html
Setup
-----
.. code-block:: console
python setup.py install
Tests
-----
.. code-block:: console
python setup.py test
Configuration
-------------
Add the following content in ``~/.pyipptool.cfg`` or ``/etc/pyipptool/pyipptol.cfg``.
.. code-block:: configuration
[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
.. code-block:: python
>>> 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.
=========
.. image::
https://magnum.travis-ci.com/ezeep/pyipptool.png?token=1cZ3Jy2DStcoTAvezSS8&branch=master
:target: https://magnum.travis-ci.com/ezeep/pyipptool
Convenient ipp request generator to interrogate CUPS or IPP devices with the help of ipptool_.
.. _ipptool: http://www.cups.org/documentation.php/doc-1.7/man-ipptool.html
Setup
-----
.. code-block:: console
python setup.py install
Tests
-----
.. code-block:: console
python setup.py test
Configuration
-------------
Add the following content in ``~/.pyipptool.cfg`` or ``/etc/pyipptool/pyipptol.cfg``.
.. code-block:: configuration
[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
.. code-block:: python
>>> 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
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
pyipptool-0.1.dev.tar.gz
(6.6 kB
view details)
File details
Details for the file pyipptool-0.1.dev.tar.gz
.
File metadata
- Download URL: pyipptool-0.1.dev.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76d724168c5f98c6bb750820c77234371c1645c0b1485140099f4c4f9995316e |
|
MD5 | 802ff2fe9fe0f8c936be9fc09cf953e3 |
|
BLAKE2b-256 | 95cd2516d0264981c73f0e1ef5ae1c84b04d098612f02e1353b6feb766f28513 |