serial - pydoc - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


Help on package serial:

NAME
    serial

DESCRIPTION
    # This is a wrapper module for different platform implementations
    #
    # This file is part of pySerial. https://github.com/pyserial/pyserial
    # (C) 2001-2020 Chris Liechti <cliechti AT gmx.net>
    #
    # SPDX-License-Identifier:    BSD-3-Clause

PACKAGE CONTENTS
    __main__
    rfc2217
    rs485
    serialcli
    serialjava
    serialposix
    serialutil
    serialwin32
    threaded (package)
    tools (package)
    urlhandler (package)
    win32

FUNCTIONS
    serial_for_url(url, *args, **kwargs)
        Get an instance of the Serial class, depending on port/url. The port is not
        opened when the keyword parameter 'do_not_open' is true, by default it
        is. All other parameters are directly passed to the __init__ method when
        the port is instantiated.

        The list of package names that is searched for protocol handlers is kept in
        ``protocol_handler_packages``.

        e.g. we want to support a URL ``foobar://``. A module
        ``my_handlers.protocol_foobar`` is provided by the user. Then
        ``protocol_handler_packages.append("my_handlers")`` would extend the search
        path so that ``serial_for_url("foobar://"))`` would work.

DATA
    CR = b'\r'
    EIGHTBITS = 8
    FIVEBITS = 5
    LF = b'\n'
    PARITY_EVEN = 'E'
    PARITY_MARK = 'M'
    PARITY_NAMES = {'E': 'Even', 'M': 'Mark', 'N': 'None', 'O': 'Odd', 'S'...
    PARITY_NONE = 'N'
    PARITY_ODD = 'O'
    PARITY_SPACE = 'S'
    SEVENBITS = 7
    SIXBITS = 6
    STOPBITS_ONE = 1
    STOPBITS_ONE_POINT_FIVE = 1.5
    STOPBITS_TWO = 2
    VERSION = '3.5'
    XOFF = b'\x13'
    XON = b'\x11'
    absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0...
    basestring = (<class 'str'>,)
    protocol_handler_packages = ['serial.urlhandler']

VERSION
    3.5

FILE
    /usr/lib/python3/dist-packages/serial/__init__.py



Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:13 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!