Skip to main content

Request builder for testing API

Project description

request_api_builder

Request builder for quick testing API

Use

  1. Import RequestBuilder
from request_api_builder.rab import BuildRequests
  1. Set cookie and base url
BuildRequests.set_cookie(cookie)
BuildRequests.set_base_url(base_url)
  1. Create request
# GET
request_get = RequestBuilder(
    method='get',
    url_template='https://test.com/{id}/another/{another_id}',
    id='123',
    another_id='456',
    query_param_1='value1',
    query_param_2='value2',
)
# POST
request_post = RequestBuilder(
    method='post',
    url_template='https://test.com/{id}/another/{another_id}',
    data={},
    id='123',
    another_id='456',
    query_param_1='value1',
    query_param_2='value2',
)

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

request_api_builder-2.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

request_api_builder-2.0.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file request_api_builder-2.0.4.tar.gz.

File metadata

  • Download URL: request_api_builder-2.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for request_api_builder-2.0.4.tar.gz
Algorithm Hash digest
SHA256 cabd3b237bb4620c8f82c99fe4c1f32fa08ee27c5ef891ba16afe1f76f3b4ec3
MD5 e9297145a2ce49c07eba936b9b9ec9fd
BLAKE2b-256 c81a35efe6308419d7cd0275b646b790fff33815208ce004f1b471e9bb9ba9e4

See more details on using hashes here.

File details

Details for the file request_api_builder-2.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for request_api_builder-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2b7c9603f1444de1a8636899388654c02efe76f1fa03d506ef2755d9d9362fb1
MD5 0d5ffbc4fbcc3844524ca75d597c05ad
BLAKE2b-256 401402bd11eecffe730d2fe4dab5f163588d3c7f5073eee58dbb3d3f210c61d1

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