-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to support python-fire? #33
Comments
what do you mean usually? looks cool, can you share an example? |
Here is an example
Now, in my terminal, I can directly do this
This would directly pass the arguments to the main function without explicitly importing In general, fire supports many other stuff like here: https://github.com/google/python-fire/blob/master/docs/guide.md. Though not all of it would be relevant to test-tube. |
Interesting.... could you propose an example using test tube (ie: a dream use case)? I see this as an addition and not necessarily a replacement of argparse because most academic researchers use argparse right now so it's easy to integrate with their code (ie... not many changes) |
Yeah, I meant this to be an addition. Here is a small example I am cooking up from your example. https://github.com/williamFalcon/test-tube/blob/master/examples/pytorch_hpc_example.py The given code:
can be rewritten as:
Now from my terminal I can simply call, |
There are other cool arguments parser libraries like http://docopt.org/ as well. We could generalize this issue by supporting json format parsed arguments, instead of relying on a specific format. |
I usually use python fire (https://github.com/google/python-fire), it creates the parser arguments by default looking at the function to be called. Is there any possibility of integrating this into the existing framework?
The text was updated successfully, but these errors were encountered: