Skip to content

Commit

Permalink
Release 0.0.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
vyahello committed May 30, 2020
1 parent 327e8ad commit db785e6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
- "3.7"
- "3.8"
addons:
apt:
Expand Down
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
Versions
========

0.0.0
0.0.1
========

_Release date: 30.05.20_

- Implement unittests
- Demonstrate usage in 'Quick start' section
- Remove python3.6 from applicable versions
- Fix CI always passing
- Implement auth credentials unittests
- Support async HTTP sessions
- Implement async HTTP responses
- Support custom URLs
- Implement auth types
- Introduce initial project template
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
> Provides asynchronous user-friendly micro HTTP client with nothing but clean objects.
> Basically, it is a wrapper over **requests** python library with async/await approach.
> Represents asynchronous version of [urequest](https://github.com/upymake/urequest) package.
## Tools

Expand Down Expand Up @@ -51,14 +52,16 @@ pip install aiorequest
>>> from aiorequest.responses import Response
>>> from aiorequest.urls import HttpUrl
>>>
>>> async def request() -> None:
>>>
>>> async def ioresponse() -> None:
... session: Session
... async with HttpSession() as session:
... response: Response = await session.get(HttpUrl(host="xkcd.com", path="info.0.json"))
... print(await response.is_ok())
... print(await response.as_json())
...
>>> asyncio.run(request())
>>>
>>> asyncio.run(ioresponse())
True
{
"month": "3",
Expand Down
3 changes: 2 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[pytest]
testpaths = tests/
markers =
unit - unit tests marker
unit: unit tests marker
asyncio: for async tests
python_files=*.py
python_functions=test_*
addopts = -rxX
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ def __first_line(string: str, delimiter: str = "\n") -> str:
include_package_data=True,
install_requires=__requirements(),
classifiers=(
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
f"License :: OSI Approved :: {__license} License",
"Operating System :: OS Independent",
),
python_requires=">=3.6",
entry_points={"console_scripts": ("tool = tool.__main__:main",)},
python_requires=">=3.7",
)

0 comments on commit db785e6

Please sign in to comment.