zepiaf / hydroqc

Hydro Quebec API wrapper.
MIT License
9 stars 4 forks source link

Code refactor and simplification #30

Closed zepiaf closed 2 years ago

zepiaf commented 2 years ago

Tried to simplify and refactor the code

Event is now a class Period is now a class

Both are accessed as objects (ie event.date) and can be dumped as dict (event.to_dict())

zepiaf commented 2 years ago

@mdallaire @clauderobi and anyone else :)

Please review, so we can get the code more readable and flexible

mdallaire commented 2 years ago

Looks good to me!