fractif-http-0.0.7
توضیحات
Simple, yet elegant, HTTP library. As like as Requests. Actually, it is based on requests package...
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fractif-http-0.0.7 |
| نام | fractif-http |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tom LARGE |
| ایمیل نویسنده | tom@fractif.com |
| آدرس صفحه اصلی | https://github.com/Fractif/fractif-http |
| آدرس اینترنتی | https://pypi.org/project/fractif-http/ |
| مجوز | MIT |
# Fractif HTTP
Simple, yet elegant, HTTP library. As like as Requests.
Actually, it is based on requests package...
```python
from fractifhttp import FractifClient, URL
class Example(FractifClient):
BASEURL = 'https://example.com'
search = URL(r'/search')
api = URL(r'/api/v1')
def __init__(self, debug=True, *args, **kwargs):
super().__init__(self.BASEURL, debug, *args, **kwargs)
self.logger = Logger('example').logger
def get_search(self, query):
self.search.go(params={'q': query})
print(self.soup.title.text)
# Example Domain
def get_api(self):
self.api.go()
print(self.json)
# {'success': True}
```
## Installation
Install fractif-http with pip
```bash
pip install fractif-http
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | bs4 |
| - | user-agent |
| - | coloredlogs |
نحوه نصب
نصب پکیج whl fractif-http-0.0.7:
pip install fractif-http-0.0.7.whl
نصب پکیج tar.gz fractif-http-0.0.7:
pip install fractif-http-0.0.7.tar.gz