Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Barry Warsaw Newsgroups: comp.lang.python.announce Subject: importlib_resources 0.2 Date: Thu, 14 Dec 2017 16:11:13 -0500 Lines: 62 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=_D4214ACE-76ED-41BF-9ECE-DB9E6A102529"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Trace: news.uni-berlin.de wa2v6EQEjjd6v7ANJG3JxwoPUNNpkdabzirzqHvO5IkA== 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=1513285876; bh=cfZi6voYbwPv9cdx0vd8k8Y7VeHl2DPN2Q4XKnaFxZM=; h=From:Subject:Date:To:From; b=hSCMWvfICk54Ru/mqrMPcnAP1wVgcTQr6/BeMPKdZurUbWzwBwwdeAFoiePgmTt/3 +RiXkMslWFJNlOsmkwTT+UPfhjTYBL4ZH4FBzCC5h6c6OM5cGUlrX9d3dOyGG3yjtA OjUviSbOyNnGiEvbXPnHem0ay5MZCisPiZciUl4Y= X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'binary': 0.07; 'incompatible': 0.07; 'filename:fname piece:signature': 0.09; 'fixes': 0.09; 'from:name:barry warsaw': 0.09; 'issue:': 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; 'python': 0.10; 'bug': 0.12; 'library': 0.12; 'api': 0.15; 'opened': 0.15; 'api,': 0.16; '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; 'mode.': 0.16; 'open()': 0.16; 'philosophy': 0.16; 'read()': 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; 'we\xe2\x80\x99ve': 0.16; 'x-mailer:apple mail (2.3273)': 0.16; 'package,': 0.18; 'fairly': 0.20; 'split': 0.21; 'import': 0.22; 'from:addr:python.org': 0.23; 'announce': 0.24; 'read,': 0.24; 'message-id:@python.org': 0.26; 'url-ip:46.4/16': 0.27; 'url:io': 0.28; 'system,': 0.32; 'url-ip:46.4.197.70/32': 0.32; 'url- ip:46.4.197/24': 0.32; 'url:bugs': 0.32; 'packages.': 0.32; 'we\xe2\x80\x99re': 0.32; 'subject:skip:i 10': 0.34; 'url- ip:46/8': 0.34; 'compatible': 0.35; 'efficient': 0.36; 'url:python': 0.36; 'text': 0.36; 'url:org': 0.38; 'instead': 0.38; 'received:192': 0.38; 'change.': 0.39; 'received:192.168': 0.39; 'system': 0.60; 'skip:o 10': 0.62; 'functions,': 0.62; 'to:addr:python-announce-list': 0.62; 'details': 0.63; 'functions.': 0.63; 'header:Message-Id:1': 0.63; 'provide': 0.64; 'our': 0.65; 'within': 0.66; 'easy': 0.66; 'use.': 0.66; 'here:': 0.67; 'attention': 0.78; 'enjoy!': 0.84; 'leverages': 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: 534978673.244967-61aa86033e1cf1af6dea99d3d6548fbc X-Mailer: Apple Mail (2.3273) X-Mailman-Approved-At: Fri, 15 Dec 2017 08:26:23 -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:2719 --Apple-Mail=_D4214ACE-76ED-41BF-9ECE-DB9E6A102529 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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=E2=80=99ve split = them into open_text(), open_binary(), read_text(), and read_binary() = functions. importlib_resources is a library that leverages Python=E2=80=99s 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=E2=80=99s 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=E2=80=99re 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 --Apple-Mail=_D4214ACE-76ED-41BF-9ECE-DB9E6A102529 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----- iQIzBAEBCAAdFiEEhBcVftvnPZ6sHlObEm61Y6dLBr8FAloy6PEACgkQEm61Y6dL Br+XKBAAmFhkQcpj/WkioLjrkTQsoc956bMplpy/Q2w0mkKZ+V9K7P8cfEPmv7p5 donM09W7C7HW25XJWacNQ3H0Z1JUyLurnSCaahg6QkeHwPlCCzCaAse65xLnAr9l LWU/SUMUiNtJM3bLslbwHl5PDYB7fwpZWozEm4BUXicFrVXz5HcfZVOUXWE1vple lu7CmIcUEg9/zyNpARXtMXQNzMqyF/623sisoMtd1JGRxM3quCW/u5Ygk7NbtJlb X9Vl2GfFcGtnI7JGtBpsTblGdMrU2uQgYOQKaruv0pDdoyXCcULIvsngn6CdyQ+7 0SO18IGUaNEREQapWCCcPy9WB3MmD4xzYsAre2O+ETaUN4OQLMdUh9VlhYg7CcwO 0aQlzuVPMj3S8u+pZaTPmUD4py1evFwVf5avS2fJSoK8TDy0rzeWNGLl4zmECtEL fKICd6kGnCDZ5ssZF2XfyaTP7pDBvvtNEcEVNKSFM/XcHu4Bmkugg8ebtTKGfoRy nH2y67gm6W/9iRT6/DIcXz6y906BCR+r3kmSwmvdYJsRlG0uJRiHC8+bEY1hZJVj s1KVAYEqXSdW+twwtwOuJ4gjE2KRdxnlfaEPbmmGczRj8j2gi1De2lBvXs4C86tI PH6GpF+iMnG3769lIi7l1flJj/8NoEWV8PNvINUxZ3iaVFdeZWM= =/hq0 -----END PGP SIGNATURE----- --Apple-Mail=_D4214ACE-76ED-41BF-9ECE-DB9E6A102529--