{ "info": { "author": "Christoph Reiter", "author_email": "reiter.christoph@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython" ], "description": "*******\ngiofile\n*******\n\nOpens a Gio.File as a Python file object\n\n.. code:: python\n\n def open(file, mode=\"r\", buffering=-1, encoding=None, errors=None,\n newline=None, cancellable=None):\n \"\"\"\n Like io.open() but takes a Gio.File instead of a filename.\n\n The only modes supported are r/rw/rb/r+b\n Takes a cancellable kwarg for passing a Gio.Cancellable().\n Cancelling it will abort any ongoing blocking operation.\n\n Returns a io.IOBase instance.\n \"\"\"\n\n.. image:: https://travis-ci.org/lazka/giofile.svg?branch=master\n :target: https://travis-ci.org/lazka/giofile\n\nInstallation\n============\n\n::\n\n pip install giofile\n\nExample\n=======\n\n.. code:: python\n\n import mutagen\n import giofile\n from gi.repository import Gio\n\n gio_file = Gio.File.new_for_uri(\n \"http://people.xiph.org/~giles/2012/opus/ehren-paper_lights-96.opus\")\n\n cancellable = Gio.Cancellable.new()\n with giofile.open(gio_file, \"rb\", cancellable=cancellable) as gfile:\n print(mutagen.File(gfile).pprint())\n\n.. code:: sh\n\n $ python example.py\n Ogg Opus, 228.11 seconds (audio/ogg)\n ENCODER=opusenc from opus-tools 0.1.5\n artist=Ehren Starks\n title=Paper Lights\n album=Lines Build Walls\n date=2005-09-05\n copyright=Copyright 2005 Ehren Starks\n license=http://creativecommons.org/licenses/by-nc-sa/1.0/\n organization=magnatune.com\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lazka/giofile", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "giofile", "package_url": "https://pypi.org/project/giofile/", "platform": "", "project_url": "https://pypi.org/project/giofile/", "project_urls": { "Homepage": "https://github.com/lazka/giofile" }, "release_url": "https://pypi.org/project/giofile/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Opens a Gio.File as a Python file object", "version": "0.2.0" }, "last_serial": 3419368, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4dde3c3a0219b2b261e6ab6716d5674b", "sha256": "0b4fbf418316186206e0466b0ceb3b49c5c7bf96a55d06dbea70009078d09325" }, "downloads": -1, "filename": "giofile-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4dde3c3a0219b2b261e6ab6716d5674b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5122, "upload_time": "2017-08-05T09:26:19", "url": "https://files.pythonhosted.org/packages/00/8f/9ffaa1cea96bc88c827fddf73b2d93246502f895f959fb59ab35407f28f3/giofile-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "72a05637ff76842ea9f86e0e777d246c", "sha256": "2e00d57cb3f81a1fd97bca7b6f1696cdc6ec5a409276aea7c27283c4e3e34b77" }, "downloads": -1, "filename": "giofile-0.2.0.tar.gz", "has_sig": false, "md5_digest": "72a05637ff76842ea9f86e0e777d246c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5240, "upload_time": "2017-12-15T09:33:43", "url": "https://files.pythonhosted.org/packages/88/d0/34dbabf17c9d697578db890acddb7cdf0e76a2591e96462efb179171a3c4/giofile-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "72a05637ff76842ea9f86e0e777d246c", "sha256": "2e00d57cb3f81a1fd97bca7b6f1696cdc6ec5a409276aea7c27283c4e3e34b77" }, "downloads": -1, "filename": "giofile-0.2.0.tar.gz", "has_sig": false, "md5_digest": "72a05637ff76842ea9f86e0e777d246c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5240, "upload_time": "2017-12-15T09:33:43", "url": "https://files.pythonhosted.org/packages/88/d0/34dbabf17c9d697578db890acddb7cdf0e76a2591e96462efb179171a3c4/giofile-0.2.0.tar.gz" } ] }