# {py:mod}`phystool.config` ```{py:module} phystool.config ``` ```{autodoc2-docstring} phystool.config :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`MyConfigParser ` - * - {py:obj}`DatabaseConfig ` - ```{autodoc2-docstring} phystool.config.DatabaseConfig :summary: ``` * - {py:obj}`GeneralConfig ` - ```{autodoc2-docstring} phystool.config.GeneralConfig :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`config ` - ```{autodoc2-docstring} phystool.config.config :summary: ``` * - {py:obj}`LOGGER_BOTH ` - ```{autodoc2-docstring} phystool.config.LOGGER_BOTH :summary: ``` * - {py:obj}`LOGGER_FILE ` - ```{autodoc2-docstring} phystool.config.LOGGER_FILE :summary: ``` * - {py:obj}`LOGGER_ALCHEMY ` - ```{autodoc2-docstring} phystool.config.LOGGER_ALCHEMY :summary: ``` * - {py:obj}`LOGGING_CONFIG ` - ```{autodoc2-docstring} phystool.config.LOGGING_CONFIG :summary: ``` ```` ### API ```{py:exception} ConfigurationError(*args) :canonical: phystool.config.ConfigurationError Bases: {py:obj}`ValueError` ``` ```{py:exception} CEMissingConf(*args) :canonical: phystool.config.CEMissingConf Bases: {py:obj}`phystool.config.ConfigurationError` ``` ```{py:exception} CEUndefinedDb(*args) :canonical: phystool.config.CEUndefinedDb Bases: {py:obj}`phystool.config.ConfigurationError` ``` ```{py:exception} CEDbDirNotFound(db_name: str, db_dir: pathlib.Path) :canonical: phystool.config.CEDbDirNotFound Bases: {py:obj}`phystool.config.ConfigurationError` ``` ```{py:exception} CEDbConfNotFound(*args) :canonical: phystool.config.CEDbConfNotFound Bases: {py:obj}`phystool.config.ConfigurationError` ``` ```{py:exception} CEGitClone(*args) :canonical: phystool.config.CEGitClone Bases: {py:obj}`phystool.config.ConfigurationError` ``` ```{py:exception} CEKey(*args) :canonical: phystool.config.CEKey Bases: {py:obj}`phystool.config.ConfigurationError` ``` ```{py:exception} CEPdbType(*args) :canonical: phystool.config.CEPdbType Bases: {py:obj}`phystool.config.ConfigurationError` ``` ```{py:exception} CEDocumentclass(*args) :canonical: phystool.config.CEDocumentclass Bases: {py:obj}`phystool.config.ConfigurationError` ``` `````{py:class} MyConfigParser() :canonical: phystool.config.MyConfigParser Bases: {py:obj}`configparser.ConfigParser` ````{py:method} load() -> None :canonical: phystool.config.MyConfigParser.load ```{autodoc2-docstring} phystool.config.MyConfigParser.load ``` ```` ````{py:method} setup_db(db_name: str) -> None :canonical: phystool.config.MyConfigParser.setup_db ```{autodoc2-docstring} phystool.config.MyConfigParser.setup_db ``` ```` ````{py:method} get_db_list() -> list[str] :canonical: phystool.config.MyConfigParser.get_db_list ```{autodoc2-docstring} phystool.config.MyConfigParser.get_db_list ``` ```` ````{py:method} new_pdb_filename() -> str :canonical: phystool.config.MyConfigParser.new_pdb_filename ```{autodoc2-docstring} phystool.config.MyConfigParser.new_pdb_filename ``` ```` ````` `````{py:class} DatabaseConfig(name: str, conf: configparser.SectionProxy) :canonical: phystool.config.DatabaseConfig ```{autodoc2-docstring} phystool.config.DatabaseConfig ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} phystool.config.DatabaseConfig.__init__ ``` ````{py:method} template(uuid: uuid.UUID) -> str :canonical: phystool.config.DatabaseConfig.template ```{autodoc2-docstring} phystool.config.DatabaseConfig.template ``` ```` ````` `````{py:class} GeneralConfig() :canonical: phystool.config.GeneralConfig ```{autodoc2-docstring} phystool.config.GeneralConfig ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} phystool.config.GeneralConfig.__init__ ``` ````{py:method} reload() -> None :canonical: phystool.config.GeneralConfig.reload ```{autodoc2-docstring} phystool.config.GeneralConfig.reload ``` ```` ````` ````{py:data} config :canonical: phystool.config.config :value: > 'GeneralConfig(...)' ```{autodoc2-docstring} phystool.config.config ``` ```` ````{py:data} LOGGER_BOTH :canonical: phystool.config.LOGGER_BOTH :value: > None ```{autodoc2-docstring} phystool.config.LOGGER_BOTH ``` ```` ````{py:data} LOGGER_FILE :canonical: phystool.config.LOGGER_FILE :value: > None ```{autodoc2-docstring} phystool.config.LOGGER_FILE ``` ```` ````{py:data} LOGGER_ALCHEMY :canonical: phystool.config.LOGGER_ALCHEMY :value: > None ```{autodoc2-docstring} phystool.config.LOGGER_ALCHEMY ``` ```` ````{py:data} LOGGING_CONFIG :canonical: phystool.config.LOGGING_CONFIG :value: > None ```{autodoc2-docstring} phystool.config.LOGGING_CONFIG ``` ````