Bysh
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
- list mais avec des infos en plus
- 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 $?
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bysh-0.0.4.tar.gz | 72.2 kB | Without provenance | Details for bysh-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bysh-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for bysh-0.0.4-py3-none-any.whl |
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
|
Security for bysh 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.