{
    "mode": "pydoc",
    "parameter": "pymacaroons",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/pymacaroons/json",
    "generated": "2026-06-02T15:56:09Z",
    "sections": {
        "NAME": {
            "content": "pymacaroons\n",
            "subsections": []
        },
        "PACKAGE CONTENTS": {
            "content": "binders (package)\ncaveat\ncaveatdelegates (package)\nexceptions\nfieldencryptors (package)\nmacaroon\nserializers (package)\nutils\nverifier\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.object\npymacaroons.caveat.Caveat\npymacaroons.macaroon.Macaroon\npymacaroons.verifier.Verifier\n",
            "subsections": [
                {
                    "name": "class Caveat",
                    "content": "|  Caveat(caveatid=None, verificationkeyid=None, location=None, version=None)\n|\n|  Methods defined here:\n|\n|  init(self, caveatid=None, verificationkeyid=None, location=None, version=None)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  firstparty(self)\n|\n|  thirdparty(self)\n|\n|  todict(self)\n|\n|  ----------------------------------------------------------------------\n|  Readonly properties defined here:\n|\n|  caveatidbytes\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  caveatid\n|\n|  location\n|\n|  verificationkeyid\n"
                },
                {
                    "name": "class Macaroon",
                    "content": "|  Macaroon(location=None, identifier=None, key=None, caveats=None, signature=None, version=1)\n|\n|  Methods defined here:\n|\n|  init(self, location=None, identifier=None, key=None, caveats=None, signature=None, version=1)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  addfirstpartycaveat(self, predicate, kwargs)\n|\n|  addthirdpartycaveat(self, location, key, keyid, kwargs)\n|\n|  copy(self)\n|\n|  firstpartycaveats(self)\n|\n|  inspect(self)\n|\n|  prepareforrequest(self, dischargemacaroon)\n|      Return a new discharge macaroon bound to the receiving macaroon's\n|      current signature so that it can be used in a request.\n|\n|      This must be done before a discharge macaroon is sent to a server.\n|\n|      :param dischargemacaroon:\n|      :return: bound discharge macaroon\n|\n|  serialize(self, serializer=None)\n|\n|  thirdpartycaveats(self)\n|\n|  ----------------------------------------------------------------------\n|  Class methods defined here:\n|\n|  deserialize(serialized, serializer=None) from builtins.type\n|\n|  ----------------------------------------------------------------------\n|  Readonly properties defined here:\n|\n|  identifierbytes\n|\n|  signaturebytes\n|\n|  version\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  identifier\n|\n|  location\n|\n|  signature\n"
                },
                {
                    "name": "class Verifier",
                    "content": "|  Methods defined here:\n|\n|  init(self)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  satisfyexact(self, predicate)\n|\n|  satisfygeneral(self, func)\n|\n|  verify(self, macaroon, key, dischargemacaroons=None)\n|\n|  verifydischarge(self, root, discharge, key, dischargemacaroons=None)\n|\n|  verifyexact(self, predicate)\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n"
                }
            ]
        },
        "DATA": {
            "content": "MACAROONV1 = 1\nMACAROONV2 = 2\nall = ['Macaroon', 'Caveat', 'Verifier', 'MACAROONV1', 'MACAROON...\nshortversion = '0.13.0'\nversioninfo = ('0', '13', '0')\n",
            "subsections": []
        },
        "VERSION": {
            "content": "0.13.0\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Evan Cordell\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/pymacaroons/init.py\n\n",
            "subsections": []
        }
    },
    "summary": "pymacaroons",
    "flags": [],
    "examples": [],
    "see_also": []
}