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


Groups > comp.lang.python.announce > #2710

Announcing importlib_resources 0.1

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Barry Warsaw <barry@python.org>
Newsgroups comp.lang.python.announce
Subject Announcing importlib_resources 0.1
Date Thu, 7 Dec 2017 12:48:07 -0500
Lines 81
Approved python-announce-list@python.org
Message-ID <mailman.119.1512668916.28471.python-announce-list@python.org> (permalink)
References <B18F6662-50B9-49EA-B470-432B520A5472@python.org>
Mime-Version 1.0 (Mac OS X Mail 10.3 \(3273\))
Content-Type multipart/signed; boundary="Apple-Mail=_0B26B532-B293-4D6A-B887-30015D809C82"; protocol="application/pgp-signature"; micalg=pgp-sha256
X-Trace news.uni-berlin.de pslYKnp93+ZhcanrjdTmVAoeAosw1/ju6w9DQOsjyAzw==
Return-Path <barry@python.org>
X-Original-To python-announce-list@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=1512668895; bh=US3nVbY4hM4CrlMHgty0ixc7eifb7gvAfo3uQNxv4Bw=; h=From:Subject:Date:Cc:To:From; b=wyiaIhl4FZqnYPX+t/8yAPuW0b8SQZMJOqQOV1WDY15lJJr1nXbiqut3h4XW1e1Hj 5F4IGaarwcZbhLsGgvBTcMkBIGd2asiFClFdcZrep56PfCCF+7c1HjNw92a+pz1fCH nrg/yCCrKACS1WDFvwIXQa2yL0rgwfvJ0/o4Ndog=
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'used.': 0.05; '0.1': 0.09; 'apis': 0.09; 'brett': 0.09; 'defines': 0.09; 'experimental': 0.09; 'filename:fname piece:signature': 0.09; 'from:name:barry warsaw': 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; 'content-disposition:attachment;\r\n\tfilename=signature.asc': 0.16; 'content-type:application/pgp-signature': 0.16; 'content- type:multipart/signed': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'from:addr:barry': 0.16; 'gitlab,': 0.16; 'received:192.168.11': 0.16; 'received:216.15': 0.16; 'received:216.15.33': 0.16; 'received:216.15.33.194': 0.16; 'received:mail.wooz.org': 0.16; 'received:wooz.org': 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; 'x-mailer:apple mail (2.3273)': 0.16; 'folks': 0.18; 'fairly': 0.20; 'cc:2**0': 0.21; 'bugs': 0.21; 'sfxlen:2': 0.22; 'from:addr:python.org': 0.23; 'cc:addr:python.org': 0.23; 'install': 0.24; 'announce': 0.24; 'cases.': 0.26; 'it\xe2\x80\x99s': 0.26; 'i\xe2\x80\x99ve': 0.26; 'message- id:@python.org': 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; 'we\xe2\x80\x99re': 0.32; 'but': 0.33; 'migration': 0.34; 'subject:skip:i 10': 0.34; 'at:': 0.34; 'file': 0.34; 'efficient': 0.36; 'guess': 0.36; 'received:192': 0.38; 'explicitly': 0.39; 'mechanical': 0.39; 'received:192.168': 0.39; 'system': 0.60; 'more': 0.62; 'to:addr:python-announce-list': 0.62; 'url:latest': 0.62; 'header:Message-Id:1': 0.63; 'provide': 0.64; 'details:': 0.66; 'direct': 0.70; 'officially': 0.71; 'port': 0.72; '3.7': 0.84; 'abc': 0.84; 'points,': 0.84
X-Virus-Scanned Debian amavisd-new at mail.wooz.org
X-Spam-Flag NO
X-Spam-Score -2.9
X-Spam-Level
X-Spam-Status No, score=-2.9 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no
X-Mao-Original-Outgoing-Id 534361687.233465-fbd4b3c078547ac85b395bca871242f5
X-Mailer Apple Mail (2.3273)
X-Mailman-Approved-At Thu, 07 Dec 2017 12:48:35 -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 <B18F6662-50B9-49EA-B470-432B520A5472@python.org>
Xref csiph.com comp.lang.python.announce:2710

Show key headers only | View raw


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

Brett and I have been working on a little skunkworks project for a few weeks, and it’s now time to announce the first release.  We’re calling it importlib_resources and its intent is to replace the “Basic Resource Access” 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 “importlib_resources” 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’ve already done an experimental port of at least one big application (I’ll let you guess which one :) and it’s 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’re 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

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

Announcing importlib_resources 0.1 Barry Warsaw <barry@python.org> - 2017-12-07 12:48 -0500

csiph-web