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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| snakifit-0.0.1b0.tar.gz | 3.3 kB | Without provenance | Details for snakifit-0.0.1b0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snakifit-0.0.1b0-py3-none-any.whl | Python 3 | none | any | Details for snakifit-0.0.1b0-py3-none-any.whl |
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
|
Security for snakifit 0.0.1b0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.