{ "info": { "author": "Bradley Ayers", "author_email": "bradley.ayers@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Software Development :: Libraries" ], "description": "=============\ncloudprinting\n=============\n\nA simple interface to Google Cloud Print.\n\nUsage::\n\n >>> from cloudprinting 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 cloudprinting\n\n\nCommand line interface\n======================\n\nThe module can be used from the command line via::\n\n python -m cloudprinting ...\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\n\nChange log\n==========\n\n0.3.2\n=====\n\n- Fix bug in auto-refreshing of OAuth2\n- Remove expiration time recording from OAuth2\n\n0.3.1\n=====\n\n- Make OAuth2 arguments all optional\n- Fix MANIFEST.in\n- Fix README bugs\n\n0.3.0\n=====\n\n- Add ``OAuth2`` authentication\n- ``ClientLoginAuth`` only available on Python 2.x\n- By default send ``capabilities`` (even if it's ``[{}]``). This fixes some\n issues\n- Print jobs now default to using the filename as the title (no more automatic\n inclusion of datetime)\n- Added a crude command line interface\n\n0.2.0\n=====\n\n- Make ``ClientLoginAuth`` cache authentication token\n\n0.1.0\n=====\n\n- Initial version\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/cloudprinting/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "cloudprinting", "package_url": "https://pypi.org/project/cloudprinting/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cloudprinting/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/cloudprinting/" }, "release_url": "https://pypi.org/project/cloudprinting/0.3.2/", "requires_dist": null, "requires_python": null, "summary": "Simple API for Google Cloud Print", "version": "0.3.2" }, "last_serial": 787511, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e550ac9e41c40b96ae0b36a8ab73e7e2", "sha256": "eb2202d09f23b8dcad017507d64cfe7b125aab9f21c36dc414b91cad0deb479f" }, "downloads": -1, "filename": "cloudprinting-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e550ac9e41c40b96ae0b36a8ab73e7e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6129, "upload_time": "2012-08-30T23:44:01", "url": "https://files.pythonhosted.org/packages/85/76/9d3d8f2bf4ce5ceb24f4a55546525e5f1eeea6250e7ff019904251783ebf/cloudprinting-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ec7e2ee509725d523892b99828bb2edf", "sha256": "a551f8a7ab746dd13a57d7fbf6b8a57a9a46c4041a394d6928eda5a49378c6bb" }, "downloads": -1, "filename": "cloudprinting-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ec7e2ee509725d523892b99828bb2edf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6582, "upload_time": "2012-08-31T03:47:27", "url": "https://files.pythonhosted.org/packages/f5/8e/5e059de457727e741b769dc0e5aff0c87d9636f5c3499081b3903406b08f/cloudprinting-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "a26a61a04cd53487f667bff6316bb088", "sha256": "7e5d46479c91a07e2b31511c5a9ea8881e546742115fd5885b389ba136fe09c4" }, "downloads": -1, "filename": "cloudprinting-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a26a61a04cd53487f667bff6316bb088", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10163, "upload_time": "2012-10-10T02:52:57", "url": "https://files.pythonhosted.org/packages/9d/5c/dd17022c54eaa706a028b3748ee6adb6837209b747906f7620661a06a5c0/cloudprinting-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "9c7f44aabf153cf4b642650e01939aad", "sha256": "2e45a72b75618709beb20e0ede90f6a9bd6802b993089f74ae97541272d6a5c0" }, "downloads": -1, "filename": "cloudprinting-0.3.1.tar.gz", "has_sig": false, "md5_digest": "9c7f44aabf153cf4b642650e01939aad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10500, "upload_time": "2012-10-10T03:35:43", "url": "https://files.pythonhosted.org/packages/c7/12/e91f6cf9547ec122abf3258f6f35ec1a3ed4983febaa8160878f6a62b5d4/cloudprinting-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "acaa80b08b2581758708365a260b0055", "sha256": "8327447d313c47a9562781b7df6b753a28aa603b632ae9754b4f28ecd0edd2f0" }, "downloads": -1, "filename": "cloudprinting-0.3.2.tar.gz", "has_sig": false, "md5_digest": "acaa80b08b2581758708365a260b0055", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10498, "upload_time": "2012-10-10T04:11:06", "url": "https://files.pythonhosted.org/packages/e8/1c/a0dd2e7ed441bc57aafe327038edb5d79ef3d5c67e63f29acfb428ebac52/cloudprinting-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "acaa80b08b2581758708365a260b0055", "sha256": "8327447d313c47a9562781b7df6b753a28aa603b632ae9754b4f28ecd0edd2f0" }, "downloads": -1, "filename": "cloudprinting-0.3.2.tar.gz", "has_sig": false, "md5_digest": "acaa80b08b2581758708365a260b0055", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10498, "upload_time": "2012-10-10T04:11:06", "url": "https://files.pythonhosted.org/packages/e8/1c/a0dd2e7ed441bc57aafe327038edb5d79ef3d5c67e63f29acfb428ebac52/cloudprinting-0.3.2.tar.gz" } ] }