{ } Raw JSON

bundles / astropy 7.0.1 / astropy / extern / configobj / configobj / SimpleVal

class

astropy.extern.configobj.configobj:SimpleVal

source: /astropy/extern/configobj/configobj.py :2368

Signature

class   SimpleVal ( )

Members

Summary

A simple validator. Can be used to check that all members expected are present.

Extended Summary

To use it, provide a configspec with all your members in (the value given will be ignored). Pass an instance of SimpleVal to the validate method of your ConfigObj. validate will return True if all members are present, or a dictionary with True/False meaning present/missing. (Whole missing sections will be replaced with False)

Aliases

  • astropy.config.configuration.configobj.SimpleVal