{
    "content": [
        {
            "type": "text",
            "text": "# serial (pydoc)\n\n**Summary:** serial\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (7 lines)\n- **PACKAGE CONTENTS** (13 lines)\n- **FUNCTIONS** (1 lines) — 1 subsections\n  - serial_for_url (13 lines)\n- **DATA** (22 lines)\n- **VERSION** (2 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nserial\n\n### DESCRIPTION\n\n# This is a wrapper module for different platform implementations\n#\n# This file is part of pySerial. https://github.com/pyserial/pyserial\n# (C) 2001-2020 Chris Liechti <cliechti@gmx.net>\n#\n# SPDX-License-Identifier:    BSD-3-Clause\n\n### PACKAGE CONTENTS\n\nmain\nrfc2217\nrs485\nserialcli\nserialjava\nserialposix\nserialutil\nserialwin32\nthreaded (package)\ntools (package)\nurlhandler (package)\nwin32\n\n### FUNCTIONS\n\n#### serial_for_url\n\nGet an instance of the Serial class, depending on port/url. The port is not\nopened when the keyword parameter 'donotopen' is true, by default it\nis. All other parameters are directly passed to the init method when\nthe port is instantiated.\n\nThe list of package names that is searched for protocol handlers is kept in\n``protocolhandlerpackages``.\n\ne.g. we want to support a URL ``foobar://``. A module\n``myhandlers.protocolfoobar`` is provided by the user. Then\n``protocolhandlerpackages.append(\"myhandlers\")`` would extend the search\npath so that ``serialforurl(\"foobar://\"))`` would work.\n\n### DATA\n\nCR = b'\\r'\nEIGHTBITS = 8\nFIVEBITS = 5\nLF = b'\\n'\nPARITYEVEN = 'E'\nPARITYMARK = 'M'\nPARITYNAMES = {'E': 'Even', 'M': 'Mark', 'N': 'None', 'O': 'Odd', 'S'...\nPARITYNONE = 'N'\nPARITYODD = 'O'\nPARITYSPACE = 'S'\nSEVENBITS = 7\nSIXBITS = 6\nSTOPBITSONE = 1\nSTOPBITSONEPOINTFIVE = 1.5\nSTOPBITSTWO = 2\nVERSION = '3.5'\nXOFF = b'\\x13'\nXON = b'\\x11'\nabsoluteimport = Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0...\nbasestring = (<class 'str'>,)\nprotocolhandlerpackages = ['serial.urlhandler']\n\n### VERSION\n\n3.5\n\n### FILE\n\n/usr/lib/python3/dist-packages/serial/init.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "serial",
        "section": "",
        "mode": "pydoc",
        "summary": "serial",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "PACKAGE CONTENTS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "serial_for_url",
                        "lines": 13
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 22,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}