pyp.system package
Submodules
pyp.system.db_comm module
pyp.system.local_run module
pyp.system.logging module
pyp.system.mongo_handler module
-
class MongoFormatter(fmt=None, datefmt=None, style='%', validate=True)[source]
Bases: logging.Formatter
-
format(record)[source]
Format exception object as a string
-
class MongoHandler(collection, db='mongolog', host='localhost', port=None, username=None, password=None, level=0)[source]
Bases: logging.Handler
Custom log handler
Logs all messages to a mongo collection. This handler is
designed to be used with the standard python logging mechanism.
-
emit(record)[source]
Store the record to the collection. Async insert
-
classmethod to(collection, db='mongolog', host='localhost', port=None, username=None, password=None, level=0)[source]
Create a handler for a given
pyp.system.mpi module
pyp.system.project_params module
pyp.system.set_up module
pyp.system.singularity module
pyp.system.slurm module
pyp.system.user_comm module
pyp.system.utils module
pyp.system.wrapper_functions module
Module contents