allos.md
1> **Источник:** https://python-all.ru/3.16/library/allos.html2>3> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.45---67# Службы операционной системы общего назначения89Модули, описанные в этой главе, предоставляют интерфейсы к возможностям операционной системы, доступным (почти) во всех ОС, таким как файлы и часы. Интерфейсы в основном смоделированы по образцу Unix- или C-интерфейсов, но они также доступны и в большинстве других систем. Вот обзор:1011- [`os` – различные интерфейсы операционной системы](https://python-all.ru/3.16/library/os.html)1213 - [Имена файлов, аргументы командной строки и переменные окружения](https://python-all.ru/3.16/library/os.html#file-names-command-line-arguments-and-environment-variables)14 - [Режим UTF-8 в Python](https://python-all.ru/3.16/library/os.html#python-utf-8-mode)15 - [Параметры процесса](https://python-all.ru/3.16/library/os.html#process-parameters)16 - [Создание файловых объектов](https://python-all.ru/3.16/library/os.html#file-object-creation)17 - [Операции с файловыми дескрипторами](https://python-all.ru/3.16/library/os.html#file-descriptor-operations)1819 - [Определение размера терминала](https://python-all.ru/3.16/library/os.html#querying-the-size-of-a-terminal)20 - [Наследование файловых дескрипторов](https://python-all.ru/3.16/library/os.html#inheritance-of-file-descriptors)21 - [Файлы и каталоги](https://python-all.ru/3.16/library/os.html#files-and-directories)2223 - [Файловые дескрипторы таймера](https://python-all.ru/3.16/library/os.html#timer-file-descriptors)24 - [Расширенные атрибуты Linux](https://python-all.ru/3.16/library/os.html#linux-extended-attributes)25 - [Управление процессами](https://python-all.ru/3.16/library/os.html#process-management)26 - [Интерфейс к планировщику](https://python-all.ru/3.16/library/os.html#interface-to-the-scheduler)27 - [Различная системная информация](https://python-all.ru/3.16/library/os.html#miscellaneous-system-information)28 - [Случайные числа](https://python-all.ru/3.16/library/os.html#random-numbers)29- [`io` – Основные инструменты для работы с потоками данных](https://python-all.ru/3.16/library/io.html)3031 - [Обзор](https://python-all.ru/3.16/library/io.html#overview)3233 - [Текстовый ввод/вывод](https://python-all.ru/3.16/library/io.html#text-i-o)34 - [Двоичный ввод/вывод](https://python-all.ru/3.16/library/io.html#binary-i-o)35 - [Необработанный ввод/вывод](https://python-all.ru/3.16/library/io.html#raw-i-o)36 - [Кодировка текста](https://python-all.ru/3.16/library/io.html#text-encoding)3738 - [Добровольное предупреждение о кодировке](https://python-all.ru/3.16/library/io.html#opt-in-encodingwarning)39 - [Интерфейс модуля высокого уровня](https://python-all.ru/3.16/library/io.html#high-level-module-interface)40 - [Иерархия классов](https://python-all.ru/3.16/library/io.html#class-hierarchy)4142 - [Базовые классы ввода/вывода](https://python-all.ru/3.16/library/io.html#i-o-base-classes)43 - [Необработанный файловый ввод/вывод](https://python-all.ru/3.16/library/io.html#raw-file-i-o)44 - [Буферизированные потоки](https://python-all.ru/3.16/library/io.html#buffered-streams)45 - [Текстовый ввод/вывод](https://python-all.ru/3.16/library/io.html#id1)46 - [Статическая типизация](https://python-all.ru/3.16/library/io.html#static-typing)47 - [Производительность](https://python-all.ru/3.16/library/io.html#performance)4849 - [Двоичный ввод/вывод](https://python-all.ru/3.16/library/io.html#id2)50 - [Текстовый ввод/вывод](https://python-all.ru/3.16/library/io.html#id3)51 - [Многопоточность](https://python-all.ru/3.16/library/io.html#multi-threading)52 - [Реентерабельность](https://python-all.ru/3.16/library/io.html#reentrancy)53- [`time` – Доступ ко времени и преобразования](https://python-all.ru/3.16/library/time.html)5455 - [Функции](https://python-all.ru/3.16/library/time.html#functions)56 - [Константы идентификаторов часов](https://python-all.ru/3.16/library/time.html#clock-id-constants)57 - [Константы часовых поясов](https://python-all.ru/3.16/library/time.html#timezone-constants)58- [`logging` – Средство журналирования для Python](https://python-all.ru/3.16/library/logging.html)5960 - [Объекты Logger](https://python-all.ru/3.16/library/logging.html#logger-objects)61 - [Уровни журналирования](https://python-all.ru/3.16/library/logging.html#logging-levels)62 - [Объекты-обработчики](https://python-all.ru/3.16/library/logging.html#handler-objects)63 - [Объекты-форматировщики](https://python-all.ru/3.16/library/logging.html#formatter-objects)64 - [Объекты-фильтры](https://python-all.ru/3.16/library/logging.html#filter-objects)65 - [Объекты LogRecord](https://python-all.ru/3.16/library/logging.html#logrecord-objects)66 - [Атрибуты LogRecord](https://python-all.ru/3.16/library/logging.html#logrecord-attributes)67 - [Объекты LoggerAdapter](https://python-all.ru/3.16/library/logging.html#loggeradapter-objects)68 - [Потокобезопасность](https://python-all.ru/3.16/library/logging.html#thread-safety)69 - [Функции уровня модуля](https://python-all.ru/3.16/library/logging.html#module-level-functions)70 - [Атрибуты уровня модуля](https://python-all.ru/3.16/library/logging.html#module-level-attributes)71 - [Интеграция с модулем warnings](https://python-all.ru/3.16/library/logging.html#integration-with-the-warnings-module)72- [`logging.config` – Конфигурация логирования](https://python-all.ru/3.16/library/logging.config.html)7374 - [Функции конфигурации](https://python-all.ru/3.16/library/logging.config.html#configuration-functions)75 - [Вопросы безопасности](https://python-all.ru/3.16/library/logging.config.html#security-considerations)76 - [Схема конфигурационного словаря](https://python-all.ru/3.16/library/logging.config.html#configuration-dictionary-schema)7778 - [Подробности схемы словаря](https://python-all.ru/3.16/library/logging.config.html#dictionary-schema-details)79 - [Инкрементальная конфигурация](https://python-all.ru/3.16/library/logging.config.html#incremental-configuration)80 - [Соединения объектов](https://python-all.ru/3.16/library/logging.config.html#object-connections)81 - [Пользовательские объекты](https://python-all.ru/3.16/library/logging.config.html#user-defined-objects)82 - [Порядок конфигурации обработчиков](https://python-all.ru/3.16/library/logging.config.html#handler-configuration-order)83 - [Доступ к внешним объектам](https://python-all.ru/3.16/library/logging.config.html#access-to-external-objects)84 - [Доступ к внутренним объектам](https://python-all.ru/3.16/library/logging.config.html#access-to-internal-objects)85 - [Разрешение импорта и пользовательские импортеры](https://python-all.ru/3.16/library/logging.config.html#import-resolution-and-custom-importers)86 - [Настройка QueueHandler и QueueListener](https://python-all.ru/3.16/library/logging.config.html#configuring-queuehandler-and-queuelistener)87 - [Формат файла конфигурации](https://python-all.ru/3.16/library/logging.config.html#configuration-file-format)88- [`logging.handlers` – Обработчики логирования](https://python-all.ru/3.16/library/logging.handlers.html)8990 - [StreamHandler](https://python-all.ru/3.16/library/logging.handlers.html#streamhandler)91 - [FileHandler](https://python-all.ru/3.16/library/logging.handlers.html#filehandler)92 - [NullHandler](https://python-all.ru/3.16/library/logging.handlers.html#nullhandler)93 - [WatchedFileHandler](https://python-all.ru/3.16/library/logging.handlers.html#watchedfilehandler)94 - [BaseRotatingHandler](https://python-all.ru/3.16/library/logging.handlers.html#baserotatinghandler)95 - [RotatingFileHandler](https://python-all.ru/3.16/library/logging.handlers.html#rotatingfilehandler)96 - [TimedRotatingFileHandler](https://python-all.ru/3.16/library/logging.handlers.html#timedrotatingfilehandler)97 - [SocketHandler](https://python-all.ru/3.16/library/logging.handlers.html#sockethandler)98 - [DatagramHandler](https://python-all.ru/3.16/library/logging.handlers.html#datagramhandler)99 - [SysLogHandler](https://python-all.ru/3.16/library/logging.handlers.html#sysloghandler)100 - [NTEventLogHandler](https://python-all.ru/3.16/library/logging.handlers.html#nteventloghandler)101 - [SMTPHandler](https://python-all.ru/3.16/library/logging.handlers.html#smtphandler)102 - [MemoryHandler](https://python-all.ru/3.16/library/logging.handlers.html#memoryhandler)103 - [HTTPHandler](https://python-all.ru/3.16/library/logging.handlers.html#httphandler)104 - [QueueHandler](https://python-all.ru/3.16/library/logging.handlers.html#queuehandler)105 - [QueueListener](https://python-all.ru/3.16/library/logging.handlers.html#queuelistener)106- [`platform` – Доступ к идентифицирующим данным базовой платформы](https://python-all.ru/3.16/library/platform.html)107108 - [Кроссплатформенный](https://python-all.ru/3.16/library/platform.html#cross-platform)109 - [Платформа Windows](https://python-all.ru/3.16/library/platform.html#windows-platform)110 - [Платформа macOS](https://python-all.ru/3.16/library/platform.html#macos-platform)111 - [Платформа iOS](https://python-all.ru/3.16/library/platform.html#ios-platform)112 - [Платформы Unix](https://python-all.ru/3.16/library/platform.html#unix-platforms)113 - [Платформы Linux](https://python-all.ru/3.16/library/platform.html#linux-platforms)114 - [Платформа Android](https://python-all.ru/3.16/library/platform.html#android-platform)115 - [Использование командной строки](https://python-all.ru/3.16/library/platform.html#command-line-usage)116- [`errno` – Стандартные системные символы errno](https://python-all.ru/3.16/library/errno.html)117- [`ctypes` – Библиотека внешних функций для Python](https://python-all.ru/3.16/library/ctypes.html)118119 - [Руководство по ctypes](https://python-all.ru/3.16/library/ctypes.html#ctypes-tutorial)120121 - [Загрузка библиотек динамической компоновки](https://python-all.ru/3.16/library/ctypes.html#loading-dynamic-link-libraries)122 - [Доступ к функциям из загруженных DLL](https://python-all.ru/3.16/library/ctypes.html#accessing-functions-from-loaded-dlls)123 - [Вызов функций](https://python-all.ru/3.16/library/ctypes.html#calling-functions)124 - [Базовые типы данных](https://python-all.ru/3.16/library/ctypes.html#fundamental-data-types)125 - [Вызов функций (продолжение)](https://python-all.ru/3.16/library/ctypes.html#calling-functions-continued)126 - [Вызов функций с переменным числом аргументов](https://python-all.ru/3.16/library/ctypes.html#calling-variadic-functions)127 - [Вызов функций с собственными пользовательскими типами данных](https://python-all.ru/3.16/library/ctypes.html#calling-functions-with-your-own-custom-data-types)128 - [Указание требуемых типов аргументов (прототипы функций)](https://python-all.ru/3.16/library/ctypes.html#specifying-the-required-argument-types-function-prototypes)129 - [Типы возвращаемых значений](https://python-all.ru/3.16/library/ctypes.html#return-types)130 - [Передача указателей (или передача параметров по ссылке)](https://python-all.ru/3.16/library/ctypes.html#passing-pointers-or-passing-parameters-by-reference)131 - [Структуры и объединения](https://python-all.ru/3.16/library/ctypes.html#structures-and-unions)132 - [Размещение структур/объединений, выравнивание и порядок байт](https://python-all.ru/3.16/library/ctypes.html#structure-union-layout-alignment-and-byte-order)133 - [Битовые поля в структурах и объединениях](https://python-all.ru/3.16/library/ctypes.html#bit-fields-in-structures-and-unions)134 - [Массивы](https://python-all.ru/3.16/library/ctypes.html#arrays)135 - [Указатели](https://python-all.ru/3.16/library/ctypes.html#pointers)136 - [Потокобезопасность без GIL](https://python-all.ru/3.16/library/ctypes.html#thread-safety-without-the-gil)137 - [Преобразования типов](https://python-all.ru/3.16/library/ctypes.html#type-conversions)138 - [Неполные типы](https://python-all.ru/3.16/library/ctypes.html#incomplete-types)139 - [Функции обратного вызова](https://python-all.ru/3.16/library/ctypes.html#callback-functions)140 - [Доступ к значениям, экспортируемым из DLL](https://python-all.ru/3.16/library/ctypes.html#accessing-values-exported-from-dlls)141 - [Неожиданности](https://python-all.ru/3.16/library/ctypes.html#surprises)142 - [Типы данных переменного размера](https://python-all.ru/3.16/library/ctypes.html#variable-sized-data-types)143 - [Справочник по ctypes](https://python-all.ru/3.16/library/ctypes.html#ctypes-reference)144145 - [Загрузка общих библиотек](https://python-all.ru/3.16/library/ctypes.html#loading-shared-libraries)146 - [Поиск общих библиотек](https://python-all.ru/3.16/library/ctypes.html#finding-shared-libraries)147 - [Вывод загруженных общих библиотек](https://python-all.ru/3.16/library/ctypes.html#listing-loaded-shared-libraries)148 - [Внешние функции](https://python-all.ru/3.16/library/ctypes.html#foreign-functions)149 - [Прототипы функций](https://python-all.ru/3.16/library/ctypes.html#function-prototypes)150 - [Вспомогательные функции](https://python-all.ru/3.16/library/ctypes.html#utility-functions)151 - [Типы данных](https://python-all.ru/3.16/library/ctypes.html#data-types)152 - [Базовые типы данных](https://python-all.ru/3.16/library/ctypes.html#ctypes-fundamental-data-types-2)153 - [Структурированные типы данных](https://python-all.ru/3.16/library/ctypes.html#structured-data-types)154 - [Массивы и указатели](https://python-all.ru/3.16/library/ctypes.html#arrays-and-pointers)155 - [Исключения](https://python-all.ru/3.16/library/ctypes.html#exceptions)156