Skip to main content

The unstable bash

Project description

Bysh

tests Upload Python Package

Bash interpreter in Python

Continuation of https://github.com/idank/bashlex. The bashlex files may have been modified.

Installation

py -3 -m venv venv && venv/scripts/activate.bat
pip install bysh
bysh

External libraries

Embedded in bysh.lib:

Notes

alpha

For now the builtins and commands does not try to mimic the exact posix/bash behavior. The goal is to have a working core, and then correct details.

tkt

|| & && ; ;; ( ) | \n

  • Simple Command
    • Noms separes par des espaces (+redirections) + control operator
  • Pipeline
    • Simple commands séparées par des pipes
  • List
    • pipelines séparées par des control operators
  • Compound Commands
    • list mais avec des infos en plus
      • {} -> execute dans current shell
      • () -> execute subshell
      • (()) -> arithmetic
      • [[ ]] -> tests
  • Shell functions
    • fonctions

stdin

Plus tard il faudra
msvcrt.getche() in (b'\x00', b'\xe0'):
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getch-getwch?view=vs-2019

TODO

Separate builtins from commands like $?

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

bysh-0.0.4.tar.gz (72.2 kB view details)

Uploaded Source

Built Distribution

bysh-0.0.4-py3-none-any.whl (83.4 kB view details)

Uploaded Python 3

File details

Details for the file bysh-0.0.4.tar.gz.

File metadata

  • Download URL: bysh-0.0.4.tar.gz
  • Upload date:
  • Size: 72.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for bysh-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d97f20c9cef1f2042f1e898bfb4d3d414fa677273f1c4d0e22c1d39b53260b4a
MD5 66f0614b161d9311472b5b4e644a4c07
BLAKE2b-256 7e976db6d4bf66edfc18188f118982d7e8bd30a0e6cb220ff82bf78badecb886

See more details on using hashes here.

File details

Details for the file bysh-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: bysh-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 83.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for bysh-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 abfe9fd503e24f9c7aaadb042a020ef353cb89cc64ff240ca0f879df07e9f029
MD5 6cbfda75a9ef41e7e398c0a2ee3ce5ec
BLAKE2b-256 e19bc47ce0ac1876cd460e96d5256c55ecab68893627eaf023b4b742fc5b99cd

See more details on using hashes here.

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