pycapio.internals — low-level primitives¶
This subpackage re-exports the raw CAPIO building blocks from the native extension. The page below lists what is available; the behaviour of each symbol is documented from the C++ sources in Native API.
Low-level CAPIO primitives re-exported from the native extension.
This subpackage exposes the raw building blocks that the high-level
pycapio proxies are built on top of. Import it when you need to write
custom I/O modules that talk to the CAPIO server directly:
from pycapio.internals import *
All names below are defined in the compiled extension
pycapio._pycapio; this module simply curates the subset that is safe and
useful for downstream code, and is documented in detail under Native API.
Exported names:
CAPIO_DEFAULT_APP_NAMEDefault application name used when none is supplied.
CAPIO_DEFAULT_WORKFLOW_NAMEDefault workflow name used when none is supplied.
pycapio_get_capio_dirReturn the active CAPIO directory.
pycapio_initInitialise CAPIO and start/attach to the server.
pycapio_mkdirCreate a directory inside the CAPIO directory.
pycapio_openOpen a CAPIO-managed file and return its descriptor.
pycapio_teardownTear down CAPIO (optionally stopping the server).
DirEntryA single entry yielded while scanning a CAPIO directory.
PyCapioBinaryIOWrapperFile-like wrapper for binary CAPIO streams.
PyCapioScandirWrapperIterator over the contents of a CAPIO directory.
PyCapioTextIOWrapperFile-like wrapper for text CAPIO streams.
FILE_MODESMapping of POSIX open-flag names to their integer values.
- pycapio.internals.pycapio_get_capio_dir(*args, **kwargs)
- pycapio.internals.pycapio_init(*args, **kwargs)
- pycapio.internals.pycapio_mkdir(*args, **kwargs)
- pycapio.internals.pycapio_open(*args, **kwargs)
- pycapio.internals.pycapio_teardown(*args, **kwargs)
- class pycapio.internals.DirEntry
Bases:
object
- class pycapio.internals.PyCapioBinaryIOWrapper
Bases:
object
- class pycapio.internals.PyCapioScandirWrapper
Bases:
object
- class pycapio.internals.PyCapioTextIOWrapper
Bases:
object