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
|
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Pollers
|
|
|
|
=======
|
2018-12-19 20:19:35 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. autoclass:: Poller
|
2019-03-09 00:21:25 +00:00
|
|
|
:members:
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.parent
|
|
|
|
.. autoclass:: KqueuePoller
|
2018-12-19 20:19:35 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.parent
|
|
|
|
.. autoclass:: EpollPoller
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.parent
|
2019-03-09 00:21:25 +00:00
|
|
|
.. autoclass:: PollPoller
|
2018-12-19 20:19:35 +00:00
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Latch
|
|
|
|
=====
|
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
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
PidfulStreamHandler
|
|
|
|
===================
|
2018-08-18 13:15:37 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. autoclass:: PidfulStreamHandler
|
|
|
|
:members:
|
2018-03-18 12:31:24 +00:00
|
|
|
|
2018-02-28 16:15:35 +00:00
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Side
|
|
|
|
====
|
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
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Stream
|
|
|
|
======
|
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:
|
|
|
|
|
2017-09-29 14:52:43 +00:00
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. autoclass:: IoLogger
|
2017-09-15 06:24:41 +00:00
|
|
|
:members:
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
.. currentmodule:: mitogen.core
|
2017-09-29 14:52:43 +00:00
|
|
|
.. autoclass:: Waker
|
2017-09-15 06:24:41 +00:00
|
|
|
:members:
|
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Importer
|
|
|
|
========
|
2017-10-03 13:48:43 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. autoclass:: Importer
|
|
|
|
:members:
|
|
|
|
|
2017-09-15 06:24:41 +00:00
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
ModuleResponder
|
2018-10-31 15:08:27 +00:00
|
|
|
===============
|
2018-02-11 18:00:38 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.master
|
|
|
|
.. autoclass:: ModuleResponder
|
|
|
|
:members:
|
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
RouteMonitor
|
|
|
|
============
|
2018-10-31 15:06:28 +00:00
|
|
|
|
|
|
|
.. currentmodule:: mitogen.parent
|
|
|
|
.. autoclass:: RouteMonitor
|
|
|
|
:members:
|
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
TimerList
|
|
|
|
=========
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.parent
|
|
|
|
.. autoclass:: TimerList
|
|
|
|
:members:
|
|
|
|
|
|
|
|
|
|
|
|
Timer
|
|
|
|
=====
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.parent
|
|
|
|
.. autoclass:: Timer
|
|
|
|
:members:
|
|
|
|
|
|
|
|
|
|
|
|
Forwarder
|
|
|
|
=========
|
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:
|
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
ExternalContext
|
|
|
|
===============
|
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
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Process
|
|
|
|
=======
|
2017-09-15 06:24:41 +00:00
|
|
|
|
2018-11-02 12:56:13 +00:00
|
|
|
.. currentmodule:: mitogen.parent
|
2019-03-09 00:21:25 +00:00
|
|
|
.. autoclass:: Process
|
2018-11-02 12:56:13 +00:00
|
|
|
:members:
|
2017-09-21 11:34:03 +00:00
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Helpers
|
|
|
|
=======
|
|
|
|
|
|
|
|
Blocking I/O
|
|
|
|
------------
|
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
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Subprocess 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
|
|
|
|
|
|
|
|
2019-03-09 00:21:25 +00:00
|
|
|
Helpers
|
|
|
|
-------
|
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>`.
|