prereise.cli package¶
Subpackages¶
- prereise.cli.data_sources package
- Subpackages
- prereise.cli.data_sources.tests package
- Submodules
- prereise.cli.data_sources.tests.conftest module
- prereise.cli.data_sources.tests.test_data_source module
- prereise.cli.data_sources.tests.test_demand_data module
- prereise.cli.data_sources.tests.test_hydro_data module
- prereise.cli.data_sources.tests.test_solar_data module
- prereise.cli.data_sources.tests.test_wind_data module
- Module contents
- prereise.cli.data_sources.tests package
- Submodules
- prereise.cli.data_sources.data_source module
- prereise.cli.data_sources.demand_data module
- prereise.cli.data_sources.exceptions module
- prereise.cli.data_sources.hydro_data module
- prereise.cli.data_sources.solar_data module
- prereise.cli.data_sources.wind_data module
- Module contents
- Subpackages
- prereise.cli.download package
- prereise.cli.tests package
Submodules¶
prereise.cli.constants module¶
prereise.cli.helpers module¶
- prereise.cli.helpers.add_data_source_to_download_parser(data_source, subparsers)[source]¶
Helper function that adds an additional source of data that the user can interact with and download via the command line tool
- Parameters:
data_source (prereise.cli.data_sources.data_source.DataSource) – an instance of a class that implements the abstract class DataSource
subparsers (argparse.ArgumentParser) – subparser object that implements command line interface functionality
- prereise.cli.helpers.validate_date(date_string)[source]¶
Helper function to validate date strings
- Parameters:
date_string (str) – date in string format to be validated
- Returns:
(str) – validated date string