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)
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.1.tar.gz
(22.1 kB
view details)
Built Distribution
gio_pyio-0.0.1-py3-none-any.whl
(19.3 kB
view details)
File details
Details for the file gio_pyio-0.0.1.tar.gz
.
File metadata
- Download URL: gio_pyio-0.0.1.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a21ce79827abf8d034cb7b236254f8a71419751e63a345f4b43ad81952641618 |
|
MD5 | 9309111a8571213cb62322610ccdf33a |
|
BLAKE2b-256 | 0ad85be6e118345eb03d4c444045d5ff705e504e7e361fc474ab2699183b89ac |
File details
Details for the file gio_pyio-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: gio_pyio-0.0.1-py3-none-any.whl
- Upload date:
- Size: 19.3 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 | 0c3a0f22324e55fb41d29def6d6d3a65bb27324853f664958eae1fa6293fa646 |
|
MD5 | 2f7418e0314659482af0307e042fa1f0 |
|
BLAKE2b-256 | 1bb4d534d5f7f6b9447d75623da003b0c4c6241c412321607fc92449ef35a94e |