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
|
|
|
|
2018-08-18 15:11:18 +00:00
|
|
|
Constants
|
|
|
|
=========
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. autodata:: CHUNK_SIZE
|
|
|
|
|
|
|
|
|
2018-02-28 16:15:35 +00:00
|
|
|
Latch Class
|
2018-08-18 13:15:37 +00:00
|
|
|
===========
|
2018-02-28 16:15:35 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
2018-08-18 13:15:37 +00:00
|
|
|
.. autoclass:: Latch
|
|
|
|
:members:
|
2018-02-28 16:15:35 +00:00
|
|
|
|
|
|
|
|
2018-08-18 13:15:37 +00:00
|
|
|
PidfulStreamHandler Class
|
|
|
|
=========================
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. autoclass:: PidfulStreamHandler
|
|
|
|
:members:
|
2018-03-18 12:31:24 +00:00
|
|
|
|
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
|
2018-11-02 12:56:13 +00:00
|
|
|
.. 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
|
2018-11-02 12:56:13 +00:00
|
|
|
.. autoclass:: BasicStream
|
|
|
|
:members:
|
2017-09-15 06:24:41 +00:00
|
|
|
|
2018-03-24 10:08:06 +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:
|
|
|
|
|
2018-02-13 14:14:26 +00:00
|
|
|
.. 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:
|
|
|
|
|
|
|
|
|
2018-05-14 17:28:05 +00:00
|
|
|
Poller Class
|
2018-10-31 15:08:27 +00:00
|
|
|
============
|
2018-05-14 17:28:05 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. autoclass:: Poller
|
2018-11-02 12:56:13 +00:00
|
|
|
:members:
|
2018-05-14 17:28:05 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.parent
|
|
|
|
.. autoclass:: KqueuePoller
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.parent
|
|
|
|
.. autoclass:: EpollPoller
|
|
|
|
|
|
|
|
|
2017-10-03 13:48:43 +00:00
|
|
|
Importer Class
|
2018-10-31 15:08:27 +00:00
|
|
|
==============
|
2017-10-03 13:48:43 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. autoclass:: Importer
|
|
|
|
:members:
|
|
|
|
|
2017-09-15 06:24:41 +00:00
|
|
|
|
2018-02-11 18:00:38 +00:00
|
|
|
Responder Class
|
2018-10-31 15:08:27 +00:00
|
|
|
===============
|
2018-02-11 18:00:38 +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:
|
|
|
|
|
|
|
|
|
2018-02-11 18:00:38 +00:00
|
|
|
Forwarder Class
|
2018-10-31 15:08:27 +00:00
|
|
|
===============
|
2018-02-11 18:00:38 +00:00
|
|
|
|
2018-02-13 14:14:26 +00:00
|
|
|
.. currentmodule:: mitogen.parent
|
2018-02-11 18:00:38 +00:00
|
|
|
.. 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
|
2018-11-02 12:56:13 +00:00
|
|
|
.. autoclass:: ExternalContext
|
|
|
|
:members:
|
2017-09-29 14:52:43 +00:00
|
|
|
|
2017-09-15 06:24:41 +00:00
|
|
|
|
|
|
|
mitogen.master
|
2017-09-21 11:34:03 +00:00
|
|
|
==============
|
2017-09-15 06:24:41 +00:00
|
|
|
|
2018-11-02 12:56:13 +00:00
|
|
|
.. currentmodule:: mitogen.parent
|
|
|
|
.. autoclass:: ProcessMonitor
|
|
|
|
:members:
|
2017-09-21 11:34:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
Blocking I/O Functions
|
2018-08-18 13:33:55 +00:00
|
|
|
======================
|
2017-09-21 11:34:03 +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
|
2017-09-21 11:34:03 +00:00
|
|
|
|
|
|
|
|
2018-08-18 13:33:55 +00:00
|
|
|
Subprocess Creation Functions
|
|
|
|
=============================
|
2017-09-21 11:34:03 +00:00
|
|
|
|
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
|
2018-08-18 13:15:37 +00:00
|
|
|
================
|
2017-09-15 06:24:41 +00:00
|
|
|
|
2017-09-29 14:52:43 +00:00
|
|
|
.. currentmodule:: mitogen.core
|
2018-08-18 13:15:37 +00:00
|
|
|
.. 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
|
2017-09-21 11:34:03 +00:00
|
|
|
|
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>`.
|