4 ms·
I'm probably being dense, but I don't see a good description of the input data types supported - the CLI says "json or python". It would be great to have clari
by jasonpeacock 8y ago
I'm probably being dense, but I don't see a good description of the input data types supported - the CLI says "json or python".
It would be great to have clarification if this is JSON only, or supports other data structures, or parsers could be plugged in?
- mhashemi 8y agoFrom within Python, all objects are supported by default. If you can parse it, you can glom it. You can even register additional behaviors for specific types to keep your specs tight: http://glom.readthedocs.io/en/latest/api.html#setup-and-registration http://glom.readthedocs.io/en/latest/api.html#setup-and-regi... (example: http://glom.readthedocs.io/en/latest/snippets.html#automatic-django-orm-type-handling http://glom.readthedocs.io/en/latest/snippets.html#automatic...) The CLI is in a pretty preliminary state, usable but not as robust as it will be in a few weeks. It only supports built-in parsers (JSON and Python literals) What formats are you thinking? YAML?
- jasonpeacock 8y agoAha. Thanks! I understand better now, I didn't realize it was so general-purpose :)