Skip to content

Commit

Permalink
feat: Prepare for release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapis0875 committed May 6, 2021
1 parent 0ddafba commit bae916d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# proxy-www.py
Python port of proxy-www (https://github.com/justjavac/proxy-www).
Just purpose of practicing python metaclass and magic method overriding.
I don't think this is practical... but it's fun :rofl:
Implemented additional functionalities!

## How to install
```shell
Expand All @@ -10,7 +9,7 @@ pip install proxy-www

## Example
```py
from proxy_www import www, http, https
from proxy_www import www, http, https, GET

async def some_func():
resp = await www.github.com # Basic proxy_www request
Expand All @@ -23,4 +22,13 @@ async def some_func():
print(req.is_secure) # boolean property indicating proxy_www request object is whether secure(https) or not (http).

path_resp = await www.github.com / 'Lapis0875' # ClassProxy objects (www, http, https) can append paths on url using '/' operator.


# New in 1.1.0 : HTTP methods with [], request parameters with ()
# Syntax : (www,http,https)[HTTPMethod or str](*args, **kwargs)
# Example :
get_req = await (https.api.koreanbots.dev / 'v1/bots/get/541645954256863252')[GET](
headers={"content-type": "application/json"}
)
print(await resp.json())
```
4 changes: 2 additions & 2 deletions proxy_www/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
:license: MIT, see LICENSE for more details.
"""

__title__ = 'proxy_www'
__title__ = 'proxy-www'
__author__ = 'Lapis0875'
__license__ = 'MIT'
__copyright__ = 'Copyright 2020 Lapis0875'
__version__ = '1.0.0'
__version__ = '1.1.0'

from .proxy import www, http, https
from .method import HTTPMethod,\
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Module name
name='proxy-www',
# Module version
version='1.0.1',
version='1.1.0',
# License - MIT!
license='MIT',
# Author (Github username)
Expand Down

0 comments on commit bae916d

Please sign in to comment.