Skip to main content

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


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)

Uploaded Source

Built Distribution

requests_default-0.1.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page