PyHiAPI - Simple test API
Project description
# pyhiapi
A very simple API endpoint, easily deployable for testing purposes
## Installation
sudo pip install pyhiapi
## Usage
usage: hi.py [-h] [-b BIND] [-p PORT] [-c CODE]
optional arguments:
-h, --help show this help message and exit
-b BIND, --bind-address BIND
-p PORT, --port PORT
-c CODE, --response_code CODE
hiapi defaults to `localhost:4000`, and responds with 200s.
## 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!
A very simple API endpoint, easily deployable for testing purposes
## Installation
sudo pip install pyhiapi
## Usage
usage: hi.py [-h] [-b BIND] [-p PORT] [-c CODE]
optional arguments:
-h, --help show this help message and exit
-b BIND, --bind-address BIND
-p PORT, --port PORT
-c CODE, --response_code CODE
hiapi defaults to `localhost:4000`, and responds with 200s.
## 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.4.tar.gz
(1.6 kB
view details)
Built Distribution
File details
Details for the file pyhiapi-0.1.4.tar.gz
.
File metadata
- Download URL: pyhiapi-0.1.4.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8782e36df648ff93aa6c58401f7ae669c9d7f5a798198deefec79fecf5c6012 |
|
MD5 | 0904a839c3a290b9e8fc1d2ec64272b9 |
|
BLAKE2b-256 | 824427de35d7dc6cef694ba2d6252829f0515e51ba29f1f6327629799d7c11a9 |
File details
Details for the file pyhiapi-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pyhiapi-0.1.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b3d4db3fd1f558790b668795c686f30c7355df793df9d12eeada999ebb015fb |
|
MD5 | 798a4a8621ee1b7353a169fbc83c3ebf |
|
BLAKE2b-256 | 5880e07f92ead251cf03480f7a8ffa92be55ad68f1d4ea0657135495cee02140 |