Skip to main content

Every day we stray further from God’s light.

What is this?

Pysh is a shell-script like language. Like shell scripts it is good for controling the flow of the execution of programs.

This repo contains the implementation of pysh in python.

Why would you do this?

The aim of pysh is to create an implementation of the posix shell that can run on many platforms. This way, shell scripts written against pysh do not need to wory about running on differing shells. These shell scripts will have the same behaviour on every single platform.

With pysh it should also be able to sandbox the commands that can be ran, and common useful commands can be replaced with pysh-provided replacements that will have consistent behaviour across platforms.

Also, compilers are just fun to write :)

How does it work?

Pysh consists of a lexer, a parser, and a pysh bytecode generator. Pysh bytecode can be ran by a pysh interpreter. This repo is an implementation of all of those components. Maybe later someone could hook pysh up to llvm to create jit/aot shell scripts? Wait, stop! don’t actually do that! Forget I even said that.

Is it done?

No

Is it stable? Can I use this in production?

Go away

Metadata

Release files for pyshlang 0.1.1

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

Source distribution (sdist)

Source distribution for pyshlang 0.1.1
File Size Uploaded
pyshlang-0.1.1.tar.gz 9.8 kB Details

Release files / pyshlang-0.1.1.tar.gz

Download URL pyshlang-0.1.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3d0ea56d8374df6149a0951b0de8844c7218333ffd992bbc3b403ec76c1223e3
BLAKE2b-256 checksum
How to use checksums
5cf244adf7c100b7175250703e273d4e785cc0a0edb97c3a683d828e57f06d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

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