Request for default
Project description
requests-default
Info
This set default requests <https://docs.python-requests.org/en/latest/>
_'s url
, headers
etc...
from requests_base import DefaultSession
session = DefaultSession(base_url='https://example.com/resource/', headers={'api-key': 'aabbcc'})
r = session.get('sub-resource/', params={'foo': 'bar'})
print(r.request.url)
License
Distributed under the terms of the MIT license, pytest is free and open source software.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requests-default-0.1.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for requests_default-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1564ca090ff71daa8fb5418d1fc52e6435c5da40eba4671f8d002e52323f99b4 |
|
MD5 | da562ce542e00600414c2e0cefc5e679 |
|
BLAKE2b-256 | a63d9800a3a4f7668b5e5d9cc8d696e93d8f17970aca91212ccd2add8dbba5bb |