__init__.py 506 B

123456789101112131415161718192021222324252627282930313233343536
  1. """Read resources contained within a package."""
  2. from ._common import (
  3. as_file,
  4. files,
  5. Package,
  6. )
  7. from ._legacy import (
  8. contents,
  9. open_binary,
  10. read_binary,
  11. open_text,
  12. read_text,
  13. is_resource,
  14. path,
  15. Resource,
  16. )
  17. from .abc import ResourceReader
  18. __all__ = [
  19. 'Package',
  20. 'Resource',
  21. 'ResourceReader',
  22. 'as_file',
  23. 'contents',
  24. 'files',
  25. 'is_resource',
  26. 'open_binary',
  27. 'open_text',
  28. 'path',
  29. 'read_binary',
  30. 'read_text',
  31. ]