semvec/pypi-packages huggingface dataset:
giofile 0.2.0
Opens a Gio.File as a Python file object
License: MIT

*******
giofile
*******

Opens a Gio.File as a Python file object

.. code:: python

    def open(file, mode="r", buffering=-1, encoding=None, errors=None,
             newline=None, cancellable=None):
        """
        Like io.open() but takes a Gio.File instead of a filename.

        The only modes supported are r/rw/rb/r+b
        Takes a cancellable kwarg for passing a Gio.Cancellable().
        Cancelling it will abort any ongoing blocking operation.

        Returns a io.IOBase instance.
        """

.. image:: https://travis-ci.org/lazka/giofile.svg?branch=master
    :target: https://travis-ci.org/lazka/giofile

Installation
============

::

    pip install giofile

Example
=======

.. code:: python

    import mutagen
    import giofile
    from gi.repository import Gio

    gio_file = Gio.File.new_for_uri(
        "http://people.xiph.org/~giles/2012/opus/ehren-paper_lights-96.opus")

    cancellable = Gio.Cancellable.new()
    with giofile.open(gio_file, "rb", cancellable=cancellable) as gfile:
        print(mutagen.File(gfile).pprint())

.. code:: sh

    $ python example.py
    Ogg Opus, 228.11 seconds (audio/ogg)
    ENCODER=opusenc from opus-tools 0.1.5
    artist=Ehren Starks
    title=Paper Lights
    album=Lines Build Walls
    date=2005-09-05
    copyright=Copyright 2005 Ehren Starks
    license=http://creativecommons.org/licenses/by-nc-sa/1.0/
    organization=magnatune.com
wkhtmltopdf-pack 0.12.3.0.post1
wkhtmltopdf 0.12.3.0 for Python on Heroku/cloudControl buildpacks
License: MIT
Keywords: pdf wkhtmltopdf paas heroku cloudcontrol buildpack

wkhtmltopdf-pack
================

This package installs a `wkhtmltopdf` binary in a Heroku or cloudControl deployment. Versioning on this package mimics
the version number of the included `wkhtmltopdf` binary.

wkhtmltopdf_ is an open source (LGPLv3) command line tool to render HTML into PDF using the
Qt WebKit rendering engine.

Installation
------------

Install it in the usual way:

    pip install wkhtmltopdf-pack

Usage
-----

There are multiple Python wrappers for wkhtmltopdf you can use. If you are using Django in your project, you can use
the django-wkhtmltopdf_ wrapper.

The binary you want to use is named `wkhtmltopdf-pack`.

Acknowledgements
----------------

Binaries are originally generated for the `wkhtmltopdf-heroku` Ruby Gem. A big thank you to the wkhtmltopdf-heroku_
contributors!


.. _wkhtmltopdf: http://wkhtmltopdf.org/
.. _django-wkhtmltopdf: https://pypi.python.org/pypi/django-wkhtmltopdf
.. _wkhtmltopdf-heroku: https://github.com/bradphelan/wkhtmltopdf-heroku