Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 711 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 711 Bytes

gio-pyio

Python like IO for gio.

Documentation Status

This library provides python like IO for Gio. It is intended to bridge the gap between Gtk apps using GFile for file handling and python libraries that expect files in the form of file objects.

Usage

See the example below:

file = Gio.File.new_for_path('/path/to/json/file.json')
with gio_pyio.open(file, 'rb') as file_like:
    data = json.load(file_like)
    print(data)

For advanced usage see the reference