Skip to main content

Get the printers from a running CUPS instance.

Project description

# cups_printer

Retrieve all printer from a CUPS server. It's a simple command-line tool that
allows one to output the existing printers or write them to a file.

## Installation

It may require that the development package for CUPS is installed, e.g.
`$ sudo dnf -y install cups-devel`.

### PyPI

The package is hosted on [PyPI](
It depends on `click` and `pycups`.

$ pip3 install cups_printer

### Manual setup

$ python3 -m venv
$ source bin/activate
$ python3

### Development setup

For development, clone the Git repository and create a Python virtual

$ python3 -m venv
$ source bin/activate
$ python3 develop

## Usage

The default CUPS instance which is used is `localhost`.

$ cups_printers --help
Usage: cups_printers [OPTIONS] COMMAND [ARGS]...

A command line interface for CUPS printers.

--version Show the version and exit.
-s, --server TEXT The server URL of CUPS instance. [default:
--timeout INTEGER Timeout for network operations.
--help Show this message and exit.

output Output the retrieved data from a CUPS instance.
state Print the current state of all printers.

To get the details from a remote CUPS instance, use `--server`.

$ cups_printers --server output json

## License

`cups_printers` ìs license under MIT.

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cups_printers-0.1.1.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page