{ "info": { "author": "Mark Allen", "author_email": "mrallen1@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries" ], "description": "======\npygett\n======\n\nAbout\n=====\n\nThis library provides a binding to the REST API for the file sharing service `Ge.tt `_. Please see\nthe `Ge.tt Developer's Documentation `_ for information on how to get an API key.\n\nInstallation\n============\n\nTo install, use the standard ``python setup.py install`` or ``sudo pip install pygett``\n\nDocumentation\n=============\nRead the full documentation on `ReadTheDocs `_.\n\nQuick Usage\n===========\n\nThe API initializaton requires the following parameters to be present:\n\n- **apikey**: The API key assigned by Ge.tt for your application\n- **email**: The email address linked to an API key\n- **password**: The password linked to an API key\n\nExample initialization::\n\n from pygett import Gett\n\n client = Gett(\n apikey = \"apitest\",\n email = \"apitest@ge.tt\",\n password = \"secret\"\n )\n\nGetting a dict of all shares::\n\n shares = client.get_shares()\n for file in shares['4ddfds'].files\n print file.filename\n\nGetting a list of all shares::\n\n shares = client.get_shares_list()\n for share in shares:\n for file in share.files:\n print share.sharename + \"\t\" + file.filename + \"\t\" + file.size\n\nGetting a specific share::\n\n share = client.get_share(\"4ddfds\")\n\nGetting a specific file::\n\n file = client.get_file(\"4ddfds\", 0)\n\nUploading a file::\n\n file = client.upload_file(\n filename = \"test.rst\",\n data = open(\"test.rst\", \"rb\").read()\n )\n\n print \"File '%s' is now available at %s\" % (file.filename, file.getturl)\n\nDownloading file content::\n\n file = client.get_file(\"4ddfds\", 0)\n buffer = file.contents()\n\nLicense\n=======\n\n`MIT License `_\n\nCopyright (c) 2011 Mark Allen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and \nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including \nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or \nsell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject \nto the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial \nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT \nNOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. \nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, \nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE \nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/mrallen1/pygett", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mrallen1/pygett", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pygett", "package_url": "https://pypi.org/project/pygett/", "platform": "Linux,Windows", "project_url": "https://pypi.org/project/pygett/", "project_urls": { "Download": "https://github.com/mrallen1/pygett", "Homepage": "https://github.com/mrallen1/pygett" }, "release_url": "https://pypi.org/project/pygett/1.0.2/", "requires_dist": null, "requires_python": null, "summary": "Gett API bindings", "version": "1.0.2" }, "last_serial": 745351, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "e4ce21b1e78eee8b1dd5c5c13ef60d8e", "sha256": "31f7431ba8f28e6caf66c2b0c112e0b5c8fa9c6a795d87657691efd4935fc689" }, "downloads": -1, "filename": "pygett-1.0.2.tar.gz", "has_sig": false, "md5_digest": "e4ce21b1e78eee8b1dd5c5c13ef60d8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9698, "upload_time": "2011-12-13T21:31:23", "url": "https://files.pythonhosted.org/packages/43/4e/bbf753ae46006788bd461fbf4fb0630637fee5458b32d35c4896a6ce828e/pygett-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e4ce21b1e78eee8b1dd5c5c13ef60d8e", "sha256": "31f7431ba8f28e6caf66c2b0c112e0b5c8fa9c6a795d87657691efd4935fc689" }, "downloads": -1, "filename": "pygett-1.0.2.tar.gz", "has_sig": false, "md5_digest": "e4ce21b1e78eee8b1dd5c5c13ef60d8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9698, "upload_time": "2011-12-13T21:31:23", "url": "https://files.pythonhosted.org/packages/43/4e/bbf753ae46006788bd461fbf4fb0630637fee5458b32d35c4896a6ce828e/pygett-1.0.2.tar.gz" } ] }