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