Metadata-Version: 2.1
Name: snakifit
Version: 0.0.1b0
Summary: A python http client library inspired by Retrofit, Refit
Home-page: https://github.com/fengb3/http-client-py
Author: fengb3
Author-email: your.email@example.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: urllib3

## Installation

```sh
pip install snakifit
```

## Usage

```python

from snakifit.http_client import *

@http_host(base_url="http://localhost:5049")
class MyHttpApiHost:
    
    @http_get('/WeatherForecast/{city}')
    def get_weather_by_city(self, city: str, days:int) -> dict:
        pass
    
    @http_get('/WeatherForecast/all')
    def get_all_weather_forecast(self, city: str, days:int) -> dict:
        pass
    
    @http_post('/WeatherForecast/{city}')
    def create_weather_forecast(self, city: str, days:int) -> dict:
        pass

api = MyHttpApiHost()
print(api.get_weather_by_city("shanghai", 3))
```
