Skip to main content

authentication for bce service

Project description

Version

v0.0.1

https://img.shields.io/travis/skylothar/requests-bce.svg?style=flat-square https://img.shields.io/coveralls/skylothar/requests-bce/master.svg?style=flat-square https://requires.io/github/SkyLothar/requests-bce/requirements.svg?branch=master Supported Python versions License

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.2.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file requests-bce-0.0.2.tar.gz.

File metadata

  • Download URL: requests-bce-0.0.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for requests-bce-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a6eb0434094f185a82c56ff4d1c58d3ed9cfcb4bf7a37a13279341ef5e47f0fa
MD5 8af716a4ade0130fda0503a3c59319d2
BLAKE2b-256 b1df23051959cde9e3f860dc285c80317a96eac2dc87725fe562f842c87330be

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