meilisearch-python
meilisearch-python copied to clipboard
API resource output as class to utilize dot notation for attributes
Pull Request
What does this PR do?
Fixes #508
PR checklist
Please check if your PR fulfills the following requirements:
- [X] Does this PR fix an existing issue?
- [X] Have you read the contributing guidelines?
- [X] Have you made sure that the title is accurate and descriptive of the changes?
Thank you so much for contributing to Meilisearch!
Thanks for the feedback @alallema. Just made a few changes
A note on the changes: document model allows for attributes to be accessed like document.title or document.poster. Class attributes are added based on keys from the dictionary that's passed in.
bors merge