{ "info": { "author": "Hugo Peixoto", "author_email": "hugo.peixoto@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Plowshare Wrapper\n=================\n\n|Build Status| |Coverage Status| |PyPI version|\n\nPython wrapper for managing multi-host uploads and downloads using\n`plowshare`_. After uploading it returns an object with links to the\nfile it uploaded. This wrapper contains both a Python module and a\ncommand line tool.\n\nInstallation\n------------\n\nCheck INSTALL.rst for installation instructions.\n\nModule Usage\n------------\n\nUpload\n~~~~~~\n\nThis module is composed of a single class, which can be used to upload a\nfile to multiple hosts at once. Example:\n\n::\n\n import plowshare\n\n p = plowshare.Plowshare()\n p.upload('/home/jessie/documents/README.rst', 3)\n\nThe above example uploads the given file to three different hosts,\nchosen at random from a predefined list. This list is a subset of the\navailable plowshare modules, limited to the ones that allow anonymous\naccess. You can check it in plowshare/hosts.py\n\nYou can also specify a list of hosts (plowshare module names) to use:\n\n::\n\n import plowshare\n\n p = plowshare.Plowshare(['turbobit', 'multiupload', 'exoshare', 'rghost', 'bayfiles'])\n p.upload('/home/jessie/documents/README.rst', 3)\n\nThe upload method returns an array of objects with the hosts and URLs to\nwhich it uploaded the file. If some of the uploads fail, it doesn\u2019t\nreturn an URL, but an error flag instead.\n\nHere\u2019s an example:\n\n::\n\n [\n { \"host_name\": \"mediafire\", \"url\": \"http://www.mediafire.com/?qorncpzfe74s9\" },\n { \"host_name\": \"rapidshare\", \"url\": \"http://rapidshare.com/files/130403982\" },\n { \"host_name\": \"anonfiles\", \"error\": true }\n ]\n\nDownload\n~~~~~~~~\n\nYou can also download uploaded files, by providing the object that the\nupload method generated, and the directory and filename where to\ndownload the file. This method returns an object that contains the path\nwhere the file was downloaded, or an object with the error message.\nExample:\n\n::\n\n import plowshare\n\n uploads = [\n { 'host_name': 'mediafire', 'url':'http://www.mediafire.com/?qorncpzfe74s9' },\n { 'host_name': 'rapidshare', 'url':'http://rapidshare.com/files/130403982' },\n { 'host_name': 'anonfiles', 'error':true }\n ]\n\n p = plowshare.Plowshare()\n p.download(info, '/tmp/', 'readme_copy.rst')\n\nIf multiple sources are provided, they are used as failovers for\ndownloading the file. If at least one source is successful, the others\nwon\u2019t be attempted and ``download()`` will return an object with the\nfull path filename and the first host it successfuly downloaded it from:\n\n::\n\n { \"host_name\": \"mediafire\", \"filename\": \"/tmp/readme_copy.rst\" }\n\nThere are multiple errors that can occur. Here\u2019s a list of the currently\nsupported errors:\n\n::\n\n { \"error\": \"no valid sources\" } \n\n.. _plowshare: https://code.google.com/p/plowshare/\n\n.. |Build Status| image:: https://travis-ci.org/Storj/plowshare-wrapper.svg\n :target: https://travis-ci.org/Storj/plowshare-wrapper\n.. |Coverage Status| image:: https://coveralls.io/repos/Storj/plowshare-wrapper/badge.png?branch=master\n :target: https://coveralls.io/r/Storj/plowshare-wrapper?branch=master\n.. |PyPI version| image:: https://badge.fury.io/py/plowshare.svg\n :target: http://badge.fury.io/py/plowshare", "description_content_type": null, "docs_url": "https://pythonhosted.org/plowshare/", "download_url": "https://github.com/storj/plowshare-wrapper/tarball/0.3.6", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/storj/plowshare-wrapper", "keywords": "storj,metadisk,plowshare,plowshare wrapper", "license": "The MIT License (MIT)\n\nCopyright (c) 2014 Storj Labs\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "plowshare", "package_url": "https://pypi.org/project/plowshare/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/plowshare/", "project_urls": { "Download": "https://github.com/storj/plowshare-wrapper/tarball/0.3.6", "Homepage": "https://github.com/storj/plowshare-wrapper" }, "release_url": "https://pypi.org/project/plowshare/0.3.6/", "requires_dist": null, "requires_python": null, "summary": "Manages multi-host uploads using plowshare.", "version": "0.3.6" }, "last_serial": 1331334, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "3ef8b6e8b33d0e8d4eb426ab220afa85", "sha256": "cb36a1988e9a58c5d744b62fb2816da97e2533cf017eed80f7236f79d6c5c29c" }, "downloads": -1, "filename": "plowshare-0.3.0.tar.gz", "has_sig": false, "md5_digest": "3ef8b6e8b33d0e8d4eb426ab220afa85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6190, "upload_time": "2014-12-03T12:36:04", "url": "https://files.pythonhosted.org/packages/a9/38/2a524b36ccf4315b273c5bc7a30fbf85512657be80a3843ca88a86638b6b/plowshare-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "4ce3e6edefd2c7dc748d92640c954de9", "sha256": "0c8b147370996cef00170ae609d6f783cfa2eb3f9e772c762ffb341475e58e53" }, "downloads": -1, "filename": "plowshare-0.3.1.tar.gz", "has_sig": false, "md5_digest": "4ce3e6edefd2c7dc748d92640c954de9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6192, "upload_time": "2014-12-03T12:37:17", "url": "https://files.pythonhosted.org/packages/c0/2e/5391385b70eb0fced07b5b4ad5ee8acad6d14e548efe71da19ce4dcb47d8/plowshare-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "b0b22fb6a349513866209ba2cea776b6", "sha256": "f2d7e9d182947170f039cb59818e5f72f429b53355653062739edbcfba63c37a" }, "downloads": -1, "filename": "plowshare-0.3.2.tar.gz", "has_sig": false, "md5_digest": "b0b22fb6a349513866209ba2cea776b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6275, "upload_time": "2014-12-03T12:44:39", "url": "https://files.pythonhosted.org/packages/bd/90/342a61dd8865f85bd1365f89efbea4a015ca9db09bc987b6e5b3b8ca7ca3/plowshare-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "74c195e2b1f7f224d161259d602b2ef9", "sha256": "1c29fccb05585bd16581322ebbbf765cc71c0cd60845429bb3923deb89fdff38" }, "downloads": -1, "filename": "plowshare-0.3.3.tar.gz", "has_sig": false, "md5_digest": "74c195e2b1f7f224d161259d602b2ef9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6317, "upload_time": "2014-12-03T12:47:54", "url": "https://files.pythonhosted.org/packages/d3/c1/f31b48efda102e08e15b1da9a9bb769b9204534c88686598cfa431519e32/plowshare-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "4f57f953729321024ed4f4f89e376549", "sha256": "6402d26c38574cbd292b143263723fdbbc3810ee530c083d586d774809f85cb8" }, "downloads": -1, "filename": "plowshare-0.3.4.tar.gz", "has_sig": false, "md5_digest": "4f57f953729321024ed4f4f89e376549", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6325, "upload_time": "2014-12-03T12:54:59", "url": "https://files.pythonhosted.org/packages/6f/ad/d858c674fff2d9afa4a6436fb43b89eefd80805fadad5d8886d7b35777ff/plowshare-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "c50be770a1a22db6c82b385b99ed42fe", "sha256": "329d128969210f2c7e9989371517139e7c1f09e84bd57e4b2849215232af960c" }, "downloads": -1, "filename": "plowshare-0.3.5.tar.gz", "has_sig": false, "md5_digest": "c50be770a1a22db6c82b385b99ed42fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6305, "upload_time": "2014-12-03T13:00:36", "url": "https://files.pythonhosted.org/packages/0a/ec/14e63cffdcb315db2fd314d774106f392a239a5b08d3f3e9cae7dd107dc8/plowshare-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "cc03248402d719c52faac8e55327ac61", "sha256": "1e7e5dc7d5a9ca1d89be8e67da27e74bf65bb2f0a6b98bd8bea5d4308d1e5e2d" }, "downloads": -1, "filename": "plowshare-0.3.6.tar.gz", "has_sig": false, "md5_digest": "cc03248402d719c52faac8e55327ac61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6363, "upload_time": "2014-12-04T19:53:28", "url": "https://files.pythonhosted.org/packages/18/c7/652d2f7e6ad282b4babaceb541b803fcc72b9132385f5197946e9456f52d/plowshare-0.3.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cc03248402d719c52faac8e55327ac61", "sha256": "1e7e5dc7d5a9ca1d89be8e67da27e74bf65bb2f0a6b98bd8bea5d4308d1e5e2d" }, "downloads": -1, "filename": "plowshare-0.3.6.tar.gz", "has_sig": false, "md5_digest": "cc03248402d719c52faac8e55327ac61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6363, "upload_time": "2014-12-04T19:53:28", "url": "https://files.pythonhosted.org/packages/18/c7/652d2f7e6ad282b4babaceb541b803fcc72b9132385f5197946e9456f52d/plowshare-0.3.6.tar.gz" } ] }