Skip to main content

Boltons

boltons should be builtins.

Boltons is a set of over 230 BSD-licensed, pure-Python utilities in the same spirit as — and yet conspicuously missing from — the standard library, including:

Full and extensive docs are available on Read The Docs. See what's new by checking the CHANGELOG.

Boltons is tested against Python 3.7-3.14, as well as PyPy3.

Installation

Boltons can be added to a project in a few ways. There's the obvious one:

pip install boltons

On macOS, it can also be installed via MacPorts:

sudo port install py-boltons

Then, thanks to PyPI, dozens of boltons are just an import away:

from boltons.cacheutils import LRU
my_cache = LRU()

However, due to the nature of utilities, application developers might want to consider other options, including vendorization of individual modules into a project. Boltons is pure-Python and has no dependencies. If the whole project is too big, each module is independent, and can be copied directly into a project. See the Integration section of the docs for more details.

Third-party packages

The majority of boltons strive to be "good enough" for a wide range of basic uses, leaving advanced use cases to Python's myriad specialized 3rd-party libraries. In many cases the respective boltons module will describe 3rd-party alternatives worth investigating when use cases outgrow boltons. If you've found a natural "next-step" library worth mentioning, see the next section!

Gaps

Found something missing in the standard library that should be in boltons? Found something missing in boltons? First, take a moment to read the very brief architecture statement to make sure the functionality would be a good fit. It covers the design philosophy, what belongs in boltons, and how modules are organized.

Then, if you are very motivated, submit a Pull Request. Otherwise, submit a short feature request on the Issues page, and we will figure something out.

Development

Install uv, then set up a dev environment:

uv venv && uv pip install -e .

Run the test suite (includes doctests):

uvx --with tox-uv tox -e py314

Run all environments in parallel:

uvx --with tox-uv tox -p auto

Metadata

Release files for boltons 26.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boltons 26.2.0
File Size Uploaded
boltons-26.2.0.tar.gz 242.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for boltons 26.2.0
File Interpreter ABI Platform
boltons-26.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 441.6 kB

Release files / boltons-26.2.0.tar.gz

Download URL boltons-26.2.0.tar.gz
Size 242.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d39cfd15c1a1c3bd4d705c82252fa9edb8e4f5e8cc039f8e39afac7b1b47e92c
BLAKE2b-256 checksum
How to use checksums
715614c4a4931910a81ddeccfbe227925ea738e3c445d3e2af960f0bcbba1616
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release files / boltons-26.2.0-py3-none-any.whl

Download URL boltons-26.2.0-py3-none-any.whl
Size 199.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41942cbce440211bbcf2487ccdc356964ad674f95a01068b8a0dd7a1d1fed036
BLAKE2b-256 checksum
How to use checksums
d2ac1f8e4f4855e382a67392ca3bba329cb93aba1e3039289c52a86bf337f7a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

26.2.0 This release

2 release files

26.1.0

2 release files

26.0.0

2 release files

24.0.0

2 release files

23.1.0

2 release files

23.0.0

2 release files

21.0.0

2 release files

20.2.1

2 release files

20.2.0

2 release files

20.1.0

2 release files

19.3.0

2 release files

19.2.0

2 release files

19.1.0

2 release files

19.0.1

2 release files

19.0.0

2 release files

18.0.1

2 release files

17.2.0

2 release files

17.1.0

2 release files

17.0.0

2 release files

16.5.0

2 release files

16.4.1

2 release files

16.3.1

2 release files

16.3.0

2 release files

16.2.1

2 release files

16.2.0

2 release files

16.1.1

1 release file

16.1.0

1 release file

16.0.1

1 release file

16.0.0

1 release file

15.1.1

1 release file

15.1.0

1 release file

15.0.2

1 release file

15.0.1

1 release file

15.0.0

1 release file

0.6.6

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2

1 release file

0.2.0

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page