{ "info": { "author": "Lu\u00eds Gomes", "author_email": "luismsgomes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.5" ], "description": "==========\n openfile\n==========\n\n``openfile`` is a trivial Python module that implements a single convenience\nfunction ``openfile(filename, mode=\"rt\", **kwargs)`` wich delegates the real\nwork to one of the following standard library functions:\n\n- ``gzip.open(filename, mode, **kwargs)`` if the file ends with suffix ``.gz``;\n- ``bz2.open(filename, mode, **kwargs)`` if the file ends with suffix ``.bz2``;\n- ``lzma.open(filename, mode, **kwargs)`` if the file ends with suffix ``.xz`` or ``.lzma``;\n- ``open(filename, mode, **kwargs)`` if the file does not end with any suffix mentioned above.\n\nIf the ``filename`` is a single dash ``-`` then ``sys.stdin`` or ``sys.stdout``\nis returned, depending on ``mode`` being ``r`` or ``w``, respectively.\n\nThe following keyword arguments are used by openfile:\n\n- ``expanduser=True`` will cause openfile to call ``os.path.expanduser`` for ``filename``.\n- ``expandvars=True`` will cause openfile to call ``os.path.expandvars`` for ``filename``.\n- ``makedirs=True`` will cause openfile to call ``os.makedirs`` for the parent directory ``os.path.dirname(filename)`` if it does not exist and ``mode`` contains either ``\"w\"`` or ``\"a\"``.\n\nAll other keyword arguments passed to openfile will be passed down to the open functions listed above.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/luismsgomes/openfile", "keywords": "convenience", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "openfile", "package_url": "https://pypi.org/project/openfile/", "platform": "", "project_url": "https://pypi.org/project/openfile/", "project_urls": { "Homepage": "https://github.com/luismsgomes/openfile" }, "release_url": "https://pypi.org/project/openfile/0.0.7/", "requires_dist": null, "requires_python": "", "summary": "A convenience function that delegates to the appropriate standard library function.", "version": "0.0.7" }, "last_serial": 4312478, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "e6090131adbfff18dab1690dd23a93ba", "sha256": "152cd1036417561137402200999a4111ef3ec1c3b5385862d447e77be27ec787" }, "downloads": -1, "filename": "openfile-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e6090131adbfff18dab1690dd23a93ba", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3126, "upload_time": "2016-07-24T15:18:42", "url": "https://files.pythonhosted.org/packages/5f/01/4bd06cbe0b42a23f8d7530d32efe941307a2e25653cac678a6b74b5e18bf/openfile-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2a928ceb551d0e42b478611261a97935", "sha256": "683675d64c8d08aa9c4b05f2374a7a105b213216134a2f4c73cf183c3cb0de95" }, "downloads": -1, "filename": "openfile-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2a928ceb551d0e42b478611261a97935", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1847, "upload_time": "2016-07-24T15:18:34", "url": "https://files.pythonhosted.org/packages/99/e5/b66b134f3f88af52209add2f7c942a31af34e85577ae2e94b32bf787ee74/openfile-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4400ddf24cfcba720d53815d0d1703e2", "sha256": "733c4d624f365df664558bab001874b532535ce058810e954170f3f45dc87c1c" }, "downloads": -1, "filename": "openfile-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4400ddf24cfcba720d53815d0d1703e2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3123, "upload_time": "2016-07-24T15:31:41", "url": "https://files.pythonhosted.org/packages/6f/1c/1152a108d2d4b660565237e26b83547c9782c9ff33c09d97c124b886ff4d/openfile-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dd433854ec96a4f8f0d672021854468d", "sha256": "ae79f8a6dbb03c96f66abe28e8995ac9f4d6e581b3ebada3530a1ebb802790dc" }, "downloads": -1, "filename": "openfile-0.0.2.tar.gz", "has_sig": false, "md5_digest": "dd433854ec96a4f8f0d672021854468d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1848, "upload_time": "2016-07-24T15:31:06", "url": "https://files.pythonhosted.org/packages/5d/68/7291e7f09d56cb3f56c90f60738cf133b5df06cb194de28348bd55cd0869/openfile-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "af5d8aa78a6cb668921c7f41f46a6425", "sha256": "71043006b8d734e19312c788218ad51188518c8db3d1d104ba99ffb5a82e5ebf" }, "downloads": -1, "filename": "openfile-0.0.3.tar.gz", "has_sig": false, "md5_digest": "af5d8aa78a6cb668921c7f41f46a6425", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1860, "upload_time": "2017-10-04T13:06:46", "url": "https://files.pythonhosted.org/packages/fb/47/80287d895406d50bbc3319bef3c883d1db0d85883b5c3d74368f55b70b98/openfile-0.0.3.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "7e53a56d2e6ebae5e16f679e7c353e75", "sha256": "03f1f65da5e62d90802f49aae694eb4fdb4d1a1edab0f5b9e8c318b1e167f407" }, "downloads": -1, "filename": "openfile-0.0.5.tar.gz", "has_sig": false, "md5_digest": "7e53a56d2e6ebae5e16f679e7c353e75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1959, "upload_time": "2017-10-10T15:16:24", "url": "https://files.pythonhosted.org/packages/4c/6d/3c5024eff796a16af7aa8d48bb15199245b0d40565d27a93047251f13fb0/openfile-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "b5aaf21f5fa46953f75a6d6981796a9c", "sha256": "8fc37fb3b94c8d8256480307afb550d50bfcd0bcecc14e2cd91fa3f695894b1a" }, "downloads": -1, "filename": "openfile-0.0.6.tar.gz", "has_sig": false, "md5_digest": "b5aaf21f5fa46953f75a6d6981796a9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2136, "upload_time": "2017-10-10T15:33:12", "url": "https://files.pythonhosted.org/packages/17/d3/5ca4ba162e3a34ae95d70bb38cd59bd1de66baf4de5ab53724afa512efb8/openfile-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "3dce20af8ea5f37e80a5ba2b73f97e34", "sha256": "d21b69dba1306c9dd397a44fd8f4fa8a83812f1d935c409085e8a25c411d16ec" }, "downloads": -1, "filename": "openfile-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "3dce20af8ea5f37e80a5ba2b73f97e34", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2355, "upload_time": "2018-09-26T13:17:13", "url": "https://files.pythonhosted.org/packages/93/e6/805db6867faacb488b44ba8e0829ef4de151dd0499f3c5da5f4ad11698a7/openfile-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e2877c3c4ea6445f11f273d7251c3287", "sha256": "ea4e8f19112049f578ec161b12f70c1113144988c0a488ab173a138b50f37479" }, "downloads": -1, "filename": "openfile-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e2877c3c4ea6445f11f273d7251c3287", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2199, "upload_time": "2018-09-26T13:16:48", "url": "https://files.pythonhosted.org/packages/16/46/6c8b936e55ace50a6d9ea722dd4b11a4996d58cff41690636a0d6f6f6718/openfile-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3dce20af8ea5f37e80a5ba2b73f97e34", "sha256": "d21b69dba1306c9dd397a44fd8f4fa8a83812f1d935c409085e8a25c411d16ec" }, "downloads": -1, "filename": "openfile-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "3dce20af8ea5f37e80a5ba2b73f97e34", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2355, "upload_time": "2018-09-26T13:17:13", "url": "https://files.pythonhosted.org/packages/93/e6/805db6867faacb488b44ba8e0829ef4de151dd0499f3c5da5f4ad11698a7/openfile-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e2877c3c4ea6445f11f273d7251c3287", "sha256": "ea4e8f19112049f578ec161b12f70c1113144988c0a488ab173a138b50f37479" }, "downloads": -1, "filename": "openfile-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e2877c3c4ea6445f11f273d7251c3287", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2199, "upload_time": "2018-09-26T13:16:48", "url": "https://files.pythonhosted.org/packages/16/46/6c8b936e55ace50a6d9ea722dd4b11a4996d58cff41690636a0d6f6f6718/openfile-0.0.7.tar.gz" } ] }