equinor / webviz-config

Make Dash applications from a user-friendly config file :book: :snake:
https://github.com/orgs/equinor/projects/24
MIT License
55 stars 39 forks source link

Programmatic API #200

Open oyvindeide opened 4 years ago

oyvindeide commented 4 years ago

It would be nice to have a programmatic API where it would be possible to pass a dict instead of a yaml. Would require moving the yaml parsing closer to the entry point, and modification to https://github.com/equinor/webviz-config/blob/8aa9a6c54b8c419d8f5de581357fd42de49dabb6/webviz_config/_write_script.py#L12 and https://github.com/equinor/webviz-config/blob/8aa9a6c54b8c419d8f5de581357fd42de49dabb6/webviz_config/_config_parser.py#L158

anders-kiaer commented 3 years ago

Related to this:

Would also be useful for the program using the API to ask for webviz not automatically open in a browser, as well as return instance information (url, port, one time token) such that the consumer can choose to open the instance at a later time.