Skip to content

cmkohnen/gio_pyio

Repository files navigation

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

About

Python like IO for gio.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages