Metadata-Version: 2.1
Name: tsview
Version: 0.19.0
Summary: Plugin to `tshistory` which provides a `view` subcommand to visualize time series
Home-page: https://hg.sr.ht/~pythonian/tsview
Author: Pythonian
Author-email: aurelien.campeas@pythonian.fr,andre.espaze@pythonian.fr,arnaud.campeas@pythonian.frauguste.pezin@pythonian.fr
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Database
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Version Control
Classifier: Topic :: Scientific/Engineering :: Visualization
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: flask ==2.3.3
Requires-Dist: werkzeug
Requires-Dist: flask-caching
Requires-Dist: pytest-sa-pg
Requires-Dist: tshistory >=0.19.4
Requires-Dist: plotly <6.0
Requires-Dist: tshistory-formula >=0.15

# Formula editor tests

Make sure the relevant node modules are there:

```shell
 $ npm install yargs --exact
 $ npm install csv-parse --exact
```

Run the tests.

```shell
 $ 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:

```shell
 $ ./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`.
