Plugin to `tshistory` which provides a `view` subcommand to visualize time series from a repository and a flask blueprint
Project description
TSVIEW
Features
This is a tshistory plugin which provides a view
subcommand to the
tsh
command.
It works like this:
$ tsh view postgres://babar:celeste@data_server:5432/
* Running on http://192.168.56.1:5678/ (Press CTRL+C to quit)
192.168.56.1 - - [16/Jun/2017 17:23:25] "GET /tsview HTTP/1.1" 200 -
192.168.56.1 - - [16/Jun/2017 17:23:25] "GET /tsplot? HTTP/1.1" 200 -
At the same time, a browser tab opens, and we can select some series:
For each series we can get it complete history (its versions at a given date range):
This applies also to formulas if you use tshistory_formula !
We also get a browser for the whole history log, by a
slight modification of the url, from http://192.168.56.1:5678/tsview
to http://192.168.56.1:5678/tsviewlog
:
Formula editor tests
Make sure the relevant node modules are there:
$ npm install yargs --exact
$ npm install csv-parse --exact
Run the tests.
$ make validation
elm make --output elm/FormulaParserValidation/tsformula_elm_parser.js --optimize \
elm/FormulaParserValidation/Main.elm
Success!
FormulaParserValidation.Main ───> elm/FormulaParserValidation/tsformula_elm_parser.js
...
--------------------------------------------------------------------------------
test_comma_on_str [OK]
ReturnTypes : Number, Series, Timestamp
Operator selector : Series
Operator : *
Argument
Input operator selector : Number
ExpType : Number = 0.0572
Argument
ExpType : Union[Number, Series]
Operator selector : Series
Operator : series
Argument
ExpType : SearchString = "x"
Options :
OptionalArgument fill
ExpType : Union[String, Number]
ExpType : String = "a b"
OptionalArgument limit
ExpType : Int
OptionalArgument weight
Input operator selector : Number
ExpType : Number
--------------------------------------------------------------------------------
Going into elm/FormulaParserValidation:
$ ./tsformula-elm-parser
tsformula-elm-parser <cmd> [args]
Commands:
tsformula-elm-parser check Check JSON specification
tsformula-elm-parser inspect Inspect JSON specification
tsformula-elm-parser parse [catalog] Parse formula CSV with name, code header
Options:
--version Show version number [boolean]
--spec, -s JSON specification file [required]
--help Show help [boolean]
Missing required argument: spec
You can get the real spec file from http://<instance>/spec
.
You can get the formulas lilst from http://<instance>/downloadformulas
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file tsview-0.18.1-py3-none-any.whl
.
File metadata
- Download URL: tsview-0.18.1-py3-none-any.whl
- Upload date:
- Size: 517.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 873c881cca88ee7787c9e71023e7d841fec65df425dc42499ccea99253feeada |
|
MD5 | 9b0f6f50ecbf5ef9952e1fa53e56bb08 |
|
BLAKE2b-256 | d6940820df1c61173d5fead2ca38d424acc2bd340e538b1c7e23ea6646e0a138 |