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
Async Functionality & Object-Oriented Representation #14
Conversation
robertjkeck2
commented
Apr 25, 2018
- Implements aiohttp and asyncio in a very simple manner to allow for asynchronous operations when faced with multiple Item IDs.
- Gives the user the ability to expand Item IDs into Item objects when using the get_item or get_user methods
- Gives the user the ability to see raw JSON representation of the *_stories methods instead of the Item object representation.
- Gives the user the ability to filter by item_type when using the get_items_by_ids method
… of items), expanded object option for get_user and get_item (converts all resultant IDs to Item objects), added item_type filter to get_items_by_ids
Looks like the async functions aren't working in the Travis build. Any ideas here? |
hey, thank you very much for the PR. I am extremely busy with my work, so please give me a day and I will review this over the weekend 😅 |
@avinassh I appreciate it. Some thoughts: Using asyncio drops coverage for python2. Using f strings drops everything but python3.6. Is that ok with you or do you want to try to keep backwards compatibility? Also, I got rid of the get_all endpoint because it takes a very long time to run AND it's probably irresponsible to scrape all of HN with the size it is now. Thoughts? |
Also, @avinassh sorry for the multiple TravisCI builds. I was having trouble setting up a dev environment that worked with async. Should be good to go with the updated .travis.yml now. |
We will do a new release with major version number and I don't really mind losing python 2 support. I am fine with using F strings too. I would still keep As far travis builds, its okay! feel free to experiment! |
@avinassh when testing the |
@robertjkeck2 I haven't. Also, can you let me know by bumping this thread when PR is ready? if everything works except |
@avinassh PR is ready. We can deal with the |
Looks fine to me. Merging and making a major release |