Skip to content

Add AVAILABLE_DATABASES registry for database discovery #235

Open
felipeadeildo wants to merge 3 commits intoAlertaDengue:mainfrom
felipeadeildo:main
Open

Add AVAILABLE_DATABASES registry for database discovery #235
felipeadeildo wants to merge 3 commits intoAlertaDengue:mainfrom
felipeadeildo:main

Conversation

@felipeadeildo
Copy link
Contributor

Closes #234

The changes includes:

  • Add AVAILABLE_DATABASES list to pysus namespace containing all 9 database classes
  • Replace wildcard imports with explicit imports in pysus.ftp.databases.__init__.py
  • Add a test suite (9 tests) for database registry functionality
  • Update README with usage example

Users can now programmatically discover all available databases:

from pysus import AVAILABLE_DATABASES

for db_cls in AVAILABLE_DATABASES:
    db = db_cls()
    print(f"{db.name}: {db.metadata['long_name']}")

@fccoelho fccoelho requested review from fccoelho and luabida February 17, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global list of available databases.

2 participants

Comments