{ "info": { "author": "Jayden Smith", "author_email": "jayden@intelliscale.com.au", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Software Development :: Libraries" ], "description": "=============\ngoogleprint\n=============\n\nA simple interface to Google Cloud Print.\n\nUsage::\n\n >>> from googleprint import *\n >>> auth = OAuth2(access_token=\"qwertyuiopasdfghjkl\", token_token=\"Bearer\")\n >>> r = list_jobs(auth=auth)\n >>> r['jobs']\n [{\"id\": ...}, ...]\n >>> r = submit_job(printer=\"0e506d12-dbe0-54d3-7392-fd69d45ff2fc\", content=\"test.pdf\", auth=auth)\n >>> r['job']\n {\"id\": \"abcdefgh\", ...}\n >>> delete_job(\"abcdefgh\", auth=auth)\n\nSupports both Python 2 and 3:\n\n- \u2265 Python 2.6\n- \u2265 Python 3.2\n\nInstall\n=======\n\nUse pip to install the latest version from PyPI::\n\n pip install googleprint\n\n\nCommand line interface\n======================\n\nThe module can be used from the command line via::\n\n python -m googleprint ...\n\nSee ``--help`` for details.\n\n\nTests\n=====\n\nThe test suite requires three environment variables:\n\n- ``CP_CLIENT_ID`` -- application \"client id\" (Google API)\n- ``CP_CLIENT_SECRET`` -- application \"client secret\" (Google API)\n- ``CP_REFRESH_TOKEN`` -- refresh token for an authorised Google Account\n- ``CP_PRINTER_ID`` -- printer ID (optional, default: ``__google__docs``)\n\nDuring the tests a PDF is printed. By default the Google Docs printer is used,\nhowever it is more forgiving than typical printers, so I don't recommend using\nit.\n\nExample::\n\n CP_CLIENT_ID=1234567890.apps.googleusercontent.com \\\n CP_CLIENT_SECRET=asdfghjklzxcvbnmqwertyuiop \\\n CP_REFESH_TOKEN=mnbvcxzlkjhgfdspoiuytr \\\n CP_PRINTER_ID=0e50ed12-dbe0-54d3-a4bd-fdf9d45ff2fc \\\n tox\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/jaydensmith/googleprint/tarball/0.1.5", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jaydensmith/googleprint", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "googleprint", "package_url": "https://pypi.org/project/googleprint/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/googleprint/", "project_urls": { "Download": "https://github.com/jaydensmith/googleprint/tarball/0.1.5", "Homepage": "https://github.com/jaydensmith/googleprint" }, "release_url": "https://pypi.org/project/googleprint/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "Simple API for Google Cloud Print", "version": "0.1.5" }, "last_serial": 2086723, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "dcb479f0e89230244c8472938b7416db", "sha256": "463d8216a05d34cf7efb6413f3e806d8d7715e7c7749448cc2b2cda06bd51ed1" }, "downloads": -1, "filename": "googleprint-0.1.tar.gz", "has_sig": false, "md5_digest": "dcb479f0e89230244c8472938b7416db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10311, "upload_time": "2015-12-22T11:29:37", "url": "https://files.pythonhosted.org/packages/93/3f/eafb5f47dcb145cf08c52cba16e1ae7aaae52b36272f7198cadffc8b3934/googleprint-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "cf336ebd1d62fd94199cb61cbd9d3672", "sha256": "1da020ef029b0d63151a550df19d0601d8aee93a2719abdc80210e02a2bd6fcb" }, "downloads": -1, "filename": "googleprint-0.1.1.tar.gz", "has_sig": false, "md5_digest": "cf336ebd1d62fd94199cb61cbd9d3672", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10334, "upload_time": "2015-12-23T11:45:36", "url": "https://files.pythonhosted.org/packages/60/10/a0a4db10045b9c47442e51482ce9cd855f87efd6c61fa9f7584f8640f9af/googleprint-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "d40377d4f5ad4149df9b37cc6b4283dd", "sha256": "ccca8748842328f01f929346df01c297c58a6d60e89242477d9e6a4434ca6bce" }, "downloads": -1, "filename": "googleprint-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d40377d4f5ad4149df9b37cc6b4283dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10348, "upload_time": "2016-01-03T11:07:27", "url": "https://files.pythonhosted.org/packages/bd/b3/5952877f4cbaa8f4ddb19461e22df3c190fdb61ea19368a1acad4917f7ff/googleprint-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "dc46a29a3c631f3a2f97a94978c944b2", "sha256": "0db2b98af45e163a54205a4ffe219e7da7202693c62989c4b24a82cb9eeed2ca" }, "downloads": -1, "filename": "googleprint-0.1.3.tar.gz", "has_sig": false, "md5_digest": "dc46a29a3c631f3a2f97a94978c944b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10391, "upload_time": "2016-01-19T04:06:53", "url": "https://files.pythonhosted.org/packages/b4/0f/fbfcbb95bcfabfcf70770891bca30004ae0f84fadef8076a296392202db8/googleprint-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "c0de53115e46fca63078bf55a31ea495", "sha256": "19ee54df7084aee0ebda4a7c9df52924ba92595f4a29d390206c0826510119a8" }, "downloads": -1, "filename": "googleprint-0.1.4.tar.gz", "has_sig": false, "md5_digest": "c0de53115e46fca63078bf55a31ea495", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10504, "upload_time": "2016-04-27T10:35:48", "url": "https://files.pythonhosted.org/packages/42/f9/578b357cc49abacfa713b2971d312d4fd95f91ee1fe2a1c8a92832253f9f/googleprint-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "696147f8cdf04bfb9b0ee0d2c65c01cb", "sha256": "8b28d43f0bde6aeaef206b7186eed1633ce3f97f3750b0febf7376475d506a1c" }, "downloads": -1, "filename": "googleprint-0.1.5.tar.gz", "has_sig": false, "md5_digest": "696147f8cdf04bfb9b0ee0d2c65c01cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10525, "upload_time": "2016-04-27T12:03:38", "url": "https://files.pythonhosted.org/packages/8e/c0/49e47ce7efe961f68c9d183659136bfbd84d038102825b020bb7bb1d6fa0/googleprint-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "696147f8cdf04bfb9b0ee0d2c65c01cb", "sha256": "8b28d43f0bde6aeaef206b7186eed1633ce3f97f3750b0febf7376475d506a1c" }, "downloads": -1, "filename": "googleprint-0.1.5.tar.gz", "has_sig": false, "md5_digest": "696147f8cdf04bfb9b0ee0d2c65c01cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10525, "upload_time": "2016-04-27T12:03:38", "url": "https://files.pythonhosted.org/packages/8e/c0/49e47ce7efe961f68c9d183659136bfbd84d038102825b020bb7bb1d6fa0/googleprint-0.1.5.tar.gz" } ] }