Skip to content
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

Dynamically generate request methods #27

Open
ErikBoesen opened this issue Jan 26, 2021 · 0 comments
Open

Dynamically generate request methods #27

ErikBoesen opened this issue Jan 26, 2021 · 0 comments

Comments

@ErikBoesen
Copy link
Owner

One big issue with how I designed this package initially is that I hardcoded every method, even though there were clear patterns, for example many methods were repeated several times for different domains, and each endpoint often had to support several HTTP verbs (GET, POST, etc). It would be nice to do some fancy Pythonic code-generation so they wouldn't all be hardcoded.

That said, I'd prefer to entirely restructure the way requests are built so we don't have one big class with all the methods, as explained in #14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant