Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #2719 > unrolled thread

importlib_resources 0.2

Started byBarry Warsaw <barry@python.org>
First post2017-12-14 16:11 -0500
Last post2017-12-14 16:11 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python.announce

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  importlib_resources 0.2 Barry Warsaw <barry@python.org> - 2017-12-14 16:11 -0500

#2719 — importlib_resources 0.2

FromBarry Warsaw <barry@python.org>
Date2017-12-14 16:11 -0500
Subjectimportlib_resources 0.2
Message-ID<mailman.77.1513344385.14074.python-announce-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

I am happy to announce the release of importlib_resources 0.2.  This version has several bug fixes and a backward incompatible API change.  Instead of a single open() and read() functions, we’ve split them into open_text(), open_binary(), read_text(), and read_binary() functions.

importlib_resources is a library that leverages Python’s import system to provide access to resources within packages. Given that this library is built on top of the import system, it is highly efficient and easy to use. This library’s philosophy is that, if you can import a package, you can access resources within that package. Resources can be opened or read, in either binary or text mode.  This library is compatible with Python 2.7, and 3.4-3.7.

We’re fairly happy with this API, so our attention now turns to porting this into the standard library for Python 3.7.  You can follow along that effort via this issue:

https://bugs.python.org/issue32248

Documentation and other project details for importlib_resources is available here:

http://importlib-resources.readthedocs.io/

Enjoy!
-Barry


[toc] | [standalone]


Back to top | Article view | comp.lang.python.announce


csiph-web