Skip to main content

requests middleware for generate signature amap apistore

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requests-middleware-ali-hmac-0.1.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

requests_middleware_ali_hmac-0.1.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file requests-middleware-ali-hmac-0.1.3.tar.gz.

File metadata

  • Download URL: requests-middleware-ali-hmac-0.1.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.12

File hashes

Hashes for requests-middleware-ali-hmac-0.1.3.tar.gz
Algorithm Hash digest
SHA256 247534336a073e63849fe9b9fc4a34d31147689202c039cb75dc3e0001ca2c37
MD5 da345a067ea977d1a88b939b0d875981
BLAKE2b-256 ba4c435e21b023d8dd3157fbf45a9064f50105b0497eb75ce6e135f1323e4efa

See more details on using hashes here.

File details

Details for the file requests_middleware_ali_hmac-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: requests_middleware_ali_hmac-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.6.12

File hashes

Hashes for requests_middleware_ali_hmac-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cdcb7cdb871fd295475ab3057c5eef26113e602da8bbd11ca7f2507d86de3cd9
MD5 d590d7da7ad45d7241ebec3973f1dc7b
BLAKE2b-256 5eaff92e63a35b1f7200af655fbbc3b3e313ee3dba7aa8c76aa2e74b22594d85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page