-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI doesn't have a caching strategy #17
Comments
I'm new here, but I can work on this. Does this entail just adding a CLI command to do essentially what is in the README (and already written in Python, just not the CLI)? |
There are a few parts to this:
Hope that helps! Let me know if you run into any issues when getting set up. |
Thanks Galen! I've done these things (correctly, I hope) and made a PR (#21). Could you look over it and let me know if it needs changes? |
* add cli caching, will read from timezone.json or --grid argument * update output in test_executable_without_args * update find_sun to use cached timezone_grid.json * Bump minor version number --------- Co-authored-by: Galen Reich <[email protected]>
At the moment the CLI recomputes the grid of timezones (the most expensive part of the computation) every time it is executed. Which makes the process very slow if a user calls shadowfinder multiple times.
Instead it would be good if a user could provide a path to a timezone json file.
It would also be good if there was a subcommand to generate the timezone file.
The end result would be something like:
shadowfinder generate_timezone_grid # creates timezone_grid.json in the working directory (or the given path?) shadowfinder find 10 5 2024-02-29 13:59:59 --time_format=utc --grid=timezone_grid.json
The text was updated successfully, but these errors were encountered: