Skip to content
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

Interface or API #48

Closed
lordi opened this issue Apr 29, 2018 · 2 comments
Closed

Interface or API #48

lordi opened this issue Apr 29, 2018 · 2 comments

Comments

@lordi
Copy link
Contributor

lordi commented Apr 29, 2018

Is is possible to access the python process via an API?

It would be nice to have a CLI or similiar able to interact with the python core.

@LefterisJP
Copy link
Member

Yes it is actually. It's just not documented. This is what I have been using for almost a year before I started to add a UI on top of it and make rotkehlchen as it is now.

Assuming you are on a venv that has installed the requirements.txt, in one terminal you can run the python core alone like this, adjusting the arguments.

python -m rotkehlchen --zerorpc-port 4242 --ethrpc-port 8545

And then from another similar terminal (still inside the venv):

zerorpc --timeout 1980 tcp://localhost:4242 unlock_user username pass False unknown anything anything

The above corresponds to the account unlock call seen here.

Essentially all the possible calls are in the server.py file. That's the API with which you can communicate with the python core.

The reason it's not documented is that this is supposed to be a UI application and users should not need to use the CLI. Only expert users/devs are expected to use it and thus documenting the API was not a priority.

@lordi
Copy link
Contributor Author

lordi commented Apr 29, 2018

Ok, super.

@lordi lordi closed this as completed Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants