macaroonbakery
A Python library port for bakery, higher level operation to work with macaroons
Decision gist · record as of 2026-08-14
Yes, but with caution. Install if you need to authenticate to a macaroon-bakery-protected service and have no alternative. The low install friction and absence of known vulnerabilities are positives, but the dormant maintenance status (975 days since last release, no commits since May 2024) and outdated Python version support (classifiers only list up to 3.5) mean you should verify compatibility with your target Python version and dependencies before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- libsodium system library may be required on some platforms; see installation notes for Ubuntu/Debian setup.
- Low install friction with a pure-Python wheel, but maintenance is dormant—last release was 975 days ago and the repository shows no recent commits since 2024-05-23.
- The 11 runtime dependencies include cryptographic libraries (PyNaCl, cryptography, pyOpenSSL) that may require system libraries like libsodium on some platforms.
License · maintenance · safety
LGPL3 (copyleft) — Licensed under LGPLv3 (copyleft). Any derivative work or modification must be released under the same license; static linking or bundling may trigger copyleft obligations depending on how you distribute the software.
last release 2023-12-13 (975 days) · last repo commit 2024-05-23 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 830,025 downloads/mo, #4,950 on PyPI
Alternatives
Verify before relying
pip install macaroonbakery
from macaroonbakery import httpbakery
import requests
jar = requests.cookies.RequestsCookieJar()
resp = requests.get('https://example.com/protected',
cookies=jar,
auth=httpbakery.BakeryAuth(cookies=jar))- Whether the package works reliably with modern Python versions (classifiers list only up to 3.5, released 2015).
- Current compatibility with recent versions of protobuf, PyNaCl, and cryptography dependencies.
- Whether dormant status indicates the package is still maintained or has been superseded.
What it is and what it does
Macaroonbakery is a Python library that implements higher-level operations for working with macaroons—cryptographic authorization tokens—in HTTP contexts. It provides a BakeryAuth handler that integrates with the requests library to transparently manage macaroon cookies across multiple HTTP requests to protected endpoints. The library handles the complexity of macaroon validation and cookie storage, allowing developers to authenticate to macaroon-protected services without manually managing the cryptographic handshake.
The package depends on a substantial cryptographic stack (PyNaCl, cryptography, pyOpenSSL, pymacaroons) and is designed primarily for systems that use macaroon-based authorization schemes. It was developed as a port of Go's macaroon-bakery library and is most useful in environments where macaroon authentication is already the standard—such as Juju, Canonical's orchestration platform, or other systems built around macaroon-based access control.
Use it for
- Authenticate to Juju or other macaroon-bakery-protected services using Python HTTP clients.
- Manage macaroon cookies across multiple requests to the same protected API without re-authenticating.
- Integrate macaroon-based authorization into Python applications that need to call protected endpoints.
- Handle cryptographic cookie validation and refresh transparently in HTTP workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with caution.
Install if you need to authenticate to a macaroon-bakery-protected service and have no alternative. The low install friction and absence of known vulnerabilities are positives, but the dormant maintenance status (975 days since last release, no commits since May 2024) and outdated Python version support (classifiers only list up to 3.5) mean you should verify compatibility with your target Python version and dependencies before committing to production use.
Install
macaroonbakery on PyPI
Before you install
Low install friction with a pure-Python wheel, but maintenance is dormant—last release was 975 days ago and the repository shows no recent commits since 2024-05-23. The 11 runtime dependencies include cryptographic libraries (PyNaCl, cryptography, pyOpenSSL) that may require system libraries like libsodium on some platforms.
libsodium system library may be required on some platforms; see installation notes for Ubuntu/Debian setup.
License in practice
Licensed under LGPLv3 (copyleft). Any derivative work or modification must be released under the same license; static linking or bundling may trigger copyleft obligations depending on how you distribute the software.
Quickstart
pip install macaroonbakery
from macaroonbakery import httpbakery
import requests
jar = requests.cookies.RequestsCookieJar()
resp = requests.get('https://example.com/protected',
cookies=jar,
auth=httpbakery.BakeryAuth(cookies=jar))
Verify before relying
- Whether the package works reliably with modern Python versions (classifiers list only up to 3.5, released 2015).
- Current compatibility with recent versions of protobuf, PyNaCl, and cryptography dependencies.
- Whether dormant status indicates the package is still maintained or has been superseded.
Package facts
| License | LGPL3 copyleft |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 11 packagesPyNaClprotobufpyRFC3339pymacaroonsrequestssixcryptographyndg-httpsclientpyOpenSSLpyasn1ipaddress |
| Maintenance | Dormant 975 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 830,025 / month, #4,950 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Natural Language :: EnglishProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5 |
Evidence: macaroonbakery-1.3.4-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “macaroon authentication”
- macaroonbakeryMacaroonbakery provides HTTP authentication and cookie handling for…
- pymacaroonsPyMacaroons implements macaroons—bearer credentials with embedded…
- python-libmaasPython client library and CLI for MAAS, providing programmatic and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Cryptography packages
Certifi provides Mozilla's curated collection of root SSL certificates for Python applications to validate TLS hosts and verify certificate trustworthiness.
cryptography provides cryptographic recipes and low-level primitives for symmetric encryption, message digests, key derivation, and other common cryptographic algorithms in Python.
Pure-Python RSA encryption, decryption, signing, and key generation following PKCS#1 v1.5, with command-line and library interfaces.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
Provides Microsoft Entra ID token-based authentication for Azure SDK clients through a set of TokenCredential implementations that handle OAuth flows and managed identity support.
PyNaCl provides Python bindings to libsodium for digital signatures, secret-key and public-key encryption, hashing, message authentication, and password-based key derivation.
See also pymacaroons · cookies · django-cookie-consent · browser-cookie3 · pycookiecheat · quart-auth · streamlit-cookies-controller · wafer-py · fontbakery · fastapi-sessions