Skip to main content

An experimental shell for the modern age!

Project description

clam shell 🦪

Experimental and modern python based shell

Idea:

Reimagining the shell with:

  • common sense function names
  • easy hackability
  • modern programming convenience

xonsh does a lot like this and better, But the idea is to reimagine the shell completely (I.e no bash)

Special repl loop to allow:

  • first run as python
  • then run as reformatted clam python
  • then execute as command

convenient function

  • files (ls equivalent) returns list
  • goto (cd equivalent) moves, including searching for location if not in directoru
  • see (cat equivalent) shows formatted file output
  • move, copy, delete do as expected

Clam python

Basically, allow python commands to be ran like cli I.e

print 'hello world'
# runs print('hello world')

Or

goto 'Documents/cool-folder'
# runs goto('Documents/cool-folder')

This already works, but still to do is auto-stringify:

goto Documents/cool-folder
# runs goto('Documents/cool-folder')

Also, to do is allow variable setting

tunes = files '~/Music'

Run

Already done is execute program like:

python3 -m pytest

To do is capture stdout as variable:

results = python3 -m pytest

Other still to do

(lots, although prompt toolkit covers a lot of this)

  • Formatted input
  • autocompletion
  • history
  • configurable init file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clamshell-0.2.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

clamshell-0.2-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page