google / google/python-fire

Access dict keys and values

Open
#156 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
28.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

My script returns a dictionary from command `script.py command`. That works well. But when I try to list just keys (`script.py command keys`) or values (`script.py command values`), I get error `Cannot find target in dict` instead of the expected list of keys or values. Please extend `dict` handling with support for `.keys()` and `.values()` methods.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.