Phyton What is the simplest way (in python) to print to a remote IPP/CUPS server or printer? python simplest gui,python simple http server,python simple web

I have a postscript file and want it to be printed on a IPP capable device (or CUPS server). What is the minimal code and dependencies I could get away with to do that.

Using LPR or libcups gives me lot of cross-plattform dependencies. So my first approach was to implement a minimal subset of IPP (the protocol used by cups and many modern printers) since "it's only extended HTTP". But unfortuntely a IPP client is a lot more code than a few lines and so far I found no IPP client implementation meant for just printing and not managing a printserver.

I would prefer a solution in Python, but would also be happy with something in an oter dynamic language.

Answer:1

you need to add remote printer to CUPS:

lpadmin -p printername -E -v //IPADDRESS/spool -m driver.ppd

where driver.ppd is the driver to print with

ps: this could also work for programatic access, if printer is set before.

Answer:2

There's a python wrapper for CUPS ipptool available at github:

You might also want to check this answer.

Answer:3



  1. python simplest gui
  2. python simple http server
  3. python simple web server
  4. python simple database
  5. python simplest web framework
  6. python simplest class
  7. python simplest program
  8. python simplest ide

I have a problem with serialization of Django inherited models. For example class Animal(models.Model): color = models.CharField(max_length=50) class Dog(Animal): name = models.CharField(...

I have a problem with serialization of Django inherited models. For example class Animal(models.Model): color = models.CharField(max_length=50) class Dog(Animal): name = models.CharField(...

I have been trying to understand python metaclasses, and so have been going through some sample code. As far as I understand it, a Python metaclass can be any callable. So, I can have my metaclass ...

I have been trying to understand python metaclasses, and so have been going through some sample code. As far as I understand it, a Python metaclass can be any callable. So, I can have my metaclass ...