David Bieber
David Bieber
This isn't currently possible (nor is it on the roadmap). Can you say a bit more about your use-case?
Python Fire doesn't provide a way to access an attribute of every element of a list at the command line. I'll consider this a feature request. Here are two alternatives...
See also this PR: https://github.com/google/python-fire/pull/100 unfortunately I've been slow in getting around to it, my apologies!
Private methods are hidden from view by default, but a user can access them by adding the --verbose flag to your CLI. There is not currently a supported way to...
Here are some ideas. Instead of defining a class (IntegrationClass) with your main method in it, just make it a function. ``` def run(HowMuchPizza, TipAmount=None): pc = ProcessClass() pc.orderUp(HowMuchPizza, TipAmount)...
Thanks for reporting this. As a workaround for `python script.py bar --param=3 baz --param=5 end` you should be able to run `python script.py bar --param=3 - baz --param=5 end`. The...
Python Fire should work even when inspect.getmembers doesn't. I'll mark this as a bug.
Would you be able to provide a minimal example reproducing the issue?
Thanks!
Thanks for the pings. I can confirm the behavior you're seeing. The issue now seems to stem from our implementation of "HasCustomStr". https://github.com/google/python-fire/blob/bc43dca6a52ef6914f0e5d3ec76b316d8fdd648b/fire/value_types.py#L63 `HasCustomStr` should return whether an object defines...