musicfox / pycmc

A Python interface for the chartmetric.com API
MIT License
21 stars 2 forks source link

[Feature]: Query Builder, Query, and Query Exception Classes #29

Open thinkjrs opened 3 years ago

thinkjrs commented 3 years ago

Is your feature request related to a problem? Please describe. Each endpoint uses a chain of functions, which, after months of scrappy use and rapid prototyping, throw some side effects and occasionally spit errors.

This is sub-optimal in production environments, as consistency and reasonable error propagation are necessities.

Describe the solution you'd like I'd like to see a class for each query request with proper error encapsulation. This will likely need a query exceptions class, in tandem.

Objectives:

Describe alternatives you've considered The semi-"functional" approach we take now is frustrating to use.