File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- __all__ = ["cli" , "download" , "list" ]
1+ __all__ = ["cli" , "download" , "list" , "version" ]
22__version__ = "2023.11.4"
33
44
Original file line number Diff line number Diff line change 1- __all__ = ["download" , "list" ]
1+ __all__ = ["download" , "list" , "version" ]
22
33
44# standard library
1010# dependencies
1111import pandas as pd
1212from fire import Fire
13+ from packaging .version import Version
1314from requests import get
1415from tqdm import tqdm
1516from . import __version__
@@ -103,6 +104,17 @@ def list(format: str = DEFAULT_LIST_FORMAT) -> Any:
103104 return getattr (DATA_LIST , f"to_{ format } " )()
104105
105106
107+ def version () -> Version :
108+ """Show the version of the package."""
109+ return Version (__version__ )
110+
111+
106112def main () -> None :
107113 """Entry point of the deshima-rawdata command."""
108- Fire ({"download" : download , "list" : list })
114+ Fire (
115+ {
116+ "download" : download ,
117+ "list" : list ,
118+ "version" : version ,
119+ }
120+ )
You can’t perform that action at this time.
0 commit comments