mitogen/docs/internals.rst

191 lines
3.0 KiB
ReStructuredText
Raw Normal View History

2017-09-15 06:24:41 +00:00
Internal API Reference
**********************
2018-05-04 02:47:29 +00:00
.. toctree::
:hidden:
signals
2017-09-15 06:24:41 +00:00
Constants
=========
.. currentmodule:: mitogen.core
.. autodata:: CHUNK_SIZE
2018-02-28 16:15:35 +00:00
Latch Class
===========
2018-02-28 16:15:35 +00:00
.. currentmodule:: mitogen.core
.. autoclass:: Latch
:members:
2018-02-28 16:15:35 +00:00
PidfulStreamHandler Class
=========================
.. currentmodule:: mitogen.core
.. autoclass:: PidfulStreamHandler
:members:
2018-02-28 16:15:35 +00:00
2017-09-15 06:24:41 +00:00
Side Class
2018-10-31 15:08:27 +00:00
==========
2017-09-15 06:24:41 +00:00
2017-09-29 14:52:43 +00:00
.. currentmodule:: mitogen.core
.. autoclass:: Side
:members:
2017-09-15 06:24:41 +00:00
Stream Classes
2018-10-31 15:08:27 +00:00
==============
2017-09-15 06:24:41 +00:00
2017-09-29 14:52:43 +00:00
.. currentmodule:: mitogen.core
.. autoclass:: BasicStream
:members:
2017-09-15 06:24:41 +00:00
.. autoclass:: Stream
:members:
.. currentmodule:: mitogen.fork
2017-09-29 14:52:43 +00:00
.. autoclass:: Stream
2017-09-15 06:24:41 +00:00
:members:
.. currentmodule:: mitogen.parent
2017-09-29 14:52:43 +00:00
.. autoclass:: Stream
2017-09-15 06:24:41 +00:00
:members:
2017-09-29 14:52:43 +00:00
.. currentmodule:: mitogen.ssh
.. autoclass:: Stream
:members:
.. currentmodule:: mitogen.sudo
.. autoclass:: Stream
2017-09-15 06:24:41 +00:00
:members:
Other Stream Subclasses
2018-10-31 15:08:27 +00:00
=======================
2017-09-15 06:24:41 +00:00
2017-09-29 14:52:43 +00:00
.. currentmodule:: mitogen.core
.. autoclass:: IoLogger
2017-09-15 06:24:41 +00:00
:members:
2017-09-29 14:52:43 +00:00
.. autoclass:: Waker
2017-09-15 06:24:41 +00:00
:members:
Poller Class
2018-10-31 15:08:27 +00:00
============
.. currentmodule:: mitogen.core
.. autoclass:: Poller
:members:
.. currentmodule:: mitogen.parent
.. autoclass:: KqueuePoller
.. currentmodule:: mitogen.parent
.. autoclass:: EpollPoller
Importer Class
2018-10-31 15:08:27 +00:00
==============
.. currentmodule:: mitogen.core
.. autoclass:: Importer
:members:
2017-09-15 06:24:41 +00:00
Responder Class
2018-10-31 15:08:27 +00:00
===============
.. currentmodule:: mitogen.master
.. autoclass:: ModuleResponder
:members:
2018-10-31 15:06:28 +00:00
RouteMonitor Class
2018-10-31 15:08:27 +00:00
==================
2018-10-31 15:06:28 +00:00
.. currentmodule:: mitogen.parent
.. autoclass:: RouteMonitor
:members:
Forwarder Class
2018-10-31 15:08:27 +00:00
===============
.. currentmodule:: mitogen.parent
.. autoclass:: ModuleForwarder
:members:
2017-09-15 06:24:41 +00:00
ExternalContext Class
2018-10-31 15:08:27 +00:00
=====================
2017-09-15 06:24:41 +00:00
2017-09-29 14:52:43 +00:00
.. currentmodule:: mitogen.core
.. autoclass:: ExternalContext
:members:
2017-09-29 14:52:43 +00:00
2017-09-15 06:24:41 +00:00
mitogen.master
==============
2017-09-15 06:24:41 +00:00
.. currentmodule:: mitogen.parent
.. autoclass:: ProcessMonitor
:members:
Blocking I/O Functions
2018-08-18 13:33:55 +00:00
======================
These functions exist to support the blocking phase of setting up a new
context. They will eventually be replaced with asynchronous equivalents.
2018-08-18 13:33:55 +00:00
.. currentmodule:: mitogen.parent
.. autofunction:: discard_until
.. autofunction:: iter_read
.. autofunction:: write_all
2018-08-18 13:33:55 +00:00
Subprocess Creation Functions
=============================
2018-08-18 13:33:55 +00:00
.. currentmodule:: mitogen.parent
.. autofunction:: create_child
.. autofunction:: hybrid_tty_create_child
.. autofunction:: tty_create_child
2017-09-15 06:24:41 +00:00
Helper Functions
================
2017-09-15 06:24:41 +00:00
2017-09-29 14:52:43 +00:00
.. currentmodule:: mitogen.core
.. autofunction:: to_text
.. autofunction:: has_parent_authority
.. autofunction:: set_cloexec
.. autofunction:: set_nonblock
.. autofunction:: set_block
.. autofunction:: io_op
2017-09-29 14:52:43 +00:00
2018-08-18 14:16:12 +00:00
.. currentmodule:: mitogen.parent
.. autofunction:: close_nonstandard_fds
.. autofunction:: create_socketpair
2017-09-18 09:20:41 +00:00
2017-09-29 14:52:43 +00:00
.. currentmodule:: mitogen.master
2018-08-18 13:33:55 +00:00
.. autofunction:: get_child_modules
2018-07-08 21:00:00 +00:00
.. currentmodule:: mitogen.minify
2018-08-18 13:33:55 +00:00
.. autofunction:: minimize_source
2018-05-04 02:47:29 +00:00
Signals
=======
:ref:`Please refer to Signals <signals>`.