Currently PySUS can instantiate any classes from pysus.ftp.databases package, from the pysus namespace. For example:
However, there are no easy way to obviously get a list of all databases that are accessible via PySUS.
here is what is available in the pysus namespace:
>>> import pysus
>>> pysus.
pysus.ciha pysus.sia
pysus.CIHA() pysus.SIA()
pysus.cnes pysus.sih
pysus.CNES() pysus.SIH()
pysus.data pysus.sim
pysus.ftp pysus.SIM()
pysus.get_version() pysus.sinan
pysus.ibge_datasus pysus.SINAN()
pysus.IBGEDATASUS() pysus.sinasc
pysus.importlib_metadata pysus.SINASC()
pysus.pni pysus.utilities
pysus.PNI() pysus.version
we need an AVAILABLE_DATABASES list in this namespace, that contains all the database classes: [CIHA, SIA, ...] so that we can not only know which are available but also easily pull their description which is part of the class definition.
Currently PySUS can instantiate any classes from pysus.ftp.databases package, from the pysus namespace. For example:
However, there are no easy way to obviously get a list of all databases that are accessible via PySUS.
here is what is available in the pysus namespace:
we need an
AVAILABLE_DATABASESlist in this namespace, that contains all the database classes:[CIHA, SIA, ...]so that we can not only know which are available but also easily pull their description which is part of the class definition.