Skip to main content

prints the HTTP status code of either the default url or the url provided by the user

Project description

http-status-example

This is a test to learn Python packaging with setuptools.

Action

The script prints the HTTP status code of either the default url or the url provided by the user.

Usage

from http_status_example.run import get_request

get_request.py(url)

License

MIT License. See LICENSE for details.

Exceptions

requests.exceptions.HTTPError

requests.exceptions.ConnectionError

requests.exceptions.Timeout

requests.exceptions.RequestException

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

http_status_example-1.0.6.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

http_status_example-1.0.6-py3-none-any.whl (3.6 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