> **Источник:** https://python-all.ru/3.9/library/audit_events.html
>
> «Документация Python на русском» – неофициальный перевод официальной документации Python: версии от 2.6 до 3.16, полнотекстовый поиск, английский оригинал рядом с переводом. Эта Markdown-версия страницы предназначена для работы с LLM: вставьте её в ChatGPT, Claude или Cursor.

---

# Таблица событий аудита

Эта таблица содержит все события, инициируемые вызовами [`sys.audit()`](https://python-all.ru/3.9/library/sys.html#sys.audit) или [`PySys_Audit()`](https://python-all.ru/3.9/c-api/sys.html#c.PySys_Audit) в среде выполнения CPython и стандартной библиотеке. Эти вызовы были добавлены в версии 3.8.0 или позднее (см. [**PEP 578**](https://python-all.ru/3.9/library/audit_events.html)).

См. [`sys.addaudithook()`](https://python-all.ru/3.9/library/sys.html#sys.addaudithook) и [`PySys_AddAuditHook()`](https://python-all.ru/3.9/c-api/sys.html#c.PySys_AddAuditHook) для получения информации об обработке этих событий.

**Особенность реализации CPython:** Эта таблица создана на основе документации CPython и может не отражать события, порождаемые другими реализациями. Обратитесь к документации вашего конкретного времени выполнения для получения списка реальных событий.

| Событие аудита | Аргументы | Ссылки |
| --- | --- | --- |
| array.\_\_new\_\_ | `typecode`, `initializer` | [\[1\]](https://python-all.ru/3.9/library/array.html#array.array) |
| builtins.breakpoint | `breakpointhook` | [\[1\]](https://python-all.ru/3.9/library/functions.html#breakpoint) |
| builtins.id | `id` | [\[1\]](https://python-all.ru/3.9/library/functions.html#id) |
| builtins.input | `prompt` | [\[1\]](https://python-all.ru/3.9/library/functions.html#input) |
| builtins.input/result | `result` | [\[1\]](https://python-all.ru/3.9/library/functions.html#input) |
| code.\_\_new\_\_ | `code`, `filename`, `name`, `argcount`, `posonlyargcount`, `kwonlyargcount`, `nlocals`, `stacksize`, `flags` | [\[1\]](https://python-all.ru/3.9/library/types.html#types.CodeType) |
| compile | `source`, `filename` | [\[1\]](https://python-all.ru/3.9/library/functions.html#compile) |
| cpython.PyInterpreterState\_Clear |  | [\[1\]](https://python-all.ru/3.9/c-api/init.html#c.PyInterpreterState_Clear) |
| cpython.PyInterpreterState\_New |  | [\[1\]](https://python-all.ru/3.9/c-api/init.html#c.PyInterpreterState_New) |
| cpython.\_PySys\_ClearAuditHooks |  | [\[1\]](https://python-all.ru/3.9/c-api/init.html#c.Py_FinalizeEx) |
| cpython.run\_command | `command` | [\[1\]](https://python-all.ru/3.9/using/cmdline.html#cmdoption-c) |
| cpython.run\_file | `filename` | [\[1\]](https://python-all.ru/3.9/using/cmdline.html#audit_event_cpython_run_file_0) |
| cpython.run\_interactivehook | `hook` | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.__interactivehook__) |
| cpython.run\_module | `module-name` | [\[1\]](https://python-all.ru/3.9/using/cmdline.html#cmdoption-m) |
| cpython.run\_startup | `filename` | [\[1\]](https://python-all.ru/3.9/using/cmdline.html#envvar-PYTHONSTARTUP) |
| cpython.run\_stdin |  | [\[1\]](https://python-all.ru/3.9/library/asyncio.html#audit_event_cpython_run_stdin_0)[\[2\]](https://python-all.ru/3.9/using/cmdline.html#audit_event_cpython_run_stdin_1)[\[3\]](https://python-all.ru/3.9/using/cmdline.html#audit_event_cpython_run_stdin_2) |
| ctypes.addressof | `obj` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.addressof) |
| ctypes.call\_function | `func_pointer`, `arguments` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#foreign-functions) |
| ctypes.cdata | `address` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes._CData.from_address) |
| ctypes.cdata/buffer | `pointer`, `size`, `offset` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes._CData.from_buffer)[\[2\]](https://python-all.ru/3.9/library/ctypes.html#ctypes._CData.from_buffer_copy) |
| ctypes.create\_string\_buffer | `init`, `size` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.create_string_buffer) |
| ctypes.create\_unicode\_buffer | `init`, `size` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.create_unicode_buffer) |
| ctypes.dlopen | `name` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.LibraryLoader) |
| ctypes.dlsym | `library`, `name` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.LibraryLoader) |
| ctypes.dlsym/handle | `handle`, `name` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.LibraryLoader) |
| ctypes.get\_errno |  | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.get_errno) |
| ctypes.get\_last\_error |  | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.get_last_error) |
| ctypes.seh\_exception | `code` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#foreign-functions) |
| ctypes.set\_errno | `errno` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.set_errno) |
| ctypes.set\_last\_error | `error` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.set_last_error) |
| ctypes.string\_at | `address`, `size` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.string_at) |
| ctypes.wstring\_at | `address`, `size` | [\[1\]](https://python-all.ru/3.9/library/ctypes.html#ctypes.wstring_at) |
| ensurepip.bootstrap | `root` | [\[1\]](https://python-all.ru/3.9/library/ensurepip.html#ensurepip.bootstrap) |
| exec | `code_object` | [\[1\]](https://python-all.ru/3.9/library/functions.html#eval)[\[2\]](https://python-all.ru/3.9/library/functions.html#exec) |
| fcntl.fcntl | `fd`, `cmd`, `arg` | [\[1\]](https://python-all.ru/3.9/library/fcntl.html#fcntl.fcntl) |
| fcntl.flock | `fd`, `operation` | [\[1\]](https://python-all.ru/3.9/library/fcntl.html#fcntl.flock) |
| fcntl.ioctl | `fd`, `request`, `arg` | [\[1\]](https://python-all.ru/3.9/library/fcntl.html#fcntl.ioctl) |
| fcntl.lockf | `fd`, `cmd`, `len`, `start`, `whence` | [\[1\]](https://python-all.ru/3.9/library/fcntl.html#fcntl.lockf) |
| ftplib.connect | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/ftplib.html#ftplib.FTP.connect) |
| ftplib.sendcmd | `self`, `cmd` | [\[1\]](https://python-all.ru/3.9/library/ftplib.html#ftplib.FTP.sendcmd)[\[2\]](https://python-all.ru/3.9/library/ftplib.html#ftplib.FTP.voidcmd) |
| function.\_\_new\_\_ | `code` | [\[1\]](https://python-all.ru/3.9/library/types.html#types.FunctionType) |
| gc.get\_objects | `generation` | [\[1\]](https://python-all.ru/3.9/library/gc.html#gc.get_objects) |
| gc.get\_referents | `objs` | [\[1\]](https://python-all.ru/3.9/library/gc.html#gc.get_referents) |
| gc.get\_referrers | `objs` | [\[1\]](https://python-all.ru/3.9/library/gc.html#gc.get_referrers) |
| glob.glob | `pathname`, `recursive` | [\[1\]](https://python-all.ru/3.9/library/glob.html#glob.glob)[\[2\]](https://python-all.ru/3.9/library/glob.html#glob.iglob) |
| imaplib.open | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/imaplib.html#imaplib.IMAP4.open) |
| imaplib.send | `self`, `data` | [\[1\]](https://python-all.ru/3.9/library/imaplib.html#imaplib.IMAP4.send) |
| import | `module`, `filename`, `sys.path`, `sys.meta_path`, `sys.path_hooks` | [\[1\]](https://python-all.ru/3.9/reference/simple_stmts.html#import) |
| marshal.dumps | `value`, `version` | [\[1\]](https://python-all.ru/3.9/library/marshal.html#marshal.dump) |
| marshal.load |  | [\[1\]](https://python-all.ru/3.9/library/marshal.html#marshal.load) |
| marshal.loads | `bytes` | [\[1\]](https://python-all.ru/3.9/library/marshal.html#marshal.load) |
| mmap.\_\_new\_\_ | `fileno`, `length`, `access`, `offset` | [\[1\]](https://python-all.ru/3.9/library/mmap.html#mmap.mmap) |
| msvcrt.get\_osfhandle | `fd` | [\[1\]](https://python-all.ru/3.9/library/msvcrt.html#msvcrt.get_osfhandle) |
| msvcrt.locking | `fd`, `mode`, `nbytes` | [\[1\]](https://python-all.ru/3.9/library/msvcrt.html#msvcrt.locking) |
| msvcrt.open\_osfhandle | `handle`, `flags` | [\[1\]](https://python-all.ru/3.9/library/msvcrt.html#msvcrt.open_osfhandle) |
| nntplib.connect | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/nntplib.html#nntplib.NNTP)[\[2\]](https://python-all.ru/3.9/library/nntplib.html#nntplib.NNTP_SSL) |
| nntplib.putline | `self`, `line` | [\[1\]](https://python-all.ru/3.9/library/nntplib.html#nntplib.NNTP)[\[2\]](https://python-all.ru/3.9/library/nntplib.html#nntplib.NNTP_SSL) |
| object.\_\_delattr\_\_ | `obj`, `name` | [\[1\]](https://python-all.ru/3.9/reference/datamodel.html#object.__delattr__) |
| object.\_\_getattr\_\_ | `obj`, `name` | [\[1\]](https://python-all.ru/3.9/reference/datamodel.html#object.__getattribute__) |
| object.\_\_setattr\_\_ | `obj`, `name`, `value` | [\[1\]](https://python-all.ru/3.9/reference/datamodel.html#object.__setattr__) |
| открыт | `file`, `mode`, `flags` | [\[1\]](https://python-all.ru/3.9/library/functions.html#open)[\[2\]](https://python-all.ru/3.9/library/io.html#io.open)[\[3\]](https://python-all.ru/3.9/library/os.html#os.open) |
| os.add\_dll\_directory | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.add_dll_directory) |
| os.chdir | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.chdir)[\[2\]](https://python-all.ru/3.9/library/os.html#os.fchdir) |
| os.chflags | `path`, `flags` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.chflags)[\[2\]](https://python-all.ru/3.9/library/os.html#os.lchflags) |
| os.chmod | `path`, `mode`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.chmod)[\[2\]](https://python-all.ru/3.9/library/os.html#os.fchmod)[\[3\]](https://python-all.ru/3.9/library/os.html#os.lchmod) |
| os.chown | `path`, `uid`, `gid`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.chown)[\[2\]](https://python-all.ru/3.9/library/os.html#os.fchown)[\[3\]](https://python-all.ru/3.9/library/os.html#os.lchown) |
| os.exec | `path`, `args`, `env` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.execl) |
| os.fork |  | [\[1\]](https://python-all.ru/3.9/library/os.html#os.fork) |
| os.forkpty |  | [\[1\]](https://python-all.ru/3.9/library/os.html#os.forkpty) |
| os.fwalk | `top`, `topdown`, `onerror`, `follow_symlinks`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.fwalk) |
| os.getxattr | `path`, `attribute` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.getxattr) |
| os.kill | `pid`, `sig` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.kill) |
| os.killpg | `pgid`, `sig` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.killpg) |
| os.link | `src`, `dst`, `src_dir_fd`, `dst_dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.link) |
| os.listdir | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.listdir) |
| os.listxattr | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.listxattr) |
| os.lockf | `fd`, `cmd`, `len` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.lockf) |
| os.mkdir | `path`, `mode`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.makedirs)[\[2\]](https://python-all.ru/3.9/library/os.html#os.mkdir) |
| os.posix\_spawn | `path`, `argv`, `env` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.posix_spawn)[\[2\]](https://python-all.ru/3.9/library/os.html#os.posix_spawnp) |
| os.putenv | `key`, `value` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.putenv) |
| os.remove | `path`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.remove)[\[2\]](https://python-all.ru/3.9/library/os.html#os.removedirs)[\[3\]](https://python-all.ru/3.9/library/os.html#os.unlink) |
| os.removexattr | `path`, `attribute` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.removexattr) |
| os.rename | `src`, `dst`, `src_dir_fd`, `dst_dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.rename)[\[2\]](https://python-all.ru/3.9/library/os.html#os.renames)[\[3\]](https://python-all.ru/3.9/library/os.html#os.replace) |
| os.rmdir | `path`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.rmdir) |
| os.scandir | `path` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.scandir) |
| os.setxattr | `path`, `attribute`, `value`, `flags` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.setxattr) |
| os.spawn | `mode`, `path`, `args`, `env` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.spawnl) |
| os.startfile | `path`, `operation` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.startfile) |
| os.symlink | `src`, `dst`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.symlink) |
| os.system | `command` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.system) |
| os.truncate | `fd`, `length` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.ftruncate)[\[2\]](https://python-all.ru/3.9/library/os.html#os.truncate) |
| os.unsetenv | `key` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.unsetenv) |
| os.utime | `path`, `times`, `ns`, `dir_fd` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.utime) |
| os.walk | `top`, `topdown`, `onerror`, `followlinks` | [\[1\]](https://python-all.ru/3.9/library/os.html#os.walk) |
| pathlib.Path.glob | `self`, `pattern` | [\[1\]](https://python-all.ru/3.9/library/pathlib.html#pathlib.Path.glob) |
| pathlib.Path.rglob | `self`, `pattern` | [\[1\]](https://python-all.ru/3.9/library/pathlib.html#pathlib.Path.rglob) |
| pdb.Pdb |  | [\[1\]](https://python-all.ru/3.9/library/pdb.html#pdb.Pdb) |
| pickle.find\_class | `module`, `name` | [\[1\]](https://python-all.ru/3.9/library/pickle.html#pickle.Unpickler.find_class) |
| poplib.connect | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/poplib.html#poplib.POP3)[\[2\]](https://python-all.ru/3.9/library/poplib.html#poplib.POP3_SSL) |
| poplib.putline | `self`, `line` | [\[1\]](https://python-all.ru/3.9/library/poplib.html#poplib.POP3)[\[2\]](https://python-all.ru/3.9/library/poplib.html#poplib.POP3_SSL) |
| pty.spawn | `argv` | [\[1\]](https://python-all.ru/3.9/library/pty.html#pty.spawn) |
| resource.prlimit | `pid`, `resource`, `limits` | [\[1\]](https://python-all.ru/3.9/library/resource.html#resource.prlimit) |
| resource.setrlimit | `resource`, `limits` | [\[1\]](https://python-all.ru/3.9/library/resource.html#resource.setrlimit) |
| setopencodehook |  | [\[1\]](https://python-all.ru/3.9/c-api/file.html#c.PyFile_SetOpenCodeHook) |
| shutil.chown | `path`, `user`, `group` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.chown) |
| shutil.copyfile | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.copy)[\[2\]](https://python-all.ru/3.9/library/shutil.html#shutil.copy2)[\[3\]](https://python-all.ru/3.9/library/shutil.html#shutil.copyfile) |
| shutil.copymode | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.copy)[\[2\]](https://python-all.ru/3.9/library/shutil.html#shutil.copymode) |
| shutil.copystat | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.copy2)[\[2\]](https://python-all.ru/3.9/library/shutil.html#shutil.copystat) |
| shutil.copytree | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.copytree) |
| shutil.make\_archive | `base_name`, `format`, `root_dir`, `base_dir` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.make_archive) |
| shutil.move | `src`, `dst` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.move) |
| shutil.rmtree | `path` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.rmtree) |
| shutil.unpack\_archive | `filename`, `extract_dir`, `format` | [\[1\]](https://python-all.ru/3.9/library/shutil.html#shutil.unpack_archive) |
| signal.pthread\_kill | `thread_id`, `signalnum` | [\[1\]](https://python-all.ru/3.9/library/signal.html#signal.pthread_kill) |
| smtplib.connect | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/smtplib.html#smtplib.SMTP.connect) |
| smtplib.send | `self`, `data` | [\[1\]](https://python-all.ru/3.9/library/smtplib.html#smtplib.SMTP) |
| socket.\_\_new\_\_ | `self`, `family`, `type`, `protocol` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket) |
| socket.bind | `self`, `address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket.bind) |
| socket.connect | `self`, `address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket.connect)[\[2\]](https://python-all.ru/3.9/library/socket.html#socket.socket.connect_ex) |
| socket.getaddrinfo | `host`, `port`, `family`, `type`, `protocol` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.getaddrinfo) |
| socket.gethostbyaddr | `ip_address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.gethostbyaddr) |
| socket.gethostbyname | `hostname` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.gethostbyname)[\[2\]](https://python-all.ru/3.9/library/socket.html#socket.gethostbyname_ex) |
| socket.gethostname |  | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.gethostname) |
| socket.getnameinfo | `sockaddr` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.getnameinfo) |
| socket.getservbyname | `servicename`, `protocolname` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.getservbyname) |
| socket.getservbyport | `port`, `protocolname` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.getservbyport) |
| socket.sendmsg | `self`, `address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket.sendmsg) |
| socket.sendto | `self`, `address` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.socket.sendto) |
| socket.sethostname | `name` | [\[1\]](https://python-all.ru/3.9/library/socket.html#socket.sethostname) |
| sqlite3.connect | `database` | [\[1\]](https://python-all.ru/3.9/library/sqlite3.html#sqlite3.connect) |
| subprocess.Popen | `executable`, `args`, `cwd`, `env` | [\[1\]](https://python-all.ru/3.9/library/subprocess.html#subprocess.Popen) |
| sys.\_current\_frames |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys._current_frames) |
| sys.\_getframe |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys._getframe) |
| sys.addaudithook |  | [\[1\]](https://python-all.ru/3.9/c-api/sys.html#c.PySys_AddAuditHook)[\[2\]](https://python-all.ru/3.9/library/sys.html#sys.addaudithook) |
| sys.excepthook | `hook`, `type`, `value`, `traceback` | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.excepthook) |
| sys.set\_asyncgen\_hooks\_finalizer |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.set_asyncgen_hooks) |
| sys.set\_asyncgen\_hooks\_firstiter |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.set_asyncgen_hooks) |
| sys.setprofile |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.setprofile) |
| sys.settrace |  | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.settrace) |
| sys.unraisablehook | `hook`, `unraisable` | [\[1\]](https://python-all.ru/3.9/library/sys.html#sys.unraisablehook) |
| syslog.closelog |  | [\[1\]](https://python-all.ru/3.9/library/syslog.html#syslog.closelog) |
| syslog.openlog | `ident`, `logoption`, `facility` | [\[1\]](https://python-all.ru/3.9/library/syslog.html#syslog.openlog) |
| syslog.setlogmask | `maskpri` | [\[1\]](https://python-all.ru/3.9/library/syslog.html#syslog.setlogmask) |
| syslog.syslog | `priority`, `message` | [\[1\]](https://python-all.ru/3.9/library/syslog.html#syslog.syslog) |
| telnetlib.Telnet.open | `self`, `host`, `port` | [\[1\]](https://python-all.ru/3.9/library/telnetlib.html#telnetlib.Telnet.open) |
| telnetlib.Telnet.write | `self`, `buffer` | [\[1\]](https://python-all.ru/3.9/library/telnetlib.html#telnetlib.Telnet.write) |
| tempfile.mkdtemp | `fullpath` | [\[1\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.TemporaryDirectory)[\[2\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.mkdtemp) |
| tempfile.mkstemp | `fullpath` | [\[1\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.NamedTemporaryFile)[\[2\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.TemporaryFile)[\[3\]](https://python-all.ru/3.9/library/tempfile.html#tempfile.mkstemp) |
| urllib.Request | `fullurl`, `data`, `headers`, `method` | [\[1\]](https://python-all.ru/3.9/library/urllib.request.html#urllib.request.urlopen) |
| webbrowser.open | `url` | [\[1\]](https://python-all.ru/3.9/library/webbrowser.html#webbrowser.open) |
| winreg.ConnectRegistry | `computer_name`, `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.ConnectRegistry) |
| winreg.CreateKey | `key`, `sub_key`, `access` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.CreateKey)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.CreateKeyEx) |
| winreg.DeleteKey | `key`, `sub_key`, `access` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.DeleteKey)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.DeleteKeyEx) |
| winreg.DeleteValue | `key`, `value` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.DeleteValue) |
| winreg.DisableReflectionKey | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.DisableReflectionKey) |
| winreg.EnableReflectionKey | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.EnableReflectionKey) |
| winreg.EnumKey | `key`, `index` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.EnumKey) |
| winreg.EnumValue | `key`, `index` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.EnumValue) |
| winreg.ExpandEnvironmentStrings | `str` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.ExpandEnvironmentStrings) |
| winreg.LoadKey | `key`, `sub_key`, `file_name` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.LoadKey) |
| winreg.OpenKey | `key`, `sub_key`, `access` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.OpenKey) |
| winreg.OpenKey/result | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.CreateKey)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.CreateKeyEx)[\[3\]](https://python-all.ru/3.9/library/winreg.html#winreg.OpenKey) |
| winreg.PyHKEY.Detach | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.PyHKEY.Detach) |
| winreg.QueryInfoKey | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.QueryInfoKey) |
| winreg.QueryReflectionKey | `key` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.QueryReflectionKey) |
| winreg.QueryValue | `key`, `sub_key`, `value_name` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.QueryValue)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.QueryValueEx) |
| winreg.SaveKey | `key`, `file_name` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.SaveKey) |
| winreg.SetValue | `key`, `sub_key`, `type`, `value` | [\[1\]](https://python-all.ru/3.9/library/winreg.html#winreg.SetValue)[\[2\]](https://python-all.ru/3.9/library/winreg.html#winreg.SetValueEx) |

Следующие события генерируются внутренне и не соответствуют ни одному публичному API CPython:

| Событие аудита | Аргументы |
| --- | --- |
| \_winapi.CreateFile | `file_name`, `desired_access`, `share_mode`, `creation_disposition`, `flags_and_attributes` |
| \_winapi.CreateJunction | `src_path`, `dst_path` |
| \_winapi.CreateNamedPipe | `name`, `open_mode`, `pipe_mode` |
| \_winapi.CreatePipe |  |
| \_winapi.CreateProcess | `application_name`, `command_line`, `current_directory` |
| \_winapi.OpenProcess | `process_id`, `desired_access` |
| \_winapi.TerminateProcess | `handle`, `exit_code` |
| ctypes.PyObj\_FromPtr | `obj` |
