main.py 575 B

12345678910111213141516171819202122232425
  1. import typer
  2. from commands.fincas import update_fincas_console as update_fincas
  3. from commands.measures import (
  4. delete_measures,
  5. get_measures,
  6. import_json_dump,
  7. import_measures,
  8. import_range,
  9. )
  10. from commands.runserver import runserver
  11. typer_app = typer.Typer()
  12. typer_app.command()(runserver)
  13. typer_app.command()(import_measures)
  14. typer_app.command()(import_range)
  15. typer_app.command()(get_measures)
  16. typer_app.command()(delete_measures)
  17. typer_app.command()(import_json_dump)
  18. typer_app.command()(update_fincas)
  19. if __name__ == "__main__":
  20. typer_app()