{ "info": { "author": "Tyghe Vallard", "author_email": "vallardt@gmail.com", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://travis-ci.org/necrolyte2/filehandle.svg\n :target: https://travis-ci.org/necrolyte2/filehandle\n\n.. image:: https://coveralls.io/repos/necrolyte2/filehandle/badge.svg\n :target: https://coveralls.io/r/necrolyte2/filehandle\n\n.. image:: https://badge.fury.io/py/filehandle.svg\n :target: https://badge.fury.io/py/filehandle\n\nfilehandle\n==========\n\nNormalize the way you get file handle from either gzip or normal file\n\nTypical way to open gzip or regular file\n\n.. code-block:: python\n\n >>> import gzip\n >>> import os.path\n >>> files = ['/path/to/foo.bar.gz', '/path/to/foo.bar']\n >>> for f in files:\n ... root, ext = os.path.splitext(f.replace('.gz',''))\n ... ext = ext[1:]\n ... if f.endswith('.gz'):\n ... handle = gzip.open(f)\n ... else:\n ... handle = open(f)\n\nUsing filehandle\n----------------\n\n.. code-block:: python\n\n >>> import filehandle\n >>> files = ['/path/to/foo.bar.gz', '/path/to/foo.bar']\n >>> for f in files:\n ... handle, extension = filehandle.open(f)\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/necrolyte2/filehandle", "keywords": "gzip,handle,open,file", "license": "GPL v2", "maintainer": null, "maintainer_email": null, "name": "filehandle", "package_url": "https://pypi.org/project/filehandle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/filehandle/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/necrolyte2/filehandle" }, "release_url": "https://pypi.org/project/filehandle/0.0.9/", "requires_dist": null, "requires_python": null, "summary": "Normalize the way you get a file handle from either gzip or normal file", "version": "0.0.9" }, "last_serial": 1406757, "releases": { "0.0.9": [ { "comment_text": "", "digests": { "md5": "4b948f85c9b9e9a0043f82771fe00152", "sha256": "99c966fe0c4df486759799264b2a4c0b84763f1674dec6c5e6d8a3e11f004077" }, "downloads": -1, "filename": "filehandle-0.0.9.tar.gz", "has_sig": false, "md5_digest": "4b948f85c9b9e9a0043f82771fe00152", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1635, "upload_time": "2015-02-02T19:47:50", "url": "https://files.pythonhosted.org/packages/54/ec/1a6385184b6fc512b62ace58cc4446bdc1b5a693f93157edd030ad3125b5/filehandle-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4b948f85c9b9e9a0043f82771fe00152", "sha256": "99c966fe0c4df486759799264b2a4c0b84763f1674dec6c5e6d8a3e11f004077" }, "downloads": -1, "filename": "filehandle-0.0.9.tar.gz", "has_sig": false, "md5_digest": "4b948f85c9b9e9a0043f82771fe00152", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1635, "upload_time": "2015-02-02T19:47:50", "url": "https://files.pythonhosted.org/packages/54/ec/1a6385184b6fc512b62ace58cc4446bdc1b5a693f93157edd030ad3125b5/filehandle-0.0.9.tar.gz" } ] }