jacebrowning / yorm

Automatic object-YAML mapping for Python.
https://yorm.readthedocs.io
MIT License
27 stars 6 forks source link

Implement 'yorm.match' utility #123

Closed jacebrowning closed 7 years ago

jacebrowning commented 8 years ago

The API could work something like:

return list(yorm.match(SampleModel, key='\w+'))
jacebrowning commented 7 years ago

@astronouth7303 Any thoughts on supporting regex patterns for matching? Would that be valuable or is * sufficient for most use cases?

AstraLuma commented 7 years ago

It's not valuable to my use case. I guess it depends on how rich of a querying system you want?

jacebrowning commented 7 years ago

Add in https://github.com/jacebrowning/yorm/pull/143

jacebrowning commented 7 years ago

This is available to start testing in YORM==1.5b1.