All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
- Updated
requestsand its dependencies.
- Changed versioning of previous version (was
1.1.7) to1.2.0, making this change1.2.1.
- Updated
urllib3.
- Added new logger message in crontabber.py when creating new cron jobs.
- Added new exception
config.ShutdownDisabledfor when shutdown scripts are disabled. - Added new function
is_shutdown_time_int()sure that shutdown time hour and minute are bothint.
- Moved main script contents of process.py into new function
main().
- #5 - Fixed duplicating shutdown cron jobs even when disabled in the configuration.
- Updated
urllib3.
- Rewrote parts of the readme to improve clarity.
- The code has been linted with
Flake8andmypy. - Any instance of
class Error(Exception)was removed and replaced in favor of other exceptions. (e.g.ValueError) In other words, any subclassedErrors now subclass a different exception. - In config.py:
- Synced changes from my skeleton git repo.
- Both custom errors
InvalidConfigErrorandTimeErrornow subclassValueErrorrather thanError, which was itself a subclass ofException. MAX_HandMAX_Mwere marked private, as_MAX_Hand_MAX_Mrespectively.
- In process.py: Fixed
failsafebeing mis-assigned; it was incorrectly assignedconfig['failsafe']when it was meant to beconfig.CONF['failsafe']. - In remove.py: Fixed invalid
modein
- Updated
pyyamlandlxmlfor dependabot alerts.
- Fixed issue with remove.py treating
switch_onjobs asswitch_offto remove
- Minor code changes: relative paths are accepted for
envin config.yaml provided thatenvis withinroot
- Use
RotatingFileHandlerfor logs - Minor code polish
- On/off scripts are now called by
cding into the scripts' root and executing from there - Replaced all
asserts andAssertionErrors with more Pythonic checks StreamLoggerset toINFO- Removed and/or replaced duplicating
prints with logging
crontabber.AutoConfigError- error when registering auto-scripts
- Configuration missing errors on auto-scripts
conf[shutdown][remove]now dictates whether shutdown/switch_offscripts should be added- logger level for whether to add shutdown scripts is now
inforather thanwarning
envissue on auto-scripts- Exceptions not grouped
- New crontabber.py to manage the
crontablibrary - New remove.py to auto-remove cron jobs
- Can now register cron jobs programmatically; simply call
crontabber.pyas main- Will register both process.py and remove.py
- Failsafe implemented in config, if API cannot be reached
- Configuration is now stored in config.py to be accessible by all new files
- Initial version