Skip to content
This repository

Google cloudprint proxy

branch: master

Do not give an address to SysLogHandler

Let the default value of address to be used. This will work correctly on
more systems.

fixes #78
latest commit d55435a50d
Jason authored
Octocat-spinner-32 cloudprint Do not give an address to SysLogHandler March 15, 2014
Octocat-spinner-32 COPYING Packaging updates February 23, 2011
Octocat-spinner-32 MANIFEST.in Packaging updates February 23, 2011
Octocat-spinner-32 README.rst Add -u option to store username/password with sasl January 23, 2014
Octocat-spinner-32 ez_setup.py New ez_setup.py January 28, 2013
Octocat-spinner-32 setup.py Bump version to 0.11 January 05, 2014
README.rst

Share your CUPS printers with google's cloud print. Works with linux and OS X.

Requires

python 2.6 or 2.7 pycups (can be tricky on OS X)

Usage

cloudprint [<option> ...]
-d              : enable daemon mode (requires the daemon module)
-l              : logout of the current google account
-p pid_file     : path to write the pid to (default cloudprint.pid)
-a account_file : path to google account ident data (optional)
-c              : establish and store login credentials, then exit
-f              : 'fast poll', if notifications aren't working
-u              : store username/password in addition to login token
                  to avoid authentication expiration
-i regexp       : include files matching regexp
-x regexp       : exclude filees matching regexp
                  regexp: a Python regexp, which is matched against the
                          start of the printer name
-h              : display this help

Google accounts with 2 step verification enabled need to use an application-specific password.

Example

cloudprint
Google username: username@gmail.com
Password:
Added Printer Brother-HL-2170W

Examples - Include/Exclude

Include only the printers "lp" and "2up":

cloudprint -i lp -i 2up

Exclude all printers whose names start with "GCP-":

cloudprint -x GCP-

By default, all printers are included. For the include and exclude options, the argument is a regular expression which is matched against the start of the printer name.

For example, to include all printers whose names begin "lp":

cloudprint -i lp # includes both lp and lp2up

Install

pip install cloudprint
Something went wrong with that request. Please try again.