Rewrites some of the configuration inputs so that instead of the config filing taking a section called "canned_queries" and "getters_and_setters", as well as having a "command_readers" section for other Command Readers or new/custom Command Readers, all Command Readers now are done the same way, under the "command_readers" section.
Also did the same thing for hooks, so all hooks and command readers can be passed in just inside the "hooks" and "command_readers" section of the config.
Also made the main Cereal init just take the different sections of the config directly, instead of being passed in a dictionary, and parsing those. (i.e. Cereal(command_readers=blah, hooks=blah, encoding=blah, etc))
Created a subclass of Cereal called MockSerial that can take the exact configuration format of pre 0.9.0 GRANOLA, but will issue deprecation warnings and tell people to switch over to Cereal instead.
Description
"canned_queries"
and"getters_and_setters"
, as well as having a"command_readers"
section for other Command Readers or new/custom Command Readers, all Command Readers now are done the same way, under the"command_readers"
section."hooks"
and"command_readers"
section of the config.Cereal(command_readers=blah, hooks=blah, encoding=blah, etc)
)Cereal
calledMockSerial
that can take the exact configuration format of pre 0.9.0 GRANOLA, but will issue deprecation warnings and tell people to switch over toCereal
instead.Type of Change
Checklist
Google
format for all the methods and classes that I used.