{
    "content": [
        {
            "type": "text",
            "text": "# atexit (pydoc)\n\n**Summary:** atexit\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (5 lines)\n- **FUNCTIONS** (1 lines) — 2 subsections\n  - register (10 lines)\n  - unregister (7 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\natexit\n\n### DESCRIPTION\n\nallow programmer to define multiple exit functions to be executed\nupon normal program termination.\n\nTwo public functions, register and unregister, are defined.\n\n### FUNCTIONS\n\n#### register\n\nregister(func, *args, kwargs) -> func\n\nRegister a function to be executed upon normal program termination\n\nfunc - function to be called at exit\nargs - optional arguments to pass to func\nkwargs - optional keyword arguments to pass to func\n\nfunc is returned to facilitate usage as a decorator.\n\n#### unregister\n\nunregister(func) -> None\n\nUnregister an exit function which was previously registered using\natexit.register\n\nfunc - function to be unregistered\n\n### FILE\n\n(built-in)\n\n"
        }
    ],
    "structuredContent": {
        "command": "atexit",
        "section": "",
        "mode": "pydoc",
        "summary": "atexit",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "register",
                        "lines": 10
                    },
                    {
                        "name": "unregister",
                        "lines": 7
                    }
                ]
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}