Package: aiorequest
aioRequestProvides asynchronous user-friendly micro HTTP client with nothing but clean objects.Basically, it is a wrapper overrequestspython library with async/await approach.
Represents asynchronous version ofurequestpackage.ToolsProductionpython 3.7, 3.8asynciolibraryrequestslibraryDevelopmenttravisCIpytestblackmypypylintflake8pydocstyleinterrogatebatsUsageInstallationpipinstallaiorequest
✨🍰✨Quick start>>>importasyncio>>>fromtypingimportTuple>>>fromaiorequest.sessionsimportSession,HttpSession>>>fromaiorequest.responsesimportHTTPStatus,Response,JsonType>>>fromaiorequest.urlsimportHttpUrl>>>>>>>>>asyncdefaioresponse()->Tuple[HTTPStatus,JsonType]:...session:Session...asyncwithHttpSession()assession:...response:Response=awaitsession.get(...HttpUrl(host="xkcd.com",path="info.0.json")...)...returnawaitresponse.status(),awaitresponse.as_json()......>>>>>>asyncio.run(aioresponse())(<HTTPStatus.OK:200>,{"month":"3","num":2284,"link":"","year":"2020","news":"","safe_title":"Sabotage","transcript":"","img":"https://imgs.xkcd.com/comics/sabotage.png","title":"Sabotage","day":"23",})Source codegitclonegit@github.com:aiopymake/aiorequest.git
pythonsetup.pyinstallOr using specific release:pipinstallgit+https://github.com/aiopymake/aiorequest@0.0.1Local debuggitclonegit@github.com:aiopymake/aiorequest.git>>>importaiorequest>>>aiorequest.__doc__'Package provides asynchronous user-friendly HTTP client with clean objects.'⬆ back to topDevelopment notesTestingGenerally,pytesttool is used to organize testing procedure.Please follow next command to run unittests:pytestCIProject has Travis CI integration using.travis.ymlfile thus code analysis (black,pylint,flake8,mypy,pydocstyleandinterrogate) and unittests (pytest) will be run automatically after every made change to the repository.To be able to run code analysis, please execute command below:./analyse-source-code.shThe package is also covered with the installation unit tests based onbatsframework. Please run the following command to launch package unit tests:bats--prettytest-package.batsPACKAGE_NAMEandPACKAGE_VERSIONenvironment variables should be specified prelimirary.Release notesPlease checkchangelogfile to get more details about actual versions and it's release notes.MetaAuthor –Volodymyr Yahello. Please checkAUTHORSfile for all contributors.Distributed under theMITlicense. SeeLICENSEfor more information.You can reach out me at:vyahello@gmail.comhttps://twitter.com/vyahellohttps://www.linkedin.com/in/volodymyr-yahello-821746127ContributingI would highly appreciate any contribution and support. If you are interested to add your ideas into project please follow next simple steps:Clone the repositoryConfiguregitfor the first time after cloning with yournameandemailpip install -r requirements.txtto install all project dependenciespip install -r requirements-dev.txtto install all development project dependenciesCreate your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestWhat's nextAll recent activities and ideas are described at projectissuespage.
If you have ideas you want to change/implement please do not hesitate and create an issue.⬆ back to top