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.0.tar.gz (62.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pycups-2.0.0.tar.gz
  • Upload date:
  • Size: 62.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for pycups-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0cb8f20059899830c14268e4d41e9503ffef04813cc3fe8a978867c0bad8e32c
MD5 f48b2c853db5b7302beb4a385dd8aa87
BLAKE2b-256 90a54b66bca34942de47bb93aa16c90dfca1089bd32f1593f92bccbee4c1e563

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