{ "info": { "author": "WangST", "author_email": "wangst321@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python :: 3.4" ], "description": "===============================\nAsync FDFS Client for tornado\n===============================\n\nThis library provides an async FDFS client for tornado.\n\nQuickStart\n===========\n\ninstall using pip::\n\n $ pip install fdfs-tornado\n\n\nBasic Usage\n============\n\ninit a client\n--------------\n\nuse ``tracker_ip`` and ``tracker_port`` to initialize the FDFS Client.\nCreate a single client for a specific case.\n\n.. code-block:: python\n\n from fdfs_tornado.client import makeclient\n\n AsyncFDFSClient = makeclient(tracker_ip, tracker_port)\n client = AsyncFDFSClient()\n\n.. note::\n\n the client will not create any connection before upload or download\n actions.\n\nupload a file\n--------------\n\nTo upload a file. First open the file in binary mode, and get the size, those\nare required.\n\n.. code-block:: python\n\n from tornado.ioloop import IOLoop\n ioloop = IOLoop.instance()\n\n client = AsyncFDFSClient()\n with open(filename, 'rb') as f:\n file_size = os.stat(filename).st_size\n future = client.upload(f, file_size)\n future.add_done_callback(lambda _: ioloop.close())\n ioloop.start()\n\n ret = future.result()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://git.elenet.me/opdev/eoc-api.git", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "fdfs-tornado", "package_url": "https://pypi.org/project/fdfs-tornado/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fdfs-tornado/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://git.elenet.me/opdev/eoc-api.git" }, "release_url": "https://pypi.org/project/fdfs-tornado/0.1a1/", "requires_dist": null, "requires_python": null, "summary": "Async FDFS Client for tornado", "version": "0.1a1" }, "last_serial": 1610248, "releases": { "0.1a1": [ { "comment_text": "", "digests": { "md5": "13783dfd8f265293f4cfa833ec0c3c3f", "sha256": "f09ac84f5914198cb1757eccafbd262887b0f66aa1123ed8539665abc056ddb6" }, "downloads": -1, "filename": "fdfs-tornado-0.1a1.tar.gz", "has_sig": false, "md5_digest": "13783dfd8f265293f4cfa833ec0c3c3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4175, "upload_time": "2015-06-28T16:49:51", "url": "https://files.pythonhosted.org/packages/04/97/147621385aa2850de4ba92dc3b51d43f416ee8dc8adb3ba949ecb69c08ec/fdfs-tornado-0.1a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "13783dfd8f265293f4cfa833ec0c3c3f", "sha256": "f09ac84f5914198cb1757eccafbd262887b0f66aa1123ed8539665abc056ddb6" }, "downloads": -1, "filename": "fdfs-tornado-0.1a1.tar.gz", "has_sig": false, "md5_digest": "13783dfd8f265293f4cfa833ec0c3c3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4175, "upload_time": "2015-06-28T16:49:51", "url": "https://files.pythonhosted.org/packages/04/97/147621385aa2850de4ba92dc3b51d43f416ee8dc8adb3ba949ecb69c08ec/fdfs-tornado-0.1a1.tar.gz" } ] }