Skip to main content

No project description provided

Project description

Easy HTTP Requests

usage

from easy_http_requests.easy_http_request import EasyHttpRequest

# Create an instance of EasyHttpRequests
easy_http_requests = EasyHttpRequest()

# GET request
response = easy_http_requests.get('https://jsonplaceholder.typicode.com/posts')

print(response.status_code)

# POST request
response = easy_http_requests.post('https://jsonplaceholder.typicode.com/posts', data={'title': 'foo', 'body': 'bar', 'userId': 1})

# PUT request
response = easy_http_requests.put('https://jsonplaceholder.typicode.com/posts/1', data={'title': 'foo', 'body': 'bar', 'userId': 1})

# DELETE request
response = easy_http_requests.delete('https://jsonplaceholder.typicode.com/posts/1')

print(response.status_code)

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

easy_http_requests-0.5.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

easy_http_requests-0.5.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file easy_http_requests-0.5.0.tar.gz.

File metadata

  • Download URL: easy_http_requests-0.5.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for easy_http_requests-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f5ea2acaee7ae1aeea811c244d731020450d6df8e80646199d0f4b389c2c498f
MD5 05017b1fb4cd372e333f2c9b8a0ad53d
BLAKE2b-256 de1312fd89ec4f7c03a76f8bf9581737770ae01f1843211dfea325833438d1a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for easy_http_requests-0.5.0.tar.gz:

Publisher: pypi_publish.yml on UltraViolet33/easy-http-requests

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file easy_http_requests-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easy_http_requests-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e97c912bd54d4b7d3e6f6a484bf5e536b676bff82a730479660032e0096427cb
MD5 a2fef4fdc738a59b090d3b610bc1ab44
BLAKE2b-256 61db9517cf6bdde10f5296a7f267d212a5f65b56195f744a2c2b492acc58ab7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for easy_http_requests-0.5.0-py3-none-any.whl:

Publisher: pypi_publish.yml on UltraViolet33/easy-http-requests

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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