semvec/pypi-packages huggingface dataset:
requests-middleware-add-hmac 0.1.0
requests middleware for generate signature amap apistore
License: MIT
Requires Python: >=3.4.0

#requests-middleware-add-hmac
###requests-middleware-add-hmac demo
```python
import requests
from requests_middleware import MiddlewareHTTPAdapter
from ali_hmac_generate 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"