Skip to main content

Version

v0.0.4

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]>

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for requests-bce-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a65d770b58478895e11a589cee310b414798aec5523f1a27f8265cf1e5846af0
MD5 f53eb6d86026de982ce989e3f9a9e35f
BLAKE2b-256 bb9f7d0bbbc477582da6c8dc800e3b637ef21049fab1ec4a27f7ea4e232dae18

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page