wcooley / python-gryaml

Represent Neo4j graph data as YAML
MIT License
2 stars 0 forks source link

Custom PyYAML constructors #3

Open wcooley opened 7 years ago

wcooley commented 7 years ago

It would be nice to be able to register PyYAML constructors, so that shorter names can be used, such as !gryaml.node instead of !!python/object/apply:gryaml.node.

http://pyyaml.org/wiki/PyYAMLDocumentation#Constructorsrepresentersresolvers

wcooley commented 7 years ago

I'm splitting this into separate issues: one for the constructors and one for the representers.