适用于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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何用java表示这个数学函数的算法   Java/Stream帮助:仅使用streams将嵌套的映射列表转换为映射   使用Selenium连接到数据库时发生java未知主机异常   java如何了解jvm内存使用:“堆内存”和“堆外内存”   java Oracle BI报告导入模板   java如何使用Spring将xml转换为bean?   java线程。join()以保证执行顺序   java从THINGSPEAK到ANDROID应用程序获取JSON数据   使用Java的stanford库中的异常   java正确使用来自其他类文件的方法   如果集合中的元素类型为接口类型,如何填充集合?(爪哇)   记录java。util。记录器创建的文件超过了应有的数量   类Java对象uniq值   尝试调用无法应用于()的方法时出现java错误