Giter Club home page Giter Club logo

cloudprint's Introduction

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

This software is a python implementation of a cloud print connector. Unlike Google's linux connector, it does not require chrome to be installed on the server.

Requires

  • python 2.6 or 2.7
  • pycups (can be tricky on OS X) wich depends on libcups2-dev

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
-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
-s sitename      : one-word site-name that will prefix printers
-v               : verbose output
--syslog-address : syslog address to use in daemon mode
-h               : display this help

If necessary, cloudprint will respond with a URL to be visited for OAuth2 authentication.

Example

cloudprint
Go to http://google.com/18de674 to claim this printer
trying for the win
trying for the win
success

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
or with optional daemon support
pip install cloudprint[daemon]

After running cloudprint, verify that the connector successfully installed the cloud printer by visiting http://www.google.com/cloudprint/manage.html.

cloudprint's People

Contributors

0x4d4e avatar armooo avatar artspb avatar collinanderson avatar davesteele avatar davygravy avatar dmonty2 avatar dodysw avatar gus8313 avatar gyscos avatar jawilson avatar jeffbrl avatar jontheniceguy avatar lrvick avatar mwerlen avatar richvdh avatar sarumont avatar smblott-github avatar symaxion avatar tillkamppeter avatar tvierling avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.