Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/importlib_resources/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

4 statements  

1""" 

2Read resources contained within a package. 

3 

4This codebase is shared between importlib.resources in the stdlib 

5and importlib_resources in PyPI. See 

6https://github.com/python/importlib_metadata/wiki/Development-Methodology 

7for more detail. 

8""" 

9 

10from ._common import ( 

11 as_file, 

12 files, 

13 Package, 

14 Anchor, 

15) 

16 

17from ._functional import ( 

18 contents, 

19 is_resource, 

20 open_binary, 

21 open_text, 

22 path, 

23 read_binary, 

24 read_text, 

25) 

26 

27from .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]