Hacker News new | past | comments | ask | show | jobs | submit login

Take a look at the "sh" module for python, and JuPyTer/iPython for the UI.



Did you mean this:

   https://pypi.python.org/pypi/sh
I'm not seeing what I'm supposed to be seeing :)

   https://try.jupyter.org/
Okay, thats' very cool.


You can also use ipython as a regular shell pretty easily:

https://ipython.org/ipython-doc/dev/interactive/shell.html

And while that page doesn't really highlight it, it works pretty well out of the box:

    % ipython
    Python 2.7.6 (default, Sep  9 2014, 15:04:36)
    Type "copyright", "credits" or "license" for more information.
    
    IPython 2.3.0 -- An enhanced Interactive Python.
    ?         -> Introduction and overview of IPython's features.
    %quickref -> Quick reference.
    help      -> Python's own help system.
    object?   -> Details about 'object', use 'object??' for extra details.
    
    In [1]: pwd
    Out[1]: u'/private/tmp'
    
    In [2]: ls
    KSOutOfProcessFetcher.0.r55jifrBu08ZlGAfPLYXKgYad4c=/   lein-trampoline-M8eCP9ASjLYqO
    KSOutOfProcessFetcher.501.r55jifrBu08ZlGAfPLYXKgYad4c=/ lein-trampoline-i3aRyHVGcm1Fr
    com.apple.launchd.QiAYKXJLr7/                           snow-nic1.pcap
    com.apple.launchd.iNBrDiEeE8/                           snow-nic2.pcap
    com.apple.launchd.z0Zss1uMx6/
    
    In [3]:


Xonsh[1] is even better.

1. http://xonsh.org/




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: