Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for snakifit 0.0.1b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snakifit 0.0.1b0
File Size Uploaded
snakifit-0.0.1b0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snakifit 0.0.1b0
File Interpreter ABI Platform
snakifit-0.0.1b0-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / snakifit-0.0.1b0.tar.gz

Download URL snakifit-0.0.1b0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6f0aa057d498f7d920c0fb3bcef2f32f2bf0c57d7b332fa99b186d49bce35728
BLAKE2b-256 checksum
How to use checksums
1433bcd42aa1f6e341ff78e7919b82926b1ebce25938be3462df2f527458cc95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / snakifit-0.0.1b0-py3-none-any.whl

Download URL snakifit-0.0.1b0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a62801eff9005d5f2c4600e7eaec647719985d8001b09c3c838bd730dbfbb54d
BLAKE2b-256 checksum
How to use checksums
7b81d8379555aae401adb818afc2a367eacdde7cfcb586d67034b80228bf48e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

0.0.1b0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page