$npx skillfedfor your agent

macaroonbakery

A Python library port for bakery, higher level operation to work with macaroons

With conditionsPyPI CryptographyReleased Dec 2023830.0K downloads / moLGPL3Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — macaroonbakery-1.3.4-py2.py3-none-any.whl
v1.3.4 · released 2023-12-13 · 11 runtime deps: PyNaCl, protobuf, pyRFC3339, pymacaroons, requests, six, cryptography, ndg-httpsclient

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseLGPL3 copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
11 packages
PyNaClprotobufpyRFC3339pymacaroonsrequestssixcryptographyndg-httpsclientpyOpenSSLpyasn1ipaddress
MaintenanceDormant 975 days since the last release
Last repo commit
First released
Downloads830,025 / month, #4,950 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
macaroon authenticationHTTP cookie bakerymacaroon-based access controlrequests library auth handlercryptographic cookie managementmacaroon session handlingprotected API authentication
Topics
macaroon-authhttp-cookiescryptographic-tokens
PyPI keywords
macarooncookie

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 Worth it
PyPI · Cryptography · released Jul 2026

Certifi provides Mozilla's curated collection of root SSL certificates for Python applications to validate TLS hosts and verify certificate trustworthiness.

MPL-2.0pure Python · 3.7+
1.9Bdownloads / mo
cryptography Worth it
PyPI · Cryptography · released Jul 2026

cryptography provides cryptographic recipes and low-level primitives for symmetric encryption, message digests, key derivation, and other common cryptographic algorithms in Python.

Apache-2.0 OR BSD-3-Clausecompiled wheel
1.5Bdownloads / mo
rsa Skip
PyPI · Cryptography · released Apr 2025

Pure-Python RSA encryption, decryption, signing, and key generation following PKCS#1 v1.5, with command-line and library interfaces.

Apache-2.0pure Pythonabandoned
299.6Mdownloads / mo
pyOpenSSL With conditions
PyPI · Python Modules · released Aug 2026

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.

Apache-2.0pure Python · 3.9+
294.2Mdownloads / mo
azure-identity Worth it
PyPI · Cryptography · released Mar 2026

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.

license unclearpure Python · 3.9+
247.2Mdownloads / mo
PyNaCl Worth it
PyPI · Cryptography · released Jan 2026

PyNaCl provides Python bindings to libsodium for digital signatures, secret-key and public-key encryption, hashing, message authentication, and password-based key derivation.

Apache-2.0compiled wheel · 3.8+
246.6Mdownloads / mo

See also pymacaroons · cookies · django-cookie-consent · browser-cookie3 · pycookiecheat · quart-auth · streamlit-cookies-controller · wafer-py · fontbakery · fastapi-sessions