Skip to content

Data layer APIs of diploma project(based on psutil and thriftpy)

License

Notifications You must be signed in to change notification settings

streethacker/koenig

Repository files navigation

Koenig

'koenig'

Bundle of APIs, used to monitor system's operational parameters, namely, CPU, MEMORY, DISK, NETWORK IO and SYSTEM USERS statistic.

Thanks to psutil, I could managed to keep the APIs simple enough. The whole project will contain 3 parts, Koenig is one of them:

  • Koenig is a bundle of data service APIs, running as a server in the whole system;

  • Agera is a bundle of web APIs, which implemented by Flask, running as a client;

  • Wheels is a fore-end project, mostly implemented by Angular JS;

Apart from psutil, another important open source library is thriftpy. Thriftpy is a pure python implementation of Apache Thrift in a pythonic way, which is open sourced by Eleme.

Quick Start

Installation

Install as developer

$ make develop

Install as package

$ make install

More options

$ make help

Development

Run server

$ k-server

Several APIs need to run with sudo, otherwise ACCESS_DENIED exception would be raised. Therefore, maybe you should run the server with sudo specified

$ sudo k-server

Run client

$ k-client

About

Data layer APIs of diploma project(based on psutil and thriftpy)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published