configurable module framework and utilties based on Tornado Web Server
Project description
hostray
hostray is a pure python project adding simple, scalable, and configurable module framework and utilties to opensource web frameworks. It's currently based on Tornado Web Server
prerequest: python 3.6+, pip
Install hostray with pip: pip install hostray
Hello world
create a minimal runable server project:
- In command prompt, create a project named hello:
python3 -m hostray create hello
- Start the project:
python3 -m hostray start hello
- Open Browser views the response of hello api, http://localhost:8888/hello
- To stop server, press ctrl+c in the command prompt
Read documentation for more information (still updating...)
Change log
-
0.7.5.1 - Mar. 20, 2020:
- Add missing dependency, requests
-
0.7.5 - Mar. 20, 2020:
- Use aiohttp for sending requests asynchronously.
- Set logger level to Error when debug set to false in server_config.yaml.
- Method dispose() of component classes become awaitable.
- Add certification authority 'ca' parameter for ssl settings in server_config.yaml.
- Fix bugs.
-
0.7.3 - Dec. 31, 2019:
-
Bug Fix:
- Arcpath (path in compressed file) might be incorrect when packing projects.
- Changing test server port in unittest of hostray library to avoid conflict with default port 8888
- The 'required' parameter of ConfigValidator classes does not work properly in all cases.
-
-
0.7.2 - Dec. 8, 2019:
- Initalizing github project.
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
Built Distribution
File details
Details for the file hostray-0.7.5.1.tar.gz
.
File metadata
- Download URL: hostray-0.7.5.1.tar.gz
- Upload date:
- Size: 49.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.19.5 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c7a27a38fbc66037992e5731d62b79101664b6511b8f78f13793b5f11f3a4d97
|
|
MD5 |
38766fb81352bc14d678630208e3ad2a
|
|
BLAKE2b-256 |
cac40b293095eeb104131980ac02e5da6fa17c34c4ee3fb7a1824a78dc8ed80c
|
File details
Details for the file hostray-0.7.5.1-py3-none-any.whl
.
File metadata
- Download URL: hostray-0.7.5.1-py3-none-any.whl
- Upload date:
- Size: 74.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.19.5 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d16c4763b1bbae650894952b019d1e720f1c830d0bc3433c242083b2487b5ab6
|
|
MD5 |
4dfe146e7e0890f0a66aaeab74048a41
|
|
BLAKE2b-256 |
7eddc6aaf04f0410565b8521060183443b4c81baed56cace72615e04ae74572e
|