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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file requests-default-0.1.1.tar.gz.

File metadata

  • Download URL: requests-default-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.2.0

File hashes

Hashes for requests-default-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c5ee4b7ad3359eb530c1d64c0ee76cf52a5fac03ec4adfdcd8758314f918e802
MD5 769f6927fe715f292b914ef7b1afc77a
BLAKE2b-256 3c8bdbda45466c24a4fd2cd8f1e80cfa1e772d1b94c8cf2fb11320df711bfdf7

See more details on using hashes here.

File details

Details for the file requests_default-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: requests_default-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.2.0

File hashes

Hashes for requests_default-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1564ca090ff71daa8fb5418d1fc52e6435c5da40eba4671f8d002e52323f99b4
MD5 da562ce542e00600414c2e0cefc5e679
BLAKE2b-256 a63d9800a3a4f7668b5e5d9cc8d696e93d8f17970aca91212ccd2add8dbba5bb

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