pycups
pycups copied to clipboard
python-cups upstream repo
Hi, I'm currently developing a `pycups` extension to easily subscribe to RRS notification: https://github.com/anxuae/pycups-notify . Is there any way to get CUPS server address and port as defined in the...
`conn.printFile(printers[printerID]["name"], path, " ", { "media": "A5", "number-up": "4", "sides": "two-sided-long-edge" })` This is the code to print two sided but it's not working. I'm sure my printer supports two-sided...
>>> r = ["job-id", ... "job-printer-uri", ... "job-state", ... "job-originating-user-name", ... "job-k-octets", ... "job-name", ... "time-at-creation"] >>> c = cups.Connection() >>> fetched = c.getJobs (requested_attributes=r) >>> print(fetched) {48: {'job-k-octets': 949,...
Currently the one implemented gets all jobs but original C API allows you to filter by queue which is useful when you want to know where in the queue the...
Environment: Megachip Kirin V10 on Virtual Machine code: import cups conn = cups..Connection() conn.printFile('printName','/home/test/desktop/test.png','test_job',{}) conn.printFiles('printName',['/home/test/desktop/test.png',],'test_job',{}) cups.IPPError:(1280,'No such file or directory') No matter which interface it is, 1280 exception messages will...
installed ok on rpi. in python3: import cups. >>> conn = cups.Connection() Traceback (most recent call last): File "", line 1, in AttributeError: module 'cups' has no attribute 'Connection'
Hi, I am trying to print a file in one of my 3 printers( I want the printers to be selected dynamically i.e. as per my use). But I am...