{"id":15009588,"url":"https://github.com/hanaasagi/python-stdlib-note","last_synced_at":"2026-02-14T09:39:21.958Z","repository":{"id":87052343,"uuid":"81226500","full_name":"Hanaasagi/python-stdlib-note","owner":"Hanaasagi","description":"keep this under my pillow . z Z","archived":false,"fork":false,"pushed_at":"2017-04-25T06:35:48.000Z","size":105,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T22:42:10.786Z","etag":null,"topics":["notes","python-3-5","stdlib"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hanaasagi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-07T16:02:07.000Z","updated_at":"2017-10-09T00:42:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2f92f1c-58ec-45ee-925f-c0193b9db571","html_url":"https://github.com/Hanaasagi/python-stdlib-note","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hanaasagi/python-stdlib-note","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanaasagi%2Fpython-stdlib-note","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanaasagi%2Fpython-stdlib-note/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanaasagi%2Fpython-stdlib-note/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanaasagi%2Fpython-stdlib-note/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hanaasagi","download_url":"https://codeload.github.com/Hanaasagi/python-stdlib-note/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanaasagi%2Fpython-stdlib-note/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001523,"owners_count":26083117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["notes","python-3-5","stdlib"],"created_at":"2024-09-24T19:26:47.735Z","updated_at":"2025-10-09T14:04:53.331Z","avatar_url":"https://github.com/Hanaasagi.png","language":null,"readme":"# python-stdlib-note\n**枕头不够高，标准库来垫**  \n\n翻看 python 标准库时的笔记  \n\n追加 `[*]` 则阅读完毕  \n\nversion Python3.5.3\n\n1. [Introduction[+]](https://docs.python.org/3.5/library/intro.html)\n2. [Built-in Functions[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/functions.md)  \n3. [Built-in Constants[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/constants.md)  \n    3.1. Constants added by the site module[+]  \n4. [Built-in Types[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/stdtypes.md)  \n    4.1. Truth Value Testing[+]  \n    4.2. Boolean Operations — and, or, not[+]  \n    4.3. Comparisons[+]  \n    4.4. Numeric Types — int, float, complex[+]  \n    4.5. Iterator Types[+]  \n    4.6. Sequence Types — list, tuple, range[+]  \n    4.7. Text Sequence Type — str[+]  \n    4.8. Binary Sequence Types — bytes, bytearray, memoryview[+]  \n    4.9. Set Types — set, frozenset[+]  \n    4.10. Mapping Types — dict[+]  \n    4.11. Context Manager Types[+]  \n    4.12. Other Built-in Types[+]  \n    4.13. Special Attributes[+]  \n5. [Built-in Exceptions[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/exceptions.md)  \n    5.1. Base classes[+]  \n    5.2. Concrete exceptions[+]  \n    5.3. Warnings[+]  \n    5.4. Exception hierarchy[+]  \n6. Text Processing Services[+]  \n    6.1. [string — Common string operations[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/string.md)  \n    6.2. [re — Regular expression operations[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/re.md)  \n    6.3. [difflib — Helpers for computing deltas[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/difflib.md)  \n    6.4. [textwrap — Text wrapping and filling[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/textwrap.md)  \n    6.5. unicodedata — Unicode Database[+]  \n    6.6. stringprep — Internet String Preparation[+]  \n    6.7. [readline — GNU readline interface[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/readline.md)  \n    6.8. rlcompleter — Completion function for GNU readline[+]  \n7. Binary Data Services[+]  \n    7.1. [struct — Interpret bytes as packed binary data[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/struct.md)  \n    7.2. [codecs — Codec registry and base classes[+]](https://github.com/Hanaasagi/python-stdlib-note/blob/master/library/codecs.md)  \n8. Data Types  \n    8.1. datetime — Basic date and time types[+]  \n    8.2. calendar — General calendar-related functions  \n    8.3. collections — Container datatypes  \n    8.4. collections.abc — Abstract Base Classes for Containers  \n    8.5. heapq — Heap queue algorithm  \n    8.6. bisect — Array bisection algorithm  \n    8.7. array — Efficient arrays of numeric values  \n    8.8. weakref — Weak references  \n    8.9. types — Dynamic type creation and names for built-in types  \n    8.10. copy — Shallow and deep copy operations  \n    8.11. pprint — Data pretty printer  \n    8.12. reprlib — Alternate repr() implementation  \n    8.13. enum — Support for enumerations  \n9. Numeric and Mathematical Modules  \n    9.1. numbers — Numeric abstract base classes  \n    9.2. math — Mathematical functions  \n    9.3. cmath — Mathematical functions for complex numbers  \n    9.4. decimal — Decimal fixed point and floating point arithmetic  \n    9.5. fractions — Rational numbers  \n    9.6. random — Generate pseudo-random numbers  \n    9.7. statistics — Mathematical statistics functions  \n10. Functional Programming Modules  \n    10.1. itertools — Functions creating iterators for efficient looping  \n    10.2. functools — Higher-order functions and operations on callable objects  \n    10.3. operator — Standard operators as functions  \n11. File and Directory Access  \n    11.1. pathlib — Object-oriented filesystem paths  \n    11.2. os.path — Common pathname manipulations  \n    11.3. fileinput — Iterate over lines from multiple input streams  \n    11.4. stat — Interpreting stat() results  \n    11.5. filecmp — File and Directory Comparisons  \n    11.6. tempfile — Generate temporary files and directories  \n    11.7. glob — Unix style pathname pattern expansion  \n    11.8. fnmatch — Unix filename pattern matching  \n    11.9. linecache — Random access to text lines  \n    11.10. shutil — High-level file operations  \n    11.11. macpath — Mac OS 9 path manipulation functions  \n12. Data Persistence  \n    12.1. pickle — Python object serialization  \n    12.2. copyreg — Register pickle support functions  \n    12.3. shelve — Python object persistence  \n    12.4. marshal — Internal Python object serialization  \n    12.5. dbm — Interfaces to Unix “databases”  \n    12.6. sqlite3 — DB-API 2.0 interface for SQLite databases  \n13. Data Compression and Archiving  \n    13.1. zlib — Compression compatible with gzip  \n    13.2. gzip — Support for gzip files  \n    13.3. bz2 — Support for bzip2 compression  \n    13.4. lzma — Compression using the LZMA algorithm  \n    13.5. zipfile — Work with ZIP archives  \n    13.6. tarfile — Read and write tar archive files  \n14. File Formats  \n    14.1. csv — CSV File Reading and Writing  \n    14.2. configparser — Configuration file parser  \n    14.3. netrc — netrc file processing  \n    14.4. xdrlib — Encode and decode XDR data  \n    14.5. plistlib — Generate and parse Mac OS X .plist files  \n15. Cryptographic Services  \n    15.1. hashlib — Secure hashes and message digests  \n    15.2. hmac — Keyed-Hashing for Message Authentication  \n16. Generic Operating System Services  \n    16.1. os — Miscellaneous operating system interfaces  \n    16.2. io — Core tools for working with streams  \n    16.3. time — Time access and conversions  \n    16.4. argparse — Parser for command-line options, arguments and sub-commands  \n    16.5. getopt — C-style parser for command line options  \n    16.6. logging — Logging facility for Python  \n    16.7. logging.config — Logging configuration  \n    16.8. logging.handlers — Logging handlers  \n    16.9. getpass — Portable password input  \n    16.10. curses — Terminal handling for character-cell displays  \n    16.11. curses.textpad — Text input widget for curses programs  \n    16.12. curses.ascii — Utilities for ASCII characters  \n    16.13. curses.panel — A panel stack extension for curses  \n    16.14. platform — Access to underlying platform’s identifying data  \n    16.15. errno — Standard errno system symbols  \n    16.16. ctypes — A foreign function library for Python  \n17. Concurrent Execution  \n    17.1. threading — Thread-based parallelism  \n    17.2. multiprocessing — Process-based parallelism  \n    17.3. The concurrent package  \n    17.4. concurrent.futures — Launching parallel tasks  \n    17.5. subprocess — Subprocess management  \n    17.6. sched — Event scheduler  \n    17.7. queue — A synchronized queue class  \n    17.8. dummy_threading — Drop-in replacement for the threading module  \n    17.9. _thread — Low-level threading API  \n    17.10. _dummy_thread — Drop-in replacement for the _thread module  \n18. Interprocess Communication and Networking  \n    18.1. socket — Low-level networking interface  \n    18.2. ssl — TLS/SSL wrapper for socket objects  \n    18.3. select — Waiting for I/O completion  \n    18.4. selectors — High-level I/O multiplexing  \n    18.5. asyncio — Asynchronous I/O, event loop, coroutines and tasks  \n    18.6. asyncore — Asynchronous socket handler  \n    18.7. asynchat — Asynchronous socket command/response handler  \n    18.8. signal — Set handlers for asynchronous events  \n    18.9. mmap — Memory-mapped file support  \n19. Internet Data Handling  \n    19.1. email — An email and MIME handling package  \n    19.2. json — JSON encoder and decoder  \n    19.3. mailcap — Mailcap file handling  \n    19.4. mailbox — Manipulate mailboxes in various formats  \n    19.5. mimetypes — Map filenames to MIME types  \n    19.6. base64 — Base16, Base32, Base64, Base85 Data Encodings  \n    19.7. binhex — Encode and decode binhex4 files  \n    19.8. binascii — Convert between binary and ASCII  \n    19.9. quopri — Encode and decode MIME quoted-printable data  \n    19.10. uu — Encode and decode uuencode files  \n20. Structured Markup Processing Tools  \n    20.1. html — HyperText Markup Language support  \n    20.2. html.parser — Simple HTML and XHTML parser  \n    20.3. html.entities — Definitions of HTML general entities  \n    20.4. XML Processing Modules  \n    20.5. xml.etree.ElementTree — The ElementTree XML API  \n    20.6. xml.dom — The Document Object Model API  \n    20.7. xml.dom.minidom — Minimal DOM implementation  \n    20.8. xml.dom.pulldom — Support for building partial DOM trees  \n    20.9. xml.sax — Support for SAX2 parsers  \n    20.10. xml.sax.handler — Base classes for SAX handlers  \n    20.11. xml.sax.saxutils — SAX Utilities  \n    20.12. xml.sax.xmlreader — Interface for XML parsers  \n    20.13. xml.parsers.expat — Fast XML parsing using Expat  \n21. Internet Protocols and Support  \n    21.1. webbrowser — Convenient Web-browser controller  \n    21.2. cgi — Common Gateway Interface support  \n    21.3. cgitb — Traceback manager for CGI scripts  \n    21.4. wsgiref — WSGI Utilities and Reference Implementation  \n    21.5. urllib — URL handling modules  \n    21.6. urllib.request — Extensible library for opening URLs  \n    21.7. urllib.response — Response classes used by urllib  \n    21.8. urllib.parse — Parse URLs into components  \n    21.9. urllib.error — Exception classes raised by urllib.request  \n    21.10. urllib.robotparser — Parser for robots.txt  \n    21.11. http — HTTP modules  \n    21.12. http.client — HTTP protocol client  \n    21.13. ftplib — FTP protocol client  \n    21.14. poplib — POP3 protocol client  \n    21.15. imaplib — IMAP4 protocol client  \n    21.16. nntplib — NNTP protocol client  \n    21.17. smtplib — SMTP protocol client  \n    21.18. smtpd — SMTP Server  \n    21.19. telnetlib — Telnet client  \n    21.20. uuid — UUID objects according to RFC 4122  \n    21.21. socketserver — A framework for network servers  \n    21.22. http.server — HTTP servers  \n    21.23. http.cookies — HTTP state management  \n    21.24. http.cookiejar — Cookie handling for HTTP clients  \n    21.25. xmlrpc — XMLRPC server and client modules  \n    21.26. xmlrpc.client — XML-RPC client access  \n    21.27. xmlrpc.server — Basic XML-RPC servers  \n    21.28. ipaddress — IPv4/IPv6 manipulation library  \n22. Multimedia Services  \n    22.1. audioop — Manipulate raw audio data  \n    22.2. aifc — Read and write AIFF and AIFC files  \n    22.3. sunau — Read and write Sun AU files  \n    22.4. wave — Read and write WAV files  \n    22.5. chunk — Read IFF chunked data  \n    22.6. colorsys — Conversions between color systems  \n    22.7. imghdr — Determine the type of an image  \n    22.8. sndhdr — Determine type of sound file  \n    22.9. ossaudiodev — Access to OSS-compatible audio devices  \n23. Internationalization  \n    23.1. gettext — Multilingual internationalization services  \n    23.2. locale — Internationalization services  \n24. Program Frameworks  \n    24.1. turtle — Turtle graphics  \n    24.2. cmd — Support for line-oriented command interpreters  \n    24.3. shlex — Simple lexical analysis  \n25. Graphical User Interfaces with Tk  \n    25.1. tkinter — Python interface to Tcl/Tk  \n    25.2. tkinter.ttk — Tk themed widgets  \n    25.3. tkinter.tix — Extension widgets for Tk  \n    25.4. tkinter.scrolledtext — Scrolled Text Widget  \n    25.5. IDLE  \n    25.6. Other Graphical User Interface Packages  \n26. Development Tools  \n    26.1. typing — Support for type hints  \n    26.2. pydoc — Documentation generator and online help system  \n    26.3. doctest — Test interactive Python examples  \n    26.4. unittest — Unit testing framework  \n    26.5. unittest.mock — mock object library  \n    26.6. unittest.mock — getting started  \n    26.7. 2to3 - Automated Python 2 to 3 code translation  \n    26.8. test — Regression tests package for Python  \n    26.9. test.support — Utilities for the Python test suite  \n27. Debugging and Profiling  \n    27.1. bdb — Debugger framework  \n    27.2. faulthandler — Dump the Python traceback  \n    27.3. pdb — The Python Debugger  \n    27.4. The Python Profilers  \n    27.5. timeit — Measure execution time of small code snippets  \n    27.6. trace — Trace or track Python statement execution  \n    27.7. tracemalloc — Trace memory allocations  \n28. Software Packaging and Distribution  \n    28.1. distutils — Building and installing Python modules  \n    28.2. ensurepip — Bootstrapping the pip installer  \n    28.3. venv — Creation of virtual environments  \n    28.4. zipapp — Manage executable python zip archives  \n29. Python Runtime Services  \n    29.1. sys — System-specific parameters and functions  \n    29.2. sysconfig — Provide access to Python’s configuration information  \n    29.3. builtins — Built-in objects  \n    29.4. __main__ — Top-level script environment  \n    29.5. warnings — Warning control  \n    29.6. contextlib — Utilities for with-statement contexts  \n    29.7. abc — Abstract Base Classes  \n    29.8. atexit — Exit handlers  \n    29.9. traceback — Print or retrieve a stack traceback  \n    29.10. __future__ — Future statement definitions  \n    29.11. gc — Garbage Collector interface  \n    29.12. inspect — Inspect live objects  \n    29.13. site — Site-specific configuration hook  \n    29.14. fpectl — Floating point exception control  \n30. Custom Python Interpreters  \n    30.1. code — Interpreter base classes  \n    30.2. codeop — Compile Python code  \n31. Importing Modules  \n    31.1. zipimport — Import modules from Zip archives  \n    31.2. pkgutil — Package extension utility  \n    31.3. modulefinder — Find modules used by a script  \n    31.4. runpy — Locating and executing Python modules  \n    31.5. importlib — The implementation of import  \n32. Python Language Services  \n    32.1. parser — Access Python parse trees  \n    32.2. ast — Abstract Syntax Trees  \n    32.3. symtable — Access to the compiler’s symbol tables  \n    32.4. symbol — Constants used with Python parse trees  \n    32.5. token — Constants used with Python parse trees  \n    32.6. keyword — Testing for Python keywords  \n    32.7. tokenize — Tokenizer for Python source  \n    32.8. tabnanny — Detection of ambiguous indentation  \n    32.9. pyclbr — Python class browser support  \n    32.10. py_compile — Compile Python source files  \n    32.11. compileall — Byte-compile Python libraries  \n    32.12. dis — Disassembler for Python bytecode  \n    32.13. pickletools — Tools for pickle developers  \n33. Miscellaneous Services  \n    33.1. formatter — Generic output formatting  \n34. MS Windows Specific Services  \n    34.1. msilib — Read and write Microsoft Installer files  \n    34.2. msvcrt — Useful routines from the MS VC++ runtime  \n    34.3. winreg — Windows registry access  \n    34.4. winsound — Sound-playing interface for Windows  \n35. Unix Specific Services  \n    35.1. posix — The most common POSIX system calls  \n    35.2. pwd — The password database  \n    35.3. spwd — The shadow password database  \n    35.4. grp — The group database  \n    35.5. crypt — Function to check Unix passwords  \n    35.6. termios — POSIX style tty control  \n    35.7. tty — Terminal control functions  \n    35.8. pty — Pseudo-terminal utilities  \n    35.9. fcntl — The fcntl and ioctl system calls  \n    35.10. pipes — Interface to shell pipelines  \n    35.11. resource — Resource usage information  \n    35.12. nis — Interface to Sun’s NIS (Yellow Pages)  \n    35.13. syslog — Unix syslog library routines  \n36. Superseded Modules  \n    36.1. optparse — Parser for command line options  \n    36.2. imp — Access the import internals  \n37. Undocumented Modules  \n    37.1. Platform specific modules  \n  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanaasagi%2Fpython-stdlib-note","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanaasagi%2Fpython-stdlib-note","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanaasagi%2Fpython-stdlib-note/lists"}