importlib_resources 6.5.3.dev15+gd85f32b documentation (original) (raw)
Toggle table of contents sidebar
importlib_resources
is a library which provides for access to _resources_in Python packages. It provides functionality similar to pkg_resources
Basic Resource Access API, but without all of the overhead and performance problems of pkg_resources
.
In our terminology, a resource is a file tree that is located alongside an importable Python module. Resources can live on the file system or in a zip file, with support for other loader classes that implement the appropriate API for reading resources.
importlib_resources
supplies a backport of importlib.resources, enabling early access to features of future Python versions and making functionality available for older Python versions. Users are encouraged to use the Python standard library where suitable and fall back to this library for future compatibility. Developers looking for detailed API descriptions should refer to the standard library documentation.
The documentation here includes a general usage guide and amigration guide for projects that want to adoptimportlib_resources
instead of pkg_resources
.
Contents:
- Using importlib_resources
- API Reference
- Migration guide
- History
- v6.5.2
- v6.5.1
- v6.5.0
- v6.4.5
- v6.4.4
- v6.4.3
- v6.4.2
- v6.4.1
- v6.4.0
- v6.3.2
- v6.3.1
- v6.3.0
- v6.2.0
- v6.1.3
- v6.1.2
- v6.1.1
- v6.1.0
- v6.0.1
- v6.0.0
- v5.13.0
- v5.12.0
- v5.11.1
- v5.10.4
- v5.11.0
- v5.10.3
- v5.10.2
- v5.10.1
- v5.10.0
- v5.9.0
- v5.8.1
- v5.8.0
- v5.7.1
- v5.7.0
- v5.6.0
- v5.5.0
- v5.4.0
- v5.3.0
- v5.2.3
- v5.0.7
- v5.2.2
- v5.2.1
- v5.2.0
- v5.0.6
- v5.1.4
- v5.0.5
- v5.1.3
- v5.1.2
- v5.0.4
- v5.1.1
- v5.0.3
- v5.0.2
- v5.1.0
- v5.0.1
- v5.0.0
- v4.1.1
- v4.1.0
- v4.0.0
- v3.3.1
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.1
- v3.1.0
- v3.0.0
- v2.0.1
- v2.0.0
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- 1.0.2
- 1.0.1
- 1.0
- 0.8
- 0.7
- 0.6
- 0.5
- 0.4
- 0.3
- 0.2
- 0.1
For Enterprise
Professional support for importlib_resources is available as part of theTidelift Subscription. Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools.