55 KiB
boltons Changelog
Since February 20, 2013 there have been 42 releases and 1433 commits for an average of one 34-commit release about every 8 weeks.
20.1.0
March 29, 2020
- Add funcutils.update_wrapper, used to make a wrapper function reflect various aspects of the wrapped function's API.
- Fix [FunctionBuilder][FunctionBuilder] handling of functions without
__module__
- Add
partial
support to [FunctionBuilder][FunctionBuilder] - Fix NetstringSocket's handling of arguments in
read_ns
- Fix IndexedSet's
index()
method to account for removals - Add
seekable
,readable
, andwritable
to SpooledIOBase - Add a special case to
singularize
- Fix various warnings for Py3.9
20.0.0
January 8, 2020
- New module pathutils:
- pathutils.augpath augments a path by modifying its components
- pathutils.shrinkuser inverts :func:
os.path.expanduser
. - pathutils.expandpath shell-like environ and tilde expansion
- add
include_dirs
param to fileutils.iter_find_files - Make funcutils.format_invocation more deterministic
- add strutils.unwrap_text which does what you think to wrapped text
- Py3 fixes
- iterutils.chunked to work with the
bytes
type (#231) - cacheutils.ThresholdCounter's
get_common_count()
- iterutils.chunked to work with the
19.3.0
(October 28, 2019)
Three funcutils:
- funcutils.format_invocation for formatting simple function calls
func(pos1, pos2, kw_k=kw_v)
- funcutils.format_exp_repr for formatting a repr like
Type(pos, kw_k=kw_v)
- funcutils.format_nonexp_repr for formatting a repr like
<Type k=v>
19.2.0
(October 19, 2019)
A bunch of small fixes and enhancements.
- tbutils.TracebackInfo's from_frame now respects
level
arg - OrderedMultiDict.sorted() now maintains all items, not just the most recent
- setutils.complement() now supports
__rsub__
for better interop with the builtinset
- [FunctionBuilder][FunctionBuilder] fixed a few py3 warnings related to inspect module usage (
formatargspec
) - iterutils.bucketize now takes a string key which works like an attribute getter, similar to other iterutils functions
- Docstring fixes across the board
- CI fixes for Travis default dist change
19.1.0
(February 28, 2019)
Couple of enhancements, couple of cleanups.
- queueutils now supports float-based priorities (#204)
- FunctionBuilder has a new
get_arg_names()
method, and itsget_defaults_dict()
method finally includes kwonly argument defaults. - strutils.gzip_bytes arrives to match strutils.gunzip_bytes
19.0.1
(February 12, 2019)
Quick release to enhance FunctionBuilder and funcutils.wraps to maintain function annotations on Python 3+. (#133, #134, #203)
19.0.0
(February 10, 2019)
A very big release indeed, perhaps the biggest yet. A big, big thank you to all the contributors!
- New types and utilities
- dictutils.ManyToMany arrives, to complement dictutils.OneToOne
- dictutils.FrozenDict brings immutable mapping to a module near you (#105)
- setutils.complement() introduces "negative" sets, useful for exclusion and many other set operations
- iterutils.soft_sorted() allows for looser, more flexible sorting of sequences
- iterutils.flatten_iter() and iterutils.flatten(), to collapse nested iterables. (#118)
- mathutils.Bits type for representing a bitstring and translating between integer, bytestring, hex, and boolean sequence representations.
- funcutils improvements
- FunctionBuilder and funcutils.wraps now support coroutines/async (#194)
- FunctionBuilder.add_arg() allows the addition of arguments to the signature, to match FunctionBuilder.remove_arg() (#201)
- Similarly funcutils.wraps() now takes an "expected" argument, to complement "injected" (#161)
- Other bugfixes and improvements
- cacheutils.LRI is now threadsafe and correctly evicts when duplicate keys are added (#155, #157)
- dictutils.subdict() now does its best to return the same type of dictionary it was passed.
- urlutils now has better IPv6 support and URL can be used more natively like a string
- Improve singularization in strutils
- Fix some deprecation warnings in Python 3.7 (#165, #196)
- Document the change in dict constructor behavior affecting dictutils.OMD under Python 3.7+ (#179)
18.0.1
(August 29, 2018)
A few bugfixes and a handy text utility.
- Add MultiSub for multiple string substitutions in a single call (#162)
tableutils.Table.to_text()
is more Markdown compatible- Add LICENSE to package (#164)
atomic_save
works better withoverwrite=True
(#161)- Reduced memory footprint on
tbutils._DeferredLine
with__slots__
18.0.0
(March 2, 2018)
- Add
<thead>
and<tbody>
structure to tableutils.Table HTML output, which helps with styling and other functionality (e.g., jQuery datatables). - Add dictutils.subdict() to get a filtered version of a dictionary based on a subset of keys. (#150)
- Add beta version of cacheutils.MinIDMap.
17.2.0
(December 16, 2017)
A big release with a lot of features and bugfixes, big and small. Just in time for the holidays!
- Better handling of
file
andfile
-like objects in remap'sdefault_enter
- Fix line-by-line iteration in ioutils types
- Change strutils.slugify to always output at least a single-character slug (in cases of all-punctuation/whitespace inputs).
- Fix DeferredValue caching in formatutils
- Add OneToOne to dictutils
- Add MultiFileReader to ioutils (see #135)
- Support passing
dir
argument to ioutils SpooledIO types - fix default arguments for mathutils.clamp (see #128)
- Add iterutils.research, a remap-based recursive search function for nested data
- Improved and expanded urlutils.SCHEME_PORT_MAP
- Simplify urlutils.find_all_links signature
17.1.0
(February 27, 2017)
Add urlutils module, with URL type and find_all_links function. also update Sentinel for Python 3 falsiness
- Add urlutils module, complete with RFC3986-compliant
URL
type - Also add
urlutils.find_all_links
function, which heuristically finds all links in plaintext, and creates URLs out of them. - Update typeutils.Sentinel to be appropriately falsy on Python 3
17.0.0
(January 24, 2017)
Several tweaks and enhancements to ring in the new year.
- tbutils objects like the ExceptionInfo are now more easily JSON-serializable thanks to a tweak to Callpoint.
- SpooledIO objects like
ioutils.SpooledBytesIO are now
bool
-able. - iterutils.bucketize gains the
value_transform
andkey_filter
arguments. - cachedproperty properly maintains docstring
- funcutils.wraps maintains a reference to the
wrapped function with
__wrapped__
attribute. - A bit of cleanup to be backwards compatible to Python 3.3
16.5.1
(November 6, 2016)
Mostly bug fixes and various tweaks, optimizations, and documentation. Also added a bit of functionality in the form of ioutils and some GUID stuff.
- Add ioutils with SpooledStringIO and SpooledBytesIO, two in-memory file-like objects, like the stdlib StringIO, except that they automatically spill over to disk when they reach a configurable size.
- Add iterutils.GUIDerator and iterutils.SequentialGUIDerator, two methods of getting random iterables.
- Add mathutils.clamp, a combined min-max function, like numpy's clip.
- Optimized iterutils.first.
- Enabled spillover kwargs in funcutils.wraps
- fix for default remap set support, fixes #84
- improving and testing exceptions around classmethod and staticmethod for funcutils.wraps and FunctionBuilder, fixes #86 to the degree possible.
16.5.0
(July 16, 2016)
A few minor changes, and medium-sized breaking change to cacheutils.
- cacheutils caching decorators now take the function/method into account by default. This was done by adding the scoped argument to @cached and @cachedmethod (and removing selfish from cachedmethod). also fixed a bug in a cachedmethod test, as well as added docs for scoped and key arguments. all of this to fix #83.
- tableutils.Table cell html can be customized by
overriding
get_cell_html
method. - funcutils.total_ordering, a functools.total_ordering backport for python 2.6.
- funcutils.FunctionBuilder function names are now configurable.
16.4.1
(June 14, 2016)
This release primarily contains several statsutils updates.
- The biggest change was the addition of Stats.format_histogram complete with Freedman bin selection and other useful options.
- Added inter-quartile range (iqr) to statsutils.Stats
- Adding mad (median absolute deviation) to Stats.describe, since median and std_dev were already there.
16.4.0
(June 8, 2016)
another significant release, thanks to the addition of funcutils.wraps and funcutils.FunctionBuilder. also iterutils.chunked speedup, and tbutils.ParsedException.to_string.
- funcutils.wraps: Just like functools.wraps, but can preserve the function signature as well.
- funcutils.FunctionBuilder: The basis for funcutils.wraps, this full-featured type enables programmatically creating functions, from scratch or from existing functions. Supports all Python 2 and 3 function features.
- ecoutils: Python 2.4 and 2.5 support.
- iterutils: optimize iterutils.chunked_iter (2-5x faster depending on runtime). See #79.
- tbutils: add the ParsedException.to_string method, to convert parsed exceptions back into strings, possibly after manipulation
- switch FunctionBuilder on Python 2 to be congruent with Python 3 (keywords attribute renamed to varkw, preview users might have to adjust)
16.3.1
(May 24, 2016)
Just a couple of ecoutils follow-ons, removing uuid dependency and adding the ability to scrub identifiable data.
16.3.0
(May 23, 2016)
Big, big update. Lots of additions, a few bugfixes.
- ecoutils - Python runtime/environment profile generator
- timeutils.strpdate - like datetime.datetime.strpdate but for date
- timeutils.daterange - like range() but for datetime.date objects
- strutils.parse_int_list and strutils.format_int_list
- cacheutils
- cachedproperty
- cacheutils.cachedmethod
- cacheutils.cached now accepts a callable, as well.
cacheutils.make_cache_key
is now public, should others need it
- statsutils.Stats update, several new methods, including Stats.describe
- A few socketutils platform tweaks
debugutils.wrap_trace
preview
16.2.2
(May 3, 2016)
many small tweaks to socketutils.BufferedSocket, including optional inclusion of the delimiter in recv_until. also undid the enabling of bak files with AtomicSaver on windows
- Small socketutils.BufferedSocket tweaks
- make recv_until conditionally return the delimiter (by default it does not). also fix a NetstringException inheritance typo
- socketutils: rename BufferedSocket.recv_lock to _recv_lock, and same for send_lock.
- add a bunch of simple passthrough methods to better fill out socket's API
- add .fileno/.close/.shutdown to socketutils.BufferedSocket
- added type/family/proto socketutils.BufferedSocket passthrough properties
- BufferedSocket: also lock on .shutdown()
- adding an rbuf_unconsumed attribute for post-close debugging, per @doublereedkurt's request
getsendbuffer()
returns a bytestring andrecv_size()
uses the proper._recvsize
on the first socket fetch
- fileutils.AtomicSaver: revert bak file as it was causing confusion, per nvie/pip-tools#351
16.2.1
(April 29, 2016)
This version sees the soft debut of socketutils, which includes wrappers and tools for working with the built-in socket. A lot of socketutils.BufferedSocket changes.
- BufferedSocket.recv_until now supports multibyte delimiters and also includes the delimiter in its returns.
- Better BufferedSocket timeout discipline throughout.
- Various BufferedSocket argument name changes, maxbytes became maxsize, n became size, marker became delimiter, etc.
- BufferedSocket BufferedSocket became threadsafe
- BufferedSocket.recv now always returns the contents of the internal buffer before doing a socket call.
- BufferedSocket.recv_close now exists to receive until the sending end closes the connection.
- Can now pass recvsize to BufferedSocket constructor to tune the size passed to the lower-level recv call.
- socketutils got documented and tested.
16.2.0
(April 18, 2016)
adding shell args escaper-joiners to strutils (escape_shell_args, args2cmd, args2sh) as well as a rare breaking fix to iterutils.pairwise.
- Argument joiners, functions to join command line arguments in context-appropriate ways:
- BREAKING: finally fixing
iterutils.pairwise. pairwise used to call to
chunked
, now it calls towindowed
.pairwise([1, 2, 3, 4])
no longer returns[(1, 2), (3, 4)]
. Instead, it returns[(1, 2), (2, 3), (3, 4)]
, which is what I always mean when I say pairwise, but not what the original contributor implemented. - Adding a universal wheel distribution option!
16.1.1
(March 6, 2016)
Added iterutils.same, improvement of Windows fileutils.AtomicSaver behavior for old filesystems, bugfix on strutils.is_uuid, expansion of strutils.pluralize, new trove classifiers and docs improvements!
- fileutils.replace: use bak file option for win32 ReplaceFile for slightly better corner case coverage on less featureful filesystems
- strutils.pluralize: Add more irregular plurals
- strutils.is_uuid: Catch un-parsable UUIDs.
- iterutils.same: Return
True
when all values in iterable are the same.
16.1.0
(February 24, 2016)
The centerpiece of this release is highly improved Windows support for
fileutils.atomic_save via
ReplaceFile
system call. This functionality is also made available directly via
fileutils.replace, which is akin to Python 3.3+'s
os.replace, except that os.replace
's approach has
arguably poorer behavior and atomicity
compared to fileutils.replace
.
Also, a couple new strutils, and iterutils.backoff grew a jitter argument.
- iterutils.backoff now supports start=0
- More comprehensive iterutils.backoff argument checking/validation
- fileutils.replace and fileutils.atomic_rename are now public functions in fileutils with cross-platform implementations (discussion here)
- tableutils.Tables have a metadata argument and attribute for miscellaneous metadata.
- strutils.is_ascii and strutils.is_uuid: About as straightforward as they are handy.
- Tox testing improvements
16.0.1
(January 24, 2016)
DummyFile, Table.metadata, better exception handling, and in-progress iterutils.get_path
- Small format fix in iterutils.one for None
- Initial implementation of fileutils.DummyFile, which allows for easy no-op file handling without restructuring code. Sort of like a dummy RLock for systems without threading, if you've seen those.
- avoid catching BaseException in all boltons
- better error handling in iterutils.get_path
16.0.0
One important fix and one small but handy string function.
- Fixed an LRU bug related to the 15.1.1 refactor. Also enhanced LRU testing with doubly-linked list invariant enforcement.
- Added strutils.indent, the counterpart to textwrap.dedent.
15.1.1
(November 18, 2015)
A lot of bugfixes and docfixes in 15.1.1.
updated AtomicSaver for better permissions handling, update BufferedSocket message sending, beta version of iterutils.get_path, several docs fixes, Stats zscore and cache bugfix, and an LRU refactor with significantly improved behavior and code factoring.
- Updated fileutils.AtomicSaver handling of
filesystem permissions to be simpler and more secure. This also
merges
dest_perms
andpart_perms
arguments to AtomicSaver and atomic_save. - Fix large message sending with socketutils.BufferedSocket
- strutils.iter_splitlines is now in the docs.
- cacheutils: now imports RLock from the right place for python 2
- statsutils: Only
delattr
whenhasattr
in Stats.clear_cache - statsutils.Stats: Add Stats.get_zscore to support calculating the z-score (see also: t-statistic)
- cacheutils.LRU: Massive refactor of the backing
linked list for better handling of duplicate data in the
cache. More aggressive locking and better
__eq__
15.1.0
(September 23, 2015)
Reached the first release version of iterutils.remap(), fully tested and documented. Also a couple of tweaks to expose the iterutils.unique docs.
15.0.2
(September 9, 2015)
a couple dictutils.OMD fixes to dictutils.OMD.pop and dictutils.OMD.popall to make them consistent with the docstrings. and the accompanying tests of course.
- fix dictutils.OMD.setdefault to default to None and not empty list, per documentation (and add a test to the same effect)
15.0.1
(August 27, 2015)
- Added OrderedMultiDict.sortedvalues(), which returns a copy of the OMD with sublists within a keyspace sorted.
- Fixing a bug in dictutils.OrderedMultiDict's addlist method that caused values to be added multiple times.
- Fixing a iterutils.backoff string identity check
15.0.0
(August 19, 2015)
Finally the 15.0 major release. All passing PRs and feature requests from the first wave addressed and closed. tzutils merged into timeutils. AtomicSaver approach and API much improved. Several other features added:
- iterutils.backoff and iterutils.backoff_iter for exponential backoff
- iterutils.frange and iterutils.xfrange for floating point range generation
- Slightly more permissive jsonutils.JSONLIterator blank line ignoring
- strutils.iter_splitlines for lazily getting lines from a larger string
- timeutils.dt_to_timestamp, per the long-lived PR #13.
- Merged tzutils into timeutils
- fileutils.AtomicSaver rewrite and redoc
- -teens support for strutils.ordinalize
- made iterutils.one consistent with iterutils.first
0.6.6
(July 31, 2015)
Fix atomic saving open-file issue for Windows.
- Patch for AtomicSaver on Windows. Full rewrite comes in 15.0.0.
- strutils.gunzip_bytes for decompressing a gzip bytestring
0.6.5
(July 30, 2015)
BufferedSocket work, html2text, pairwise shortcut, is_container, plural typo fix, timeutils.isoparse, cacheutils.ThresholdCounter, and lots of testing
- Add iterutils.first function
- Add cacheutils.ThresholdCounter
- Add JSONL verification to jsonutils
- Add timeutils.isoparse
- Add strutils.html2text and strutils.HTMLTextExtractor
- Fix strutils.pluralize (indeces -> indices, per #41)
- Add iterutils.is_container function
- Fixed a small formatting bug in tbutils.ExceptionInfo that added an extra 'builtins.' for builtin exceptions under python 3
- Added tests for many modules
- Create iterutils.pairwise shortcuts for pairwise chunks since pairs (key/val) are common
- Additional 2.6 compatibility and tests
- Fixed CachedInstancePartial to be Python 3 friendly without breaking PyPy.
- Made formatutils Python 3 compatible
- Rename sockutils to socketutils and other changes
0.6.4
(May 10, 2015)
Fixed multiline exception message handling in ParsedException. added mathutils. adding a tentative version of socketutils. fix LRU.popitem. fix OMD.eq.
- Fix a bug where dictutils.OrderedMultiDict's eq would fail with non-iterable objects of comparison
- Fixed
LRU.popitem
to return a key value pair - Added mathutils with mathutils.ceil and mathutils.floor implementations that can search a fixed set of choices using the bisect module.
- Fix excutils.ParsedException so exception message would not start with whitespace
- Fix multiline exception messages
- Adding socketutils.BufferedSocket and socketutils.NetstringSocket
0.6.3
(April 20, 2015)
Add typeutils, remove compat.py, make ParsedException work with eval()ed code
- Properly parse tracebacks with missing source. Resolves #30
- Tweak the docs for typeutils.get_all_subclasses
- Moved typeutils.make_sentinel into typeutils and removed the confusing compat module
- Add in typeutils with modifications per the caveats of #15
- Added function iterutils.one
0.6.2
(April 11, 2015)
Add partial_ordering, fix LRU repr and addition behavior
- Add funcutils.partial_ordering(), decorator similar to functools.total_ordering()
- Fixed cacheutils.LRU's behavior per #21
- Fix cacheutils.LRU repr reversal, fixes #20
0.6.0
(April 10, 2015)
Python 3 support and several community bugfixes. Docs clarifications, too.
- Make boltons Python 3 compatible without any external dependencies. All modules are independent and work in Python 2.6, 2.7, 3.4, and PyPy.
- clarify TracebackInfo.from_current() method gap, per user 'dl__' here: http://www.reddit.com/r/Python/comments/321d3o/boltons_over_100_python_utilities/
- Fix the cacheutils.cached decorator, adding a sanity test, fixes #12
- Fix bytes2human when builtin zip returns iterators
- Simplified logic of iterutils.chunked
0.5.1
(April 10, 2015)
A lot of bugfixes and Python 2.6 and PyPy compatibility changes thanks to community contributions and encouragement.
- Corrected cases where OMD was not exactly a dropin for OrderedDict
- conditional availability of gcutils.get_all based on pypy or cpython, also gcutils.is_tracked was added in 2.7, so making gcutils.get_all work with 2.6
- Made namedutils backwards compatibility for python 2.6 best effort
- Fix invalid part_path usage in fileutils.AtomicSaver
0.5.0
(April 9, 2015)
First publicly released version. The major focus of this release was docs, docstrings, and Read The Docs.
- Cleared out init module for maximum independence
- making statsutils.median use _get_quantile and add statsutils.trimean
- Switching the statsutils.Stats type to be more sorted-data oriented, since it's only for offline analysis of unordered data
- Made consistent multi-line string formats, as well as usage of the term 'builtin' vs 'built-in' (noun vs adjective)
- Instrumented LRI with stats tracking
- Made timeutils.decimal_relative_time cardinalization optional
- Removed timeutils dependency on strutils
- Made tbutils.TracebackInfo classmethods work with no arguments.
- Renamed ParsedTB to tbutils.ParsedException
- Made dictutils.OMD .get()/.getlist() semantics more consistent.
- finalizing .todict() and adding .sorted() to the dictutils.OMD
- Removed osutils and adding a note about utils in general
- Made cacheutils more consistent between LRU and LRI, adding some cacheutils docs
- Deprecate osutils, moving its contents into fileutils
- Adding in-process statsutils2, with new DataAnalyzer and get_pearson_type (not merged yet)
0.4.2
(March 8, 2015)
Mostly a dictutils API update (addlist), but also gcutils.
- dictutils.OMD: split out addlist() from add(), removing the multi kwarg
- adding gcutils with gcutils.GCToggler and gc.get_all
0.4.1
(February 26, 2015)
adding mboxutils
- adding mboxutils for handy dandy /var/mail integrations like cronfed
0.4.0
(February 23, 2015)
updated tbutils, JSONL support, initial cacheutils, atomic writer, hashtags
- tbutils: Changed the way exceptions are parsed out of tracebacks
- tbutils: Guard against potential linecache issues
- Defined/implemented iterutils.windowed_iter corner case behavior
- Added from_path to fileutils.FilePerms
- Adding strutils.find_hashtags
- Add ignore patterns to fileutils.iter_find_files
0.3.0
(October 19, 2014)
First alpha release. Practically, everything not mentioned above was added in this release.
- tbutils: add ContextualTracebackInfo and ContextualExceptionInfo
- cacheutils: a few minor changes to the BasicCache
- update tbutils with some critical bits. still need to add convenience method for ExceptionInfo -> default exception print, also need to add more docstrings.
- adding initial jsonutils with JSONL support
- added cacheutils.LRU
- added timeutils.parse_timedelta
- fixing iteritems with multi=False in the dictutils.OrderedMultiDict (should return first key, but last value not first)
- debugutils: add pdb excepthook and debugutils.pdb_on_signal
- add fileutils.mkdir_p
- tableutils: add maxlen to table text stuff
- fix date citation for gob's
- adding pure-Python implementation of Gob's algorithm
- fix object header guessing
- namedutils: add namedtuple support
- fix a headers bug in tableutils
- tableutils: add a couple more do-not-recurse types, add UnsupportedData exception for better recursion, insert recursive entries in-line, improve 'Object' strategy heuristic
- wrap up html tag customization and fix a related bug
- make html configurable via class attributes
- strengthen the max_depth check
- InputType classes are just shorter and clearer, imo
- new from_dict, from_list, from_object, removing old ones. almost used a MetaClass for this
- starting new table
- only update the integer for the field being updated
- fixing a verbalization/pronunciation issue
- no regex for better error messages
- being opinionated about some FilePerms things
- adding initial version of fileutils/FilePerms
- update formatutils
- fix a slightly nasty namedlist bug
- make OrderedMultiDict.get()'s default allow singulars
- sync over ExceptionInfo
- add from_current() classmethod with depth option to Callpoint class for easier instantiation
- it's called a numeronym
- add a repr to ParsedTB. A bit verbose, but better than nothing.
- add ParsedTB, which provides the ability to parse tracebacks dumped out to logs, the command line, etc.
- improve test output and make assertion that new except hook is the same as the builtin.
- update tbutils to use the more-powerful Callpoint type.
- copy_function
- partially clean up partial stuff
- first version of the namedlist
- fixing up namedtuple, groundwork for namedlist. humorously named module.
- embed value in cell for incremental iteration boost on OMD
- reorganize code, add 'default' argument to poplast()
- make key argument optional to OMD.poplast
- rectifying inconsistent names and adjusting respective tests accordingly. using smashcase because that's what builtin dict() uses.
- fix reverse; missing yield from!
- add initial table biz
- add get_counts
- add dictutils.OrderedMultiDict.get_inverted() for those handy reverse lookups
- break out skip list to FastIter OMD + bench
- add strutils.a10n()
- fix a bug in dictutils.OrderedMultiDict's .add()
- adding initial reimplementation of OMD
- adding some tests to dictutils
- update boltons formatutils to match what's going on in lithoxyl
- remove infer_pos_args() from strutils (already in formatutils)
- add formatutils to boltons
- fix a potential infinite recursion in LocalTZ
- use more explicit names for Local/Constant tzinfo types
- add a basic but handy file finder
- add infer_positional_args() to strutils (from lithoxyl)
- split BasicCache out of dictutils into cacheutils
- update median calculation slightly
- add appropriate stacklevel to deprutils warning
- add an initial version of deprutils (basic utils for facilitating deprecation)
- add bytes2human
- first version of some basic timezone utils which came in handy for a train scheduling application I wrote (etavta)
- reorder imports for pep8
- redo plain-english relative_time() to have a decimal rounding factor and handle future dates
- swap the order of cardinalize()'s arguments after intuiting the wrong order a couple times. gotta be consistent, this isn't PHP.
- a weird little relative time approach
- add total_seconds() implementation for Python <2.7, rename relative_datetime to relative_time
- add a relative datetime function in a new module: timeutils
- a little more transparency with orderedmultidict's maphistory
- add a test for BasicCache
- add the super simple BasicCache, a size-limited defaultdict-like thing
- add a cheesy little splay list construct that can be used for splay- like manual reordering for eventual optimization
- traceback utils, first draft
- add strip_ansi() (need to make a cliutils or something)
- add ansi strip task
- mess with list tuning
- add ordinalize()
- add all to statsutils
- add more stats docs and doctests
- add some stats functions
- add unit_len()
- add pluralize/singularize/cardinalize to strutils
- add __all__s all around, clean up imports a bit
- adding license
- add sorted queue type, make it the default
- fix little bug in insert
- inheriting from list necessitates overriding the deprecated __get-, __set-, and __del- slice methods
- hacky refactor to have a BasePriorityQueue to make room for SortedPriorityQueue with peek_n, etc.
- add a little docstring and update sort method in BarrelList
- add HeapPriorityQueue
- tidy up listutils comments and imports
- move treeutils out of boltons since I don't really think a pure python version actually adds much. i'll make an academic one-off repo for less practical data structure experiments like that.
- inherit from list
- add reverse() to blist
- add index() to blist
- cheesy setitem() for blist
- add delitem() to BarrelList
- change the way the in-place sort works with just one list
- tune the list size a bit
- add slicing to BarrelList
- add initial version of BarrelList, a pure-python b-list-y thing to approximate O(log(n)) behavior by multiplexing the fast O(n) list operations
- switch to new dead index interval approach; the IndexedSet is about half the speed of a list in the ultra-pathological case of random popping on the low end of the IndexedSet
- made BisectTree's get() defaulting work a bit more like a dict's
- added get_adjacent and miscellaneous to BisectTree
- added a default name and always-falsy nonzero to Sentinel
- add pop() for BisectTree and export the generic Tree
- make a bisect tree, because O(n) is still pretttttty fast up to about 100k items
- add a little hack to chunked/chunked_iter to make it work nicely with strings
- tidy up ki_vs_vi_lrh usage just a titch
- revamp indices behavior (key_size and value_size)
- switch to new multi-key mode
- pretty much done porting insert, delete, balance (the basic operations)
- switch to negative refs, arbitrary length nodes
- add sentinel utility thing
- add .index() for list compat, updated exception messages, and added a silly test to show off slicing and indexing
- add slicing support and .clear()
- remove ifilter dependency (using generator expression)
- add .reverse and .sort() to IndexedSet, fix bisection related bug exposing MISSING (insort requested index, not real_index)
- pretty much all fundy IndexedSet bugs hit and fixed, looks like
- IndexedSet getting much closer
- initial rough draft of IndexedSet with a short docstring and a bunch of fixes already (still not workin tho)
- add dictutils (OrderedMultiDict)
- it was a long time coming, but I'm finally halfway happy with this wrapped exception
- add uniqueification capabilities
- go back to using new and positional arguments
- exception wrapping green path mostly working
- working on a wrapping exception mixin thing for less lossy nonraising.
- add asciify and update slugify with ascii flag
- add basic docs and doctests to strutils
- scratch that, regexes still faster
- add under2camel, camel2under, and slugify (and split_punct_ws, which is much faster than re-based punctuation splitting)
- python3-compatible doctest for bucketize_bool
- bucketize and bucketize_bool, with docs
- add examples to chunked and chunked_iter
- update split() docs with more examples.
- iterutils.chunked_iter and iterutils.chunked
- iterutils.split and iterutils.split_iter work