0 purchases
requestsmiddlewarealihmac 0.1.3
requests_middleware_ali_hmac
requests_middleware_ali_hmac demo
import requests
from requests_middleware import MiddlewareHTTPAdapter
from requests_middleware_ali_hmac import AliHmacGenerate
session = requests.Session()
middlewares = [
AliHmacGenerate("testid", "testsecret"),
]
adapter = MiddlewareHTTPAdapter(middlewares)
session.mount('http://', adapter)
session.mount('https://', adapter)
allow requests methods "GET", "POST", "PUT", "DELETE", "PATCH"
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.