{
    "content": [
        {
            "type": "text",
            "text": "# pymacaroons (pydoc)\n\n**Summary:** pymacaroons\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **PACKAGE CONTENTS** (10 lines)\n- **CLASSES** (5 lines) — 3 subsections\n  - class Caveat (33 lines)\n  - class Macaroon (59 lines)\n  - class Verifier (24 lines)\n- **DATA** (6 lines)\n- **VERSION** (2 lines)\n- **AUTHOR** (2 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\npymacaroons\n\n### PACKAGE CONTENTS\n\nbinders (package)\ncaveat\ncaveatdelegates (package)\nexceptions\nfieldencryptors (package)\nmacaroon\nserializers (package)\nutils\nverifier\n\n### CLASSES\n\nbuiltins.object\npymacaroons.caveat.Caveat\npymacaroons.macaroon.Macaroon\npymacaroons.verifier.Verifier\n\n#### class Caveat\n\n|  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\n#### class Macaroon\n\n|  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\n#### class Verifier\n\n|  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\n### DATA\n\nMACAROONV1 = 1\nMACAROONV2 = 2\nall = ['Macaroon', 'Caveat', 'Verifier', 'MACAROONV1', 'MACAROON...\nshortversion = '0.13.0'\nversioninfo = ('0', '13', '0')\n\n### VERSION\n\n0.13.0\n\n### AUTHOR\n\nEvan Cordell\n\n### FILE\n\n/usr/lib/python3/dist-packages/pymacaroons/init.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "pymacaroons",
        "section": "",
        "mode": "pydoc",
        "summary": "pymacaroons",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "PACKAGE CONTENTS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 5,
                "subsections": [
                    {
                        "name": "class Caveat",
                        "lines": 33
                    },
                    {
                        "name": "class Macaroon",
                        "lines": 59
                    },
                    {
                        "name": "class Verifier",
                        "lines": 24
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}