Jhsmit / PyHDX

Derive ΔG for single residues from HDX-MS data
http://pyhdx.readthedocs.io
MIT License
28 stars 12 forks source link

Provide method of easily running local server #165

Closed Jhsmit closed 3 years ago

Jhsmit commented 3 years ago

Currently users have to 1) run local_cluster and 2) $ python panel/serve.py

This is a) not described in the docs in any detail and b) needs to be simplified.

Jhsmit commented 3 years ago

We need a console script:

entry_points={
    'console_scripts': ['<name> = <name>.console:main'],
},

https://stackoverflow.com/questions/57453047/how-to-add-command-line-tool-to-python-package

Jhsmit commented 3 years ago

Command to run PyHDX should be

 $ pyhdx serve 

Optional arguments:

 $ pyhdx serve --cluster 127.0.0.1:52123

Start pyhdx with existing dask cluster at '127.0.0.1:52123'

 $ pyhdx serve --cluster auto

Automatically start a cluster at a random port

Jhsmit commented 3 years ago

fixed by #191