Skip to content

fengb3/Snakifit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

pip install snakifit

Usage

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))

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages