inm-6 / datareport Goto Github PK
View Code? Open in Web Editor NEWTool to combine YAML datasets with Jinja2-based templates
License: BSD 3-Clause "New" or "Revised" License
Tool to combine YAML datasets with Jinja2-based templates
License: BSD 3-Clause "New" or "Revised" License
the --help
output gives the possibility to specify an alternative loader with --yaml-loader
, but except for the given default no other possible values are given.
when loading a yaml file using tags like
- !!python/object/apply:datetime.timedelta [0, 7200, 0]
the loader raises an exception:
INFO:root:loading 'data' from '../all.yaml'...
Traceback (most recent call last):
File ".../bin/reporter", line 10, in <module>
sys.exit(main())
File ".../lib/python3.6/site-packages/datareport/reporter.py", line 139, in main
data[dataid] = dataloader(open(datafilename, 'r'))
File ".../lib/python3.6/site-packages/ruamel/yaml/main.py", line 266, in load
return constructor.get_single_data()
File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 104, in get_single_data
return self.construct_document(node)
File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 114, in construct_document
for dummy in generator:
File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 605, in construct_yaml_seq
data.extend(self.construct_sequence(node))
File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 196, in construct_sequence
for child in node.value]
File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 196, in <listcomp>
for child in node.value]
File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 159, in construct_object
data = constructor(self, node)
File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 631, in construct_undefined
node.start_mark)
ruamel.yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:datetime.timedelta'
in "../all.yaml", line 2, column 5
The README file still has some old instructions about the installation of a shell alias. That has to be removed
yaml allows for multiple documents in a single file, this should be handled similar to using the --list
option.
log messages for list data fields have list syntax
INFO:root:loading '['data']' entry from '../Issues/860/issue'...
should be
INFO:root:loading 'data' entry from '../Issues/860/issue'...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.