Skip to main content

configurable module framework and utilties based on Tornado Web Server

Project description


Documentation Status License: MIT PyPI version

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

  • - Mar. 20, 2020:

  • 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.

Files for hostray, version
Filename, size File type Python version Upload date Hashes
Filename, size hostray- (74.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hostray- (49.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page