DEV Community

Discussion on: Do you have Python tips?

Collapse
 
aminnairi profile image
Amin

If you are using (or want to use) the Fish shell, you can use a Fish Function to make your python command run a container with some default options (Python example linked at the end of this article).

Here is how it could look.

$ python -p 8000:8000 -- server.py --host 0.0.0.0 --port 8000
Enter fullscreen mode Exit fullscreen mode

And if you are not using Fish, you will probably have learned one thing or two. Win win.

Collapse
 
mxglt profile image
Maxime Guilbert

Thanks for the information!