适用于linux/osx的google云打印代理
cloudprint的Python项目详细描述
分享你的cups打印机与谷歌的云打印。 适用于Linux和OS X。
该软件是云打印连接器的python实现。不像 谷歌的Linux连接器,它不需要在服务器上安装Chrome。
需要
- python 2.6或2.7
- pycups(在os x上可能很棘手)取决于libcups2 dev
用法
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帐户需要使用 application-specific password。
示例
cloudprint Google username: username@gmail.com Password: Added Printer Brother-HL-2170W
示例-包括/排除
仅包括打印机“lp”和“2up”:
cloudprint -i lp -i 2up
排除名称以“gcp-”开头的所有打印机:
cloudprint -x GCP-
默认情况下,包括所有打印机。对于include和exclude选项, 参数是一个正则表达式,它与 打印机名称。
例如,包括名称以“lp”开头的所有打印机:
cloudprint -i lp # includes both lp and lp2up
安装
pip install cloudprint or with optional daemon support pip install cloudprint[daemon]
运行cloudprint后,通过访问 http://www.google.com/cloudprint/manage.html。