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

[Feature Request] Add Enums of queryable/selectable attributes for Messages/Folders/Contacts/etc. #283

Open
matthewgdv opened this issue Jul 29, 2019 · 0 comments

Comments

@matthewgdv
Copy link

Hi there,

This should be pretty simple request, but it may be a bit annoying and time-consuming.

Basically, it would be dead useful if there were Enums provided in the library so that users could use autocompletion tools (e.g. Jedi) to get a list of attributes that can go into the Query.on_attribute() method, rather than having to sift through the docs to find out what they are.

In particular, there are funny rules about which attributes are allowed in filter clauses, which can lead to a lot of trial and error. This would be avoided if there was, for example, a FilterableMessageAttribute Enum, which only had as its members the attributes that the REST API accepts for filter clauses.

That said, as a starting point, even just simple MessageAttribute, ContactAttribute, MessageFolderAttribute, etc. Enums would increase the utility of the library by a lot.

Would be cool to see something like this implemented, but I totally get it if there are greater priorities.

Cheers for the awesome library!

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

No branches or pull requests

2 participants