Closed bfontaine closed 4 years ago
This adds an edn_format.tag decorator as a shortcut for add_tag:
edn_format.tag
add_tag
Before:
def parse_dog(name): return { "kind": "dog", "name": name, "message": "woof-woof", } edn_format.add_tag("dog", parse_dog)
After:
@edn_format.tag("dog") def parse_dog(name): return { "kind": "dog", "name": name, "message": "woof-woof", }
I also added some docs and tests.
Done. I also updated the Contributor’s Note in the README to use twine, as the python setup.py upload command is deprecated.
twine
python setup.py upload
This adds an
edn_format.tag
decorator as a shortcut foradd_tag
:Before:
After:
I also added some docs and tests.