qrc-pathlib 1.0.2

Creator: bradpython12

Last updated:

Add to Cart

Description:

qrcpathlib 1.0.2

qrc_pathlib
Qt Resource System allows to store files
inside binaries and read them by using Qt’s file system abstraction (QFile, QDir etc).
This package extends pathlib introduced in Python 3.4
by implementing Path and PurePath for QRS:
from qrc_pathlib import QrcPath

QrcPath(':my_resource.svg').read_bytes()

with QrcPath(':hello.txt').open() as f:
print(f.read())
Since QRS is read-only all methods that are supposed to modify files raise PermissionError. Other inapplicable methods
such as stat will raise NotImplementedError.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.