Open scls19fr opened 4 months ago
This makes sense. I like the YAML representation.
Our workflow involves using a spreadsheet as an exchange format between actors of the project, and I don't think a YAML file would work because most are more comfortable using excel than a plain text editor. (Which is a pity because generating a proper comma-separated UTF-8 encoded .csv file from Excel is just a nightmare, but LibreOffice does better.)
In short we wouldn't object to adding this feature, even if it adds a dependency to pyyaml, but we won't do it.
Let's keep this open to keep track of the idea. Anyone, fell free to propose an implementation.
Transfering this to bemserver-core as this is where it happens (in input_output
).
Hello,
In BEMServer, locations have a hierachical form. 4 CSV files can be used to import location (site, building, storey, space) Maybe supporting YAML import should be considered as it can be a very convenient maner to populate database with sample data (in an human readable format).
Linting and viewing such a file can be done using online tools such as https://jsonformatter.org/yaml-viewer and https://www.yamllint.com/
Others options to consider could be TOML https://transform.tools/yaml-to-toml
Kind regards