You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
525 B
37 lines
525 B
3 years ago
|
"""Read resources contained within a package."""
|
||
|
|
||
|
from ._common import (
|
||
|
as_file,
|
||
|
files,
|
||
|
Package,
|
||
|
)
|
||
|
|
||
|
from ._legacy import (
|
||
|
contents,
|
||
|
open_binary,
|
||
|
read_binary,
|
||
|
open_text,
|
||
|
read_text,
|
||
|
is_resource,
|
||
|
path,
|
||
|
Resource,
|
||
|
)
|
||
|
|
||
|
from importlib_resources.abc import ResourceReader
|
||
|
|
||
|
|
||
|
__all__ = [
|
||
|
'Package',
|
||
|
'Resource',
|
||
|
'ResourceReader',
|
||
|
'as_file',
|
||
|
'contents',
|
||
|
'files',
|
||
|
'is_resource',
|
||
|
'open_binary',
|
||
|
'open_text',
|
||
|
'path',
|
||
|
'read_binary',
|
||
|
'read_text',
|
||
|
]
|