Skip to main content

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 $?

Release files for bysh 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bysh 0.0.4
File Size Uploaded
bysh-0.0.4.tar.gz 72.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bysh 0.0.4
File Interpreter ABI Platform
bysh-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 155.6 kB

Release files / bysh-0.0.4.tar.gz

Download URL bysh-0.0.4.tar.gz
Size 72.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d97f20c9cef1f2042f1e898bfb4d3d414fa677273f1c4d0e22c1d39b53260b4a
BLAKE2b-256 checksum
How to use checksums
7e976db6d4bf66edfc18188f118982d7e8bd30a0e6cb220ff82bf78badecb886
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / bysh-0.0.4-py3-none-any.whl

Download URL bysh-0.0.4-py3-none-any.whl
Size 83.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abfe9fd503e24f9c7aaadb042a020ef353cb89cc64ff240ca0f879df07e9f029
BLAKE2b-256 checksum
How to use checksums
e19bc47ce0ac1876cd460e96d5256c55ecab68893627eaf023b4b742fc5b99cd
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page