Skip to content

Global list of available databases. #234

@fccoelho

Description

@fccoelho

Currently PySUS can instantiate any classes from pysus.ftp.databases package, from the pysus namespace. For example:

from pysus import CNES

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions