Closed josh146 closed 3 years ago
@co9olguy: after this is approved, but before merging it in, are you comfortable with me blacking all python files?
I just noticed, that, before there are other PRs open, this would be the best opportunity to avoid conflicts.
Context: This PR continues the cleanup from #13, and adds in a package structure. This will help us with adding tests.
Description of changes:
Moves the Python parser to the
qdata
directoryMoves all examples to a
examples/
directoryMoves the specification document to
specifications
directoryAdds python packaging boilerplate, so that the package can be installed in editable mode (
pip install -e .
). This will make it easier to write the tests.parser_to_str.py
was outdated and no longer being used, it was deletedAdds various utility functions:
qdata.load
,qdata.loads
,qdata.dump
,qdata.dumps
. These have the same names, signatures, and file io logic as Python standard library serialization packages, such as JSON.