Debian Codegraph @

Lib/importlib/resources/__init__.py

raw
1 """
2 Read resources contained within a package.
3
4 This codebase is shared between importlib.resources in the stdlib
5 and importlib_resources in PyPI. See
6 https://github.com/python/importlib_metadata/wiki/Development-Methodology
7 for more detail.
8 """
9
10 from ._common import (
11 as_file,
12 files,
13 Package,
14 Anchor,
15 )
16
17 from ._functional import (
18 contents,
19 is_resource,
20 open_binary,
21 open_text,
22 path,
23 read_binary,
24 read_text,
25 )
26
27 from .abc import ResourceReader
28
29
30 __all__ = [
31 'Package',
32 'Anchor',
33 'ResourceReader',
34 'as_file',
35 'files',
36 'contents',
37 'is_resource',
38 'open_binary',
39 'open_text',
40 'path',
41 'read_binary',
42 'read_text',
43 ]