[cups.general] [ANNOUNCE] pkipplib v0.07 is out
Jerome Alet
alet at librelogiciel.com
Sat Jun 24 07:54:51 PDT 2006
Hi there,
I'm very pleased to announce the immediate availability of pkipplib v0.07
pkipplib is a 100% Python library licensed under the terms of the
GNU GPL, which implements IPP and CUPS related classes, without
needing the CUPS client libraries or a C compiler.
pkipplib is available as freely downloadable tarballs from :
http://www.pykota.com/software/pkipplib/
pkipplib enables any Python programmer to :
- create or parse IPP requests.
- send said requests to a CUPS server and get the answers
back.
pkipplib's CUPS class actually supports the following methods :
- getDefault : retrieves the default printer
- getJobAttributes : retrieves a print job's attributes
- getPrinters : retrieves the list of printers
- getDevices : retrieves the list of devices
- getPPDs : retrieves the list of PPD files
- createSubscription : creates IPP subscriptions
- cancelSubscription : cancels IPP subscriptions
The website contains several examples on how to use this library.
The (very) long term goal is to support most of the CUPS API, implement
pure Python counterparts to CUPS' command line tools, and
create additional helper commands currently not found in CUPS.
Summary of changes :
--------------------
- Fixed a bug in the parsing of IPP notifications.
- Supports more CUPS methods.
- An entirely generic command line tool to create or delete
subscriptions is now included. You can use this tool
to manage your subscriptions.conf file (with CUPS 1.2.x).
Examples :
$ pksubscribe --cups http://localhost:631 \
--events printer-added,printer-deleted \
--recipient mynotifier \
--duration 0
$ pksubscribe --username root \
--password HacKMe \
--delete 34 58 98
- A sample notifier is now included, which is able to
automatically add or remove printers from the PyKota print
quota and print accounting software each time a printer
is created or deleted in CUPS. IMPORTANT : due to a possible
bug in CUPS, this notifier is only launched a single time
(see STR #1793).
Any comment, flame, patch, or bug report is MORE than welcome.
Thank you for reading.
Jerome Alet
More information about the cups
mailing list