mitogen/docs/internals.rst

209 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
Pollers
=======
.. currentmodule:: mitogen.core
.. autoclass:: Poller
:members:
.. currentmodule:: mitogen.parent
.. autoclass:: KqueuePoller
.. currentmodule:: mitogen.parent
.. autoclass:: EpollPoller
.. currentmodule:: mitogen.parent
.. autoclass:: PollPoller
Latch
=====
2018-02-28 16:15:35 +00:00
.. currentmodule:: mitogen.core
.. autoclass:: Latch
:members:
2018-02-28 16:15:35 +00:00
PidfulStreamHandler
===================
.. currentmodule:: mitogen.core
.. autoclass:: PidfulStreamHandler
:members:
2018-02-28 16:15:35 +00:00
Side
====
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
======
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:
2017-09-29 14:52:43 +00:00
.. currentmodule:: mitogen.core
.. autoclass:: IoLogger
2017-09-15 06:24:41 +00:00
:members:
.. currentmodule:: mitogen.core
2017-09-29 14:52:43 +00:00
.. autoclass:: Waker
2017-09-15 06:24:41 +00:00
:members:
Importer
========
.. currentmodule:: mitogen.core
.. autoclass:: Importer
:members:
2017-09-15 06:24:41 +00:00
ModuleResponder
2018-10-31 15:08:27 +00:00
===============
.. currentmodule:: mitogen.master
.. autoclass:: ModuleResponder
:members:
RouteMonitor
============
2018-10-31 15:06:28 +00:00
.. currentmodule:: mitogen.parent
.. autoclass:: RouteMonitor
:members:
TimerList
=========
.. currentmodule:: mitogen.parent
.. autoclass:: TimerList
:members:
Timer
=====
.. currentmodule:: mitogen.parent
.. autoclass:: Timer
:members:
Forwarder
=========
.. currentmodule:: mitogen.parent
.. autoclass:: ModuleForwarder
:members:
ExternalContext
===============
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
Process
=======
2017-09-15 06:24:41 +00:00
.. currentmodule:: mitogen.parent
.. autoclass:: Process
:members:
Helpers
=======
Blocking I/O
------------
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
Subprocess 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
Helpers
-------
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>`.