v0.0.4
support auth version: v1
- [x] BCM
Just
pip install requests-bce
Just pass the auth object to requests
>>> import requests
>>> from bceauth import AuthV1
>>> req = requests.post(
... "http://example.com/path/to/file",
... auth=AuthV1("access-key", "secret-key")
... )
<Response [200]>
Or set the auth attribute to the session object
>>> import requests
>>> from bceauth import AuthV1
>>> session = requests.session()
>>> session.auth = AuthV1("access-key", "secret-key")
>>> req = session.get("http://example.com/path/to/file")
<Response [200]>