authentication for bce service
Project description
Version
v0.0.1
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.
Source Distribution
requests-bce-0.0.1.tar.gz
(5.2 kB
view details)
File details
Details for the file requests-bce-0.0.1.tar.gz.
File metadata
- Download URL: requests-bce-0.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d9757b312788280b8f5018454daa4c77dfe28681237d4e06819ce4a52e19abd
|
|
| MD5 |
2c2eefe0a037b3cfab28914a79cfb998
|
|
| BLAKE2b-256 |
bb9124bc61c0d707b8d0b330dd406a63a2d0531fb92423c7c5e972fa05447525
|