Boltons

Latest version: v24.0.0

Safety actively analyzes 625178 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

23.0.0

*(February 19, 2023)*

* Overdue update for Python 3.10 and 3.11 support ([294][i294], [303][i303], [320][i320], [323][i323], [326][i326]/[327][i327])
* Add [iterutils.chunk_ranges][iterutils.chunk_ranges] ([312][i312])
* Improvements to `SpooledBytesIO`/`SpooledStringIO` ([305][i305])
* Bugfix for infinite daterange issue when start and stop is the same ([302][i302])
* Fix `Bits.as_list` behavior ([315][i315])

[i294]: https://github.com/mahmoud/boltons/issues/294
[i302]: https://github.com/mahmoud/boltons/issues/302
[i303]: https://github.com/mahmoud/boltons/issues/303
[i305]: https://github.com/mahmoud/boltons/issues/305
[i312]: https://github.com/mahmoud/boltons/issues/312
[i315]: https://github.com/mahmoud/boltons/issues/315
[i320]: https://github.com/mahmoud/boltons/issues/320
[i323]: https://github.com/mahmoud/boltons/issues/323
[i326]: https://github.com/mahmoud/boltons/issues/326
[i327]: https://github.com/mahmoud/boltons/issues/327

21.0.0

(May 16, 2021)

- Fix [OMD](http://boltons.readthedocs.org/en/latest/dictutils.html#boltons.dictutils.OrderedMultiDict).addlist when the added list is empty
- Add [funcutils.noop](https://boltons.readthedocs.io/en/latest/funcutils.html#boltons.funcutils.noop), satisfying [PEP 559](https://www.python.org/dev/peps/pep-0559/)
- Support lists for [iterutils.bucketize](http://boltons.readthedocs.org/en/latest/iterutils.html#boltons.iterutils.bucketize)
- Python 3.9 test fixes for OMD (PEP 584, see https://github.com/mahmoud/boltons/issues/271)
- Make [typeutils.make_sentinel](http://boltons.readthedocs.org/en/latest/typeutils.html#boltons.typeutils.make_sentinel) more pickleable
- [jsonutils.reverse_iter_lines](http://boltons.readthedocs.org/en/latest/jsonutils.html#boltons.jsonutils.reverse_iter_lines) now works on Py3 and Windows

20.0.0

First release of the year! Also the first release in a while to add a new module, `pathutils`!

* New module [pathutils][pathutils]:
* [pathutils.augpath][pathutils.augpath] augments a path by modifying its components
* [pathutils.shrinkuser][pathutils.shrinkuser] inverts :func:`os.path.expanduser`.
* [pathutils.expandpath][pathutils.expandpath] shell-like environ and tilde expansion
* add `include_dirs` param to [fileutils.iter_find_files][fileutils.iter_find_files]
* Make [funcutils.format_invocation][funcutils.format_invocation] more deterministic
* add [strutils.unwrap_text][strutils.unwrap_text] which does what you think to wrapped text
* Py3 fixes
* [iterutils.chunked][iterutils.chunked] to work with the `bytes` type ([231][i231])
* [cacheutils.ThresholdCounter][cacheutils.ThresholdCounter]'s `get_common_count()`

[i231]: https://github.com/mahmoud/boltons/issues/231
[pathutils]: https://boltons.readthedocs.io/en/latest/pathutils.html
[pathutils.augpath]: https://boltons.readthedocs.io/en/latest/pathutils.html#boltons.pathutils.augpath
[pathutils.augpath]: https://boltons.readthedocs.io/en/latest/pathutils.html#boltons.pathutils.augpath
[pathutils.shrinkuser]: https://boltons.readthedocs.io/en/latest/pathutils.html#boltons.pathutils.shrinkuser
[pathutils.expandpath]: https://boltons.readthedocs.io/en/latest/pathutils.html#boltons.pathutils.expandpath
[strutils.unwrap_text]: https://boltons.readthedocs.io/en/latest/strutils.html#boltons.strutils.unwrap_text
[fileutils.iter_find_files]: http://boltons.readthedocs.org/en/latest/fileutils.html#boltons.fileutils.iter_find_files
[funcutils.format_invocation]: https://boltons.readthedocs.io/en/latest/funcutils.html#boltons.funcutils.format_invocation
[iterutils.chunked]: http://boltons.readthedocs.org/en/latest/iterutils.html#boltons.iterutils.chunked
[cacheutils.ThresholdCounter]: http://boltons.readthedocs.org/en/latest/cacheutils.html#boltons.cacheutils.ThresholdCounter

**[See complete details for in the CHANGELOG](https://github.com/mahmoud/boltons/blob/master/CHANGELOG.md)**

19.3.0

* [funcutils.format_invocation][funcutils.format_invocation] for formatting simple function calls like `func(pos1, pos2, kw_k=kw_v)`
* [funcutils.format_exp_repr][funcutils.format_exp_repr] for formatting a repr like `Type(pos, kw_k=kw_v)`
* [funcutils.format_nonexp_repr][funcutils.format_nonexp_repr] for formatting a repr like `<Type k=v>`

[funcutils.format_invocation]: https://boltons.readthedocs.io/en/latest/funcutils.html#boltons.funcutils.format_invocation
[funcutils.format_exp_repr]: https://boltons.readthedocs.io/en/latest/funcutils.html#boltons.funcutils.format_exp_repr
[funcutils.format_nonexp_repr]: https://boltons.readthedocs.io/en/latest/funcutils.html#boltons.funcutils.format_nonexp_rep

**[See complete details for 19.3.0 in the CHANGELOG](https://github.com/mahmoud/boltons/blob/master/CHANGELOG.md#1930)**

19.2.0

A few small fixes and enhancements.

**[See complete details for 19.2.0 in the CHANGELOG](https://github.com/mahmoud/boltons/blob/master/CHANGELOG.md#1920)**

19.1.0

A couple enhancements, a couple cleanups, across several modules.

**[See complete details for 19.1.0 in the CHANGELOG](https://github.com/mahmoud/boltons/blob/master/CHANGELOG.md#1910)**

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.