The Python standard library

This library reference manual describes the standard library distributed with Python. It also describes some of the optional components that are commonly included in Python distributions.

Elsewhere, مرجع زبان پایتون describes the exact syntax and semantics of the Python language, and Python built-ins reference describes the built-in functions.

Python's standard library is extensive, offering a wide range of facilities as indicated by the long table of contents listed below. The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming. Some of these modules are explicitly designed to encourage and enhance the portability of Python programs by abstracting away platform-specifics into platform-neutral APIs.

نصب‌کننده‌های پایتون برای سکوی ویندوز معمولاً شامل کل کتابخانه استاندارد و اغلب همچنین شامل بسیاری از کامپوننت‌های اضافی می‌شوند. برای سیستم‌عامل‌های شبه‌یونیکس، پایتون معمولاً به‌صورت مجموعه‌ای از بسته‌ها ارائه می‌شود، بنابراین ممکن است لازم باشد برای دریافت برخی یا همه‌ی کامپوننت‌های اختیاری از ابزارهای بسته‌بندی ارائه‌شده همراه سیستم‌عامل استفاده کنید.

علاوه بر کتابخانه استاندارد، مجموعه‌ای فعال از صدها هزار کامپوننت (از برنامه‌ها و ماژول‌های منفرد گرفته تا بسته‌ها و چارچوب‌های کامل توسعه‌ی برنامه‌های کاربردی) از طریق Python Package Index در دسترس است.