Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #2711
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Barry Warsaw <barry@python.org> (Barry Warsaw) |
| Newsgroups | comp.lang.python.announce |
| Subject | Announcing importlib_resources 0.1 |
| Date | Thu, 07 Dec 2017 12:48:06 +1200 |
| Organization | fsxNet Usenet Gateway | bbs.geek.nz/#fsxNet |
| Lines | 80 |
| Approved | python-announce-list@python.org |
| Message-ID | <mailman.14.1512999765.14074.python-announce-list@python.org> (permalink) |
| References | <3047250065@f38.n261.z1.binkp.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de Lixi3B5iYLxm112wOyXtDQpTp1JmPY84qd1rH94ADxbA== |
| Return-Path | <news@news.bbs.geek.nz> |
| X-Original-To | python-announce@python.org |
| Delivered-To | python-announce-list@mail.python.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1512786094; bh=qNQiKWt6QM+PUdizKi5Z6W5E13fBN3xVPNVgO9dMl9c=; h=To:From:Subject:Date:From; b=p+M5UVZ9NIeUjJTJ/khIfdroaXe+d5wSadrs+nNEW9Gq7cJetVsZuw6Jg23TGKsSt 7YSq9Ol1FgtEcwvMjuirNXAzyetN72iWqQak3JPgM7RPeZvjMwgSeY+W4RSDtgQ2WT UD+xM9sAGzNdN/hugZzv7NZs3/7d0K5qAPWPC0H8= |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'used.': 0.05; '0.1': 0.09; 'apis': 0.09; 'brett': 0.09; 'defines': 0.09; 'experimental': 0.09; 'from:name:barry warsaw': 0.09; 'message- id:@f38.n261.z1.binkp.net': 0.09; 'pgp': 0.09; 'url- ip:162.242.198.235/32': 0.09; 'url-ip:162.242.198/24': 0.09; 'url- ip:162.242/16': 0.09; 'url:issues': 0.09; 'weeks,': 0.09; 'python': 0.10; 'bug': 0.12; 'api': 0.15; '-----begin': 0.16; ' -----end': 0.16; 'from:addr:barry': 0.16; 'gitlab,': 0.16; 'skip:3 60': 0.16; 'skip:g 50': 0.16; 'skip:j 60': 0.16; 'skip:q 60': 0.16; 'still,': 0.16; 'subject:0.1': 0.16; 'url- ip:52.167.219.168/32': 0.16; 'url-ip:52.167.219/24': 0.16; 'url- ip:52.167/16': 0.16; 'url:gitlab': 0.16; 'folks': 0.18; 'fairly': 0.20; 'bugs': 0.21; 'from:addr:python.org': 0.23; 'install': 0.24; 'announce': 0.24; 'header:User-Agent:1': 0.25; 'cases.': 0.26; 'skip:i 60': 0.26; 'skip:m 60': 0.26; 'hosting': 0.27; 'url:io': 0.28; 'code': 0.31; 'least': 0.31; 'url:en': 0.31; 'enough': 0.31; 'entry': 0.32; 'packages.': 0.32; 'but': 0.33; 'migration': 0.34; 'skip:c 60': 0.34; 'skip:k 60': 0.34; 'subject:skip:i 10': 0.34; 'at:': 0.34; 'file': 0.34; 'signed': 0.35; 'efficient': 0.36; 'skip:= 10': 0.36; 'guess': 0.36; 'charset:us-ascii': 0.37; 'explicitly': 0.39; 'mechanical': 0.39; 'skip:b 60': 0.39; 'system': 0.60; 'received:edu': 0.62; 'more': 0.62; '7bit': 0.62; 'received:18': 0.62; 'received:18.181': 0.62; 'received:18.181.2': 0.62; 'received:18.181.2.90': 0.62; 'received:mit.edu': 0.62; 'received:mod-relay.xvm.mit.edu': 0.62; 'received:xvm.mit.edu': 0.62; 'url:latest': 0.62; 'received:nz': 0.63; 'provide': 0.64; 'details:': 0.66; 'skip:n 10': 0.67; 'skip:= 30': 0.68; 'direct': 0.70; 'to:addr:comp-lang-python-announce': 0.70; 'officially': 0.71; 'port': 0.72; 'to:addr:moderators.isc.org': 0.78; '3.7': 0.84; 'abc': 0.84; 'points,': 0.84; 'received:103': 0.84; 'received:xtra.co.nz': 0.84; 'received:219': 0.91; 'received:co.nz': 0.91 |
| Delivered-To | comp-lang-python-announce@moderators.isc.org |
| DKIM-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=news.bbs.geek.nz; s=default; h=Content-Transfer-Encoding:Content-Type: Mime-Version:Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=A3qn6wHiP8NYymFT3/SDi6a1ZlCXxEceri4vrmvHD5c=; b=WfXLRlGk3AZHCM4+HxgJjDqBZQ pS7XPIsft1VSfoBriGJrT1aw4T4J15u2dt7oN65L/y1H03C3USDcARuuzdE5yA6+eOUllWPZlV+hl TAjUHxgAjfZmEId5QAyAum7J7U3qC3JDHtTV9S34huFOziB5BwC3W+X5d8KiSk4BX0eq9mj2CmiqP qG1ZDCUelAgIklwclocyxhsfzcqQpB93v+elKcZ3KSQeGheXyFNVVJnMxB8NgPyGTvuHhpXZt8Jm6 xZy0zn+6rBZZJ6EtzEDx5DdL+Xhmqki9Q96sA22mm/1zWKcu7Nj2g7WvvrQgsRHKT3ijNlRfz6GAY OdT+tsGQ==; |
| User-Agent | VSoup v1.2.9.47Beta [95/NT] |
| X-MailConverter | SoupGate-Win32 v1.05 |
| X-Comment-To | All |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - aoraki.webslice.co.nz |
| X-AntiAbuse | Original Domain - moderators.isc.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - news.bbs.geek.nz |
| X-Get-Message-Sender-Via | aoraki.webslice.co.nz: authenticated_id: usenet@news.bbs.geek.nz |
| X-Authenticated-Sender | aoraki.webslice.co.nz: usenet@news.bbs.geek.nz |
| X-Source | |
| X-Source-Args | |
| X-Source-Dir | |
| X-Mailman-Approved-At | Mon, 11 Dec 2017 08:42:44 -0500 |
| X-BeenThere | python-announce-list@python.org |
| X-Mailman-Version | 2.1.25 |
| Precedence | list |
| List-Id | Announcement-only list for the Python programming language <python-announce-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-announce-list/> |
| List-Post | <mailto:python-announce-list@python.org> |
| List-Help | <mailto:python-announce-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <3047250065@f38.n261.z1.binkp.net> |
| Xref | csiph.com comp.lang.python.announce:2711 |
Show key headers only | View raw
--Apple-Mail=_0B26B532-B293-4D6A-B887-30015D809C82
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Brett and I have been working on a little skunkworks project for a few = weeks,
and it=E2=80=99s now time to announce the first release. We=E2=80=99= re
calling it importlib_resources and its intent is to replace the =
=E2=80=9CBasic Resource Access=E2=80=9D APIs of pkg_resources with more =
efficient implementations based directly on importlib.
importlib_resources 0.1 provides support for Python 2.7, and 3.4-3.7. = It
defines an ABC that loaders can implement to provide direct access to =
resources inside packages. importlib_resources has fallbacks for file = system
and zip file loaders, so it should work out of the box in most of = the places
that pkg_resources is currently used. We even have a = migration guide for
folks who want to drop pkg_resources altogether and = adopt
importlib_resources. importlib_resources explicitly does not = support
pkg_resources features like entry points, working sets, etc. = Still, we think
the APIs provided will be good enough for most current = use cases.
http://importlib-resources.readthedocs.io/
We are calling it =E2=80=9Cimportlib_resources=E2=80=9D because we = intend to
port this into Python 3.7 under a new importlib.resources = subpackage, so
starting with Python 3.7, you will get this for free. = The API is going to
officially be provisional, but I=E2=80=99ve already = done an experimental port
of at least one big application (I=E2=80=99ll = let you guess which one :) and
it=E2=80=99s fairly straightforward, if = not completely mechanical
unfortunately. Take a look at the migration = guide for details:
http://importlib-resources.readthedocs.io/en/latest/migration.html
We also intend to include the ABC in Python 3.7:
http://importlib-resources.readthedocs.io/en/latest/abc.html
You can of course `pip install importlib_resources`.
We=E2=80=99re hosting the project on GitLab, and welcome feedback, bug = fixes,
improvements, etc!
* Project home: https://gitlab.com/python-devs/importlib_resources
* Report bugs at: =
https://gitlab.com/python-devs/importlib_resources/issues
* Code hosting: https://gitlab.com/python-devs/importlib_resources.git
* Documentation: http://importlib_resources.readthedocs.io/
Cheers.
-Barry and Brett
--Apple-Mail=_0B26B532-B293-4D6A-B887-30015D809C82
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEhBcVftvnPZ6sHlObEm61Y6dLBr8FAlopftcACgkQEm61Y6dL
Br8PRw//YC5f2FPNftR/GPNgt/wMa63sSwRgdxORMoUi7iip9vja4+HagikzLD94
zcUSu7XmXdgMULqisZ8xE0vsSiBae79sOHidN142c9YZLuom6jqDX0RILYoxFw44
xdcy/CHQGV4pNG81s1G9g3iNTaiYh15zJg8fh59R5daxZIBopNTAm3Kugeq9K2Xf
qferhW5eQ0SgmyqLlDOcF8YgkH8F45b7CIa8p23amy4kVP1u305/Im/sVYTa5Bnn
mb9VqDb/s1Ii0OghWoTEeVD070Fx4b503rr8AjpqUzixwgLssJDn3rcLrGE3sBki
32EbeZ8gM+NZQAmzKCV9cfPbDPWxLMn0TTdobRWxg1QarU0qzZsw8F5m20t9SE0L
jBR2J1MdHdesuFEC4aNu3OoeTHH8whmVE/jcUYujdZa3RGX4/L6AmyNzYnwL9Qic
kylLgDAnR5wNSoXFarTkgnt9/n7nQer8cK34c3duKnw+85INyWVPKicKf4qp8Oc9
K3K3DzWFnhrE0OTiZrO/UWwEL/GGRkVI1mSFx04i4i90hMuZXbHBGa2S63TZD6Xt
Cxw0DdU5eT5sA+UoenJ0/a4S5jNvak858vX7NkAlXVr5npiha7teFiv4XWTNQHs5
Gt3BgQjQ1+v0ldF1Ujg/T+o3Z6eQFd3YdSku9Tgv7glcvf0UbNg=
=YMqE
-----END PGP SIGNATURE-----
--Apple-Mail=_0B26B532-B293-4D6A-B887-30015D809C82--
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
Announcing importlib_resources 0.1 Barry Warsaw <barry@python.org> (Barry Warsaw) - 2017-12-07 12:48 +1200
csiph-web