Metadata-Version: 2.1
Name: fractif-http
Version: 0.0.6
Summary: Simple, yet elegant, HTTP library. As like as Requests. Actually, it is based on requests package...
Home-page: https://github.com/Fractif/fractif-http
Author: Tom LARGE
Author-email: tom@fractif.com
License: MIT
Keywords: http
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown


# 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('/search')
    api = URL('/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
```


