Python like IO for gio
Project description
gio-pyio
Python like IO for gio.
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gio_pyio-0.0.3.tar.gz
(22.4 kB
view details)
Built Distribution
gio_pyio-0.0.3-py3-none-any.whl
(19.5 kB
view details)
File details
Details for the file gio_pyio-0.0.3.tar.gz
.
File metadata
- Download URL: gio_pyio-0.0.3.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d547c773cb8cf9960974e20dfbbf3778804a692915b8ca61fa3e14f097e0e4 |
|
MD5 | a2804263f3377f742c3b666ebe783c8a |
|
BLAKE2b-256 | 5e972097dbc38f01bcb5c487c9398122a61479a9087b662c86dd0d5c7518e973 |
File details
Details for the file gio_pyio-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: gio_pyio-0.0.3-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23f886050d40ca8a5ed4254627d7de11d2fc8fd4e7f675ffd7cd54466d2d4c9b |
|
MD5 | e6600355964169b1592f0726d2446f97 |
|
BLAKE2b-256 | 67f1cc1577225e839fe2aef55568f5682c49ff8b9ad6edab886d22c0bf3db843 |