{ "info": { "author": "Josias Montag", "author_email": "info@cloudconvert.com", "bugtrack_url": null, "classifiers": [], "description": "cloudconvert-python\r\n===================\r\n\r\nThis is a lightweight wrapper for the\r\n`CloudConvert `__ API.\r\n\r\nFeel free to use, improve or modify this wrapper! If you have questions\r\ncontact us or open an issue on GitHub.\r\n\r\n.. image:: https://img.shields.io/pypi/v/cloudconvert.svg\r\n :alt: PyPi Version\r\n :target: https://pypi.python.org/pypi/cloudconvert\r\n.. image:: https://travis-ci.org/cloudconvert/cloudconvert-python.svg?branch=master\r\n :alt: Build Status\r\n :target: https://travis-ci.org/cloudconvert/cloudconvert-python\r\n\r\nQuickstart\r\n----------\r\n\r\n.. code:: python\r\n\r\n import cloudconvert\r\n\r\n api = cloudconvert.Api('your_api_key')\r\n\r\n process = api.convert({\r\n 'inputformat': 'png',\r\n 'outputformat': 'jpg',\r\n 'input': 'upload',\r\n 'file': open('tests/input.png', 'rb')\r\n })\r\n process.wait() # wait until conversion finished\r\n process.download(\"tests/output.png\") # download output file\r\n\r\nYou can use the `CloudConvert API\r\nConsole `__ to generate\r\nready-to-use python code snippets using this wrapper.\r\n\r\nInstallation\r\n------------\r\n\r\nThe easiest way to get the latest stable release is to grab it from\r\n`pypi `__ using ``pip``.\r\n\r\n.. code:: bash\r\n\r\n pip install cloudconvert\r\n\r\nDownload of multiple output files\r\n---------------------------------\r\n\r\nIn some cases it might be possible that there are multiple output files\r\n(e.g. converting a multi-page PDF to JPG). You can download them all to\r\none directory using the ``downloadAll()`` method.\r\n\r\n.. code:: python\r\n\r\n import cloudconvert\r\n\r\n api = cloudconvert.Api('your_api_key')\r\n\r\n process = api.convert({\r\n 'inputformat': 'pdf',\r\n 'outputformat': 'jpg',\r\n 'converteroptions': {\r\n 'page_range': '1-3'\r\n },\r\n 'input': 'upload',\r\n 'file': open('tests/input.pdf', 'rb')\r\n process.wait()\r\n process.downloadAll(\"tests\")\r\n })\r\n\r\nAlternatively you can iterate over ``process['output']['files']`` and\r\ndownload them seperately using\r\n``process.download(localfile, remotefile)``.\r\n\r\nHow to run tests?\r\n-----------------\r\n\r\n::\r\n\r\n pip install -r requirements-dev.txt\r\n export API_KEY=your_api_key\r\n nosetests\r\n\r\nResources\r\n---------\r\n\r\n- `API Documentation `__\r\n- `Conversion Types `__\r\n- `CloudConvert Blog `__\r\n\r\n.. |Build Status| image:: https://travis-ci.org/cloudconvert/cloudconvert-python.svg?branch=master\r\n :target: https://travis-ci.org/cloudconvert/cloudconvert-python", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://cloudconvert.com", "keywords": "cloudconvert", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cloudconvert", "package_url": "https://pypi.org/project/cloudconvert/", "platform": "", "project_url": "https://pypi.org/project/cloudconvert/", "project_urls": { "Homepage": "https://cloudconvert.com" }, "release_url": "https://pypi.org/project/cloudconvert/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Official CloudConvert API wrapper", "version": "1.0.0" }, "last_serial": 1836174, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "0f807308e6d6c639847ec947e2481dcb", "sha256": "bffd9ed57458a143bafad0aac8e8019961cc326b18f962eab1432fb47bb4a036" }, "downloads": -1, "filename": "cloudconvert-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0f807308e6d6c639847ec947e2481dcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5943, "upload_time": "2015-11-27T12:17:25", "url": "https://files.pythonhosted.org/packages/ec/01/788eb7a3ad516155b8b204d5ab24b2cadd8bc7addc73b2de997c034ca660/cloudconvert-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0f807308e6d6c639847ec947e2481dcb", "sha256": "bffd9ed57458a143bafad0aac8e8019961cc326b18f962eab1432fb47bb4a036" }, "downloads": -1, "filename": "cloudconvert-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0f807308e6d6c639847ec947e2481dcb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5943, "upload_time": "2015-11-27T12:17:25", "url": "https://files.pythonhosted.org/packages/ec/01/788eb7a3ad516155b8b204d5ab24b2cadd8bc7addc73b2de997c034ca660/cloudconvert-1.0.0.tar.gz" } ] }