Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-announce@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:ANN': 0.02; 'cache': 0.04; 'instance': 0.05; 'imports': 0.07; 'wrapper': 0.07; 'python': 0.08; 'url:pypi': 0.08; 'arguments.': 0.09; 'commonly': 0.09; 'constants.': 0.09; 'file-like': 0.09; 'handling.': 0.09; 'sets.': 0.09; 'truncate': 0.09; 'seconds': 0.10; '0);': 0.13; 'binary': 0.13; '"> Date: Tue, 1 Feb 2011 16:20:50 -0800 Subject: ANN: marrow.util 1.1 To: python-announce@python.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-Mailman-Approved-At: Wed, 02 Feb 2011 15:52:01 +0100 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.12 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: python-list@python.org List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Approved: python-announce-list@python.org Newsgroups: comp.lang.python.announce Message-ID: Lines: 111 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1296658322 news.xs4all.nl 41113 [::ffff:82.94.164.166]:33361 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python.announce:1080 Howdy! It is my pleasure to announce an updated release of marrow.util, a = package combining many commonly re-implemented utility functions, = classes, and compatibility code used extensively by the marrow package = suite and others. The updated package is available from PyPi: http://pypi.python.org/pypi/marrow.util Prepared eggs are available for Python 2.6, 2.7, and 3.1; a source = tarball has been included as well. The following is an overview of the many utilities provided. marrow.util.bunch: * Bunch - attribute access dictionary. * MultiBunch - as per Bunch + allowing multiple values per key. marrow.util.compat: * formatdate - consistent import for Py2K + 3K. * unquote - consistent unquote_plus import and 3K bytes conversion. * range / xrange - Py2K xrange / 3K range consistent imports. * execfile - Py3K implementation and consistent import. * exception - a version-agnostic method of exception handling. * binary / unicode - consistent imports for str/bytes and unicode/str. * bytestring - ensure a string is a bytestring. * native - ensure a string is native (bytes on 2K, unicode on 3K). * uvalues - decode each value of an iterable with advanced error = handling. * IO - StringIO/cStringIO/BytesIO consistent import. * parse_qsl - consistent import. marrow.util.convert: * boolean - convert common string representations into booleans. * array - powerful string to list conversions. * KeywordProcessor - powerful bidirectional string to rich datatype = conversion. * tags - a KeywordProcessor for processing space-separated tag sets. * terms - a KeywordProcessor for processing demarked search terms (+foo = -bar). marrow.util.escape: * unescape - ANSI color code, object property, and pronoun = substitution. marrow.util.events: * WaitableEvent - an asynchronous event trigger. marrow.util.insensitive: * CaseInsensitiveDict - the name is descriptive. marrow.util.object: * flatten - recursive iterable flattening. * yield_property - a generator which returns a named property from all = elements in a sequence. * yield_keyvalue - a generator which returns a named item from all = elements in a sequence. * NoDefault - a useful placeholder singleton for optional keyword = arguments. * merge - merge two dictionaries. * load_object - dot-colon notation string to object resolver. * Cache - a simple LRU cache implementation. * LoggingFile - a file-like object wrapper around Python logging. * CounterMeta - serialized instance creation metaclass. * getargspec - a comprehensive argspec inspector. marrow.util.path: * Path - an enhanced deque implementation for manipulating URL paths. marrow.util.patterns: * Borg - a very light-weight borg superclass or mix-in. marrow.util.pipe: * Pipe - a cross-platform TCP-based pipe implementation. * pipe - consistent import for platform-aware (Windows-compat) pipe = creation. marrow.util.text: * normalize - determine the best unique name for a new item in a = sequence. * ellipsis - truncate text and add an ellipsis. * wrap - wrapping of English text. * rewrap - combined unwrapping and wrapping of English text. marrow.util.time: * UTC - a simple concrete UTC implementation. * delta_to_seconds - timedelta to seconds conversion. * day, week, hour, minute, second, month, year - timedelta constants. * minute_range, hour_range, dom_range, month_range, dow_range - 2-tuple range constants. * map_month, map_dow - map strings to integers. =E2=80=94 Alice. =E2=80=94 Alice.