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
Make a CLI #5
Comments
i would like to work on this issue |
however, i am still new to all this, so if you could suggest some resources to catch up i would love to learn |
@dastamoghno I am imagining a CLI using A similar CLI using click and this library has been written for hydra-pywr. See the This CLI would be more general though. Perhaps an easy one to start with would be to list all the projects? I would expect it to work something like this.
Where [x] is the project ID. |
ok, so which projects need to be included in the list as of now? |
The new programme |
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xYByle/mysqlclient/ |
Take a look at the example code here: You'll need to have installed hydra_base first, using python setup.py develop from here: The basic workflow to my mind is:
Underneath it's doing hydra_client.login() Then the user requests his networks:
Underneath it's doing: hydra_client.get_projects() Just getting that far would be super awesome. |
why not try python setup.py develop? |
I installed hydra-base in my virtual environment and then created a launcher file setup.py for my cli, but then renamed it to setup_cli.py, and now there exists no such file as setup.py |
Can i please get the link to the login function in hydra-client? I am having problems in understanding the parameters to send to the function |
The login function you want is located in here: You don't need to pass any arguments to it. It should prompt you for a username and password when you call the function and don't pass in arguments. |
I am sorry, but I dont understand the code too well. As i said i am just a beginner getting exposed to the command line, hence facing lots of issues and i dont even know how to describe them |
I think it defaults to username |
I am unable to setup the cli script
…On Fri 12 Oct, 2018, 12:13 AM James Tomlinson, ***@***.***> wrote:
I think it defaults to username root with an empty password.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Afu3Y9PWCgvgip6LCMUgiSym0MLzGGQYks5uj5FPgaJpZM4XTgMy>
.
|
OK, no problem. Thanks for looking in to it. |
Probably using a
click
.Some example commands.
The text was updated successfully, but these errors were encountered: