Skip to main content

PyHiAPI - Simple test API

Project description

# pyhiapi

The API that just says hi!

A very simple API endpoint, easily deployable for testing purposes.

## Installation

sudo pip install pyhiapi

## Usage

hiapi [-h] [-b BIND] [-p PORT] [-c CODE]

optional arguments:

-b BIND, –bind-address BIND -p PORT, –port PORT -c CODE, –response_code CODE

hiapi defaults to localhost:4000 and a 200 OK response.

## Testing

You can just curl the service, perhaps like this:

$ curl -i http://localhost:4000/

HTTP/1.0 200 OK Content-Type: text/html; charset=utf-8 Content-Length: 4 Server: Werkzeug/0.9.6 Python/2.7.8 Date: Fri, 23 Jan 2015 03:38:14 GMT

Hi!

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

pyhiapi-0.1.5.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

pyhiapi-0.1.5-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file pyhiapi-0.1.5.tar.gz.

File metadata

  • Download URL: pyhiapi-0.1.5.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyhiapi-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b8eaa314c4739a0cc1a258135ce4c237c923a2893389a797aa14db901ce251db
MD5 96edc3d3c708691267eecaf05e707d75
BLAKE2b-256 e35a5243c263493834aac5888135e8be867124abfcd88712a86f1a251287ca0f

See more details on using hashes here.

File details

Details for the file pyhiapi-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pyhiapi-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pyhiapi-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 36fdc7bbf11fb1156817e965a98188f1b1cef48b3ecb7f4440e0ea55ee4a96af
MD5 8de405f83db52c4f6860da052c065cf1
BLAKE2b-256 7a610973a936d36a0cb44d0805527a0078fcf5bd3d9bb32154a9b26e218f64fe

See more details on using hashes here.

Supported by

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