Skip to main content

When they're not builtins, they're boltons.

Project description

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.13, 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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boltons-25.0.0.tar.gz (246.3 kB view details)

Uploaded Source

Built Distribution

boltons-25.0.0-py3-none-any.whl (194.2 kB view details)

Uploaded Python 3

File details

Details for the file boltons-25.0.0.tar.gz.

File metadata

  • Download URL: boltons-25.0.0.tar.gz
  • Upload date:
  • Size: 246.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for boltons-25.0.0.tar.gz
Algorithm Hash digest
SHA256 e110fbdc30b7b9868cb604e3f71d4722dd8f4dcb4a5ddd06028ba8f1ab0b5ace
MD5 fd7a60168e8cda65b4794f0c72437417
BLAKE2b-256 635471a94d8e02da9a865587fb3fff100cb0fc7aa9f4d5ed9ed3a591216ddcc7

See more details on using hashes here.

File details

Details for the file boltons-25.0.0-py3-none-any.whl.

File metadata

  • Download URL: boltons-25.0.0-py3-none-any.whl
  • Upload date:
  • Size: 194.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for boltons-25.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc9fb38bf28985715497d1b54d00b62ea866eca3938938ea9043e254a3a6ca62
MD5 362840ab593449284431b5691de33713
BLAKE2b-256 457f0e961cf3908bc4c1c3e027de2794f867c6c89fb4916fc7dba295a0e80a2d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page