News for hackers. Stuff that matters.
Re:Show HN: Need feedback for my Python library to query dicts by cyberlis on Tuesday April 10, 2018 @08:52PM (#16807140)
if you need a nested key value, you can use function:

    def get_dict_value(query_dict, dict_key, use_nested_keys=True,
                       key_separator='.', raise_keyerror=False):

theoretically i can make alternative syntax.

The plus of "stringly API" is that you can save your queries in database, or get it through web interface

Re:Show HN: Need feedback for my Python library to query dicts by shakna on Tuesday April 10, 2018 @09:06PM (#16807211)
> The plus of "stringly API" is that you can save your queries in database, or get it through web interface

You can do the same with a function call, there's no difference, apart from already having a list of arguments to pass around. (And of course, the type uncertainty you get with a value stored in a string.)

> if you need a nested key value, you can use function:

Not sure why you're telling me that. What part of my comment are you responding to?