Skip to main content

Python bindings for libcups

Project description

This is a set of Python bindings for the libcups library from the CUPS project.

>>> # Example of getting a list of printers
>>> import cups
>>> conn = cups.Connection ()
>>> printers = conn.getPrinters ()
>>> for printer in printers:
    ...     print printer, printers[printer]["device-uri"]
...
HP ipp://192.168.1.1:631/printers/HP
duplex ipp://192.168.1.1:631/printers/duplex
HP-LaserJet-6MP ipp://192.168.1.1:631/printers/HP-LaserJet-6MP
EPSON-Stylus-D78 usb://EPSON/Stylus%20D78

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

pycups-2.0.3.tar.gz (65.2 kB view details)

Uploaded Source

File details

Details for the file pycups-2.0.3.tar.gz.

File metadata

  • Download URL: pycups-2.0.3.tar.gz
  • Upload date:
  • Size: 65.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for pycups-2.0.3.tar.gz
Algorithm Hash digest
SHA256 6a762a931195792c345c879ad194a0324f786c0c001dd550ae733d97f1d9b57e
MD5 e03a95ecf6c499d08edfd01a4746ecd6
BLAKE2b-256 1226e28ff62af728743f696269f1092fe1be9b2bdb9c9c33f8051f8eccede92f

See more details on using hashes here.

Supported by

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