Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Barry Warsaw 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: References: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com comp.lang.python.announce:2710 --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--