Skip to main content

Roysh - A Python-based Shell

Roysh is a simple yet powerful Python-based shell that provides familiar shell functionality with tab completion support.

Features

  • Interactive command-line interface
  • Tab completion for commands and file paths
  • Built-in shell commands
  • Command output redirection
  • Path-based command execution
  • Cross-platform support

Installation

Install using pip:

pip install roysh

Usage

Start the shell by running:

roysh

Built-in Commands

Command Description
echo [text] Print text to stdout
exit [code] Exit the shell (optional status code)
type <command> Show command type/location
pwd Print working directory
cd [path] Change directory (defaults to HOME)

Output Redirection

Roysh supports standard output redirection operators:

Operator Description
> Redirect stdout to file (overwrite)
>> Append stdout to file
2> Redirect stderr to file (overwrite)
2>> Append stderr to file

Examples

# Basic command usage
$ echo Hello World
Hello World

# Working with directories
$ pwd
/home/user
$ cd /tmp
$ pwd
/tmp

# Output redirection
$ echo "log entry" >> log.txt
$ echo "error message" 2> errors.txt

# Command information
$ type echo
echo is a shell builtin
$ type python
python is /usr/bin/python

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Developed by Nishan Roy```

Metadata

Release files for roysh 0.1.2

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

Source distribution (sdist)

Source distribution for roysh 0.1.2
File Size Uploaded Provenance Actions
roysh-0.1.2.tar.gz 5.0 kB Without provenance Details for roysh-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 10.3 kB

Release files / roysh-0.1.2.tar.gz

Download URL roysh-0.1.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ab25624c1cc91581b91f870c7c4141f901938abce00f54ff9450fa7a02456740
BLAKE2b-256 checksum
How to use checksums
5ba99a20a0ba21d794a88ccfe8d5cb1315547cd384aacceb27c0e825c49a1131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Release files / roysh-0.1.2-py3-none-any.whl

Download URL roysh-0.1.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f242e22eafc3695cb7d0c24ed0c3325a4cb2b3e5b87385835fa51c12e33a2eb3
BLAKE2b-256 checksum
How to use checksums
ef4dbd6c2a2c78891b0a86ec25efc69599501e26240a45dcd196839ff0d80ef5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for roysh 0.1.2

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.

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