2021-07-29 22:05:05 -03:00
|
|
|
"""Read resources contained within a package."""
|
2017-12-30 16:18:06 -04:00
|
|
|
|
2021-07-29 22:05:05 -03:00
|
|
|
from ._common import (
|
|
|
|
as_file,
|
|
|
|
files,
|
|
|
|
Package,
|
|
|
|
Resource,
|
|
|
|
)
|
|
|
|
|
|
|
|
from ._legacy import (
|
|
|
|
contents,
|
|
|
|
open_binary,
|
|
|
|
read_binary,
|
|
|
|
open_text,
|
|
|
|
read_text,
|
|
|
|
is_resource,
|
|
|
|
path,
|
|
|
|
)
|
|
|
|
|
|
|
|
from importlib.abc import ResourceReader
|
2017-12-30 16:18:06 -04:00
|
|
|
|
|
|
|
|
2018-05-17 12:41:53 -03:00
|
|
|
__all__ = [
|
|
|
|
'Package',
|
|
|
|
'Resource',
|
2021-03-04 14:43:00 -04:00
|
|
|
'ResourceReader',
|
2020-05-08 20:20:26 -03:00
|
|
|
'as_file',
|
2018-05-17 12:41:53 -03:00
|
|
|
'contents',
|
2020-05-08 20:20:26 -03:00
|
|
|
'files',
|
2018-05-17 12:41:53 -03:00
|
|
|
'is_resource',
|
|
|
|
'open_binary',
|
|
|
|
'open_text',
|
|
|
|
'path',
|
|
|
|
'read_binary',
|
|
|
|
'read_text',
|
2021-03-04 14:43:00 -04:00
|
|
|
]
|