authentication for bce service
Project description
BCE authentication for the awesome requests!
support auth version: v1
- [x] BCM
How to Install
Just
pip install requests-bce
How to Use
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]>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size requests-bce-0.0.2.tar.gz (9.4 kB) | File type Source | Python version None | Upload date | Hashes View hashes |