xls.py 484 B

123456789101112131415161718192021222324252627282930313233343536
  1. # import config
  2. import excel
  3. import typer
  4. app = typer.Typer()
  5. # cfg = config.Config()
  6. @app.command()
  7. def convert(folder: str):
  8. excel.convert(folder)
  9. @app.command()
  10. def csv_export(folder: str):
  11. excel.convert_folder(folder)
  12. @app.command()
  13. def dimension(filename: str):
  14. print(filename)
  15. @app.command()
  16. def refresh(filename: str):
  17. excel.refresh(filename)
  18. @app.command()
  19. def split(filename: str):
  20. excel.split(filename)
  21. if __name__ == "__main__":
  22. app()