Name | slandroid JSON |
Version |
0.3.5
JSON |
| download |
home_page | https://github.com/ishanoshada/slandroid |
Summary | A universal script runner for multiple programming languages. Automatically detects and runs scripts in Python, JavaScript, Bash, Ruby, Java, Go, PHP, Perl, C, C++, Rust, and more. |
upload_time | 2025-01-23 18:35:48 |
maintainer | None |
docs_url | None |
author | Ishan Oshada (SL ANDROID TEAM) |
requires_python | None |
license | MIT |
keywords |
script runner
multi-language
python
javascript
bash
ruby
java
go
php
perl
c
c++
rust
automation
developer tools
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Slandroid
![PyPI](https://img.shields.io/pypi/v/slandroid)
![License](https://img.shields.io/pypi/l/slandroid)
**Slandroid** is a universal script runner designed to simplify the execution of scripts written in multiple programming languages. It automatically detects the language of a script, installs the required interpreter or runtime if missing, and runs the script seamlessly. Whether you're working with Python, JavaScript, Bash, Ruby, Java, Go, PHP, Perl, C, C++, Rust, or other languages, Slandroid has you covered.
---
## Table of Contents
1. [Features](#features)
2. [Installation](#installation)
3. [Usage](#usage)
4. [Supported Languages](#supported-languages)
5. [Examples](#examples)
6. [Contributing](#contributing)
7. [License](#license)
8. [Support](#support)
---
## Features
- **Multi-Language Support**: Run scripts in Python, JavaScript, Bash, Ruby, Java, Go, PHP, Perl, C, C++, Rust, and more.
- **Automatic Dependency Installation**: Installs missing interpreters or runtimes automatically.
- **Cross-Platform**: Works on Windows, macOS, and Linux.
- **Easy to Use**: Just run `slandroid <script_path>` and let Slandroid handle the rest.
- **Extensible**: Add support for new languages by updating the configuration.
- **Advanced Options**: Supports environment variables, timeouts, output redirection, and more.
---
## Installation
You can install Slandroid via `pip`:
```bash
pip install slandroid
```
---
## Usage
### Running a Script
To run a script, simply use the `slandroid` command followed by the path to the script:
```bash
slandroid path/to/script.py
```
Slandroid will automatically detect the script's language, install any required dependencies, and execute the script.
### Advanced Options
- **Set Environment Variables**:
```bash
slandroid --env MY_VAR=value script.py
```
- **Set a Timeout**:
```bash
slandroid --timeout 10 script.py
```
- **Redirect Output to a File**:
```bash
slandroid --output result.txt script.py
```
- **List Supported Languages**:
```bash
slandroid --list-languages
```
- **Display Help**:
```bash
slandroid --help
```
- **Display Version**:
```bash
slandroid --version
```
- **Update Slandroid**:
```bash
slandroid --update
```
---
## Supported Languages
Slandroid supports the following programming languages:
| Language | File Extension | Command | Installation Command |
|------------|----------------|---------------|----------------------------|
| Python | `.py` | `python` | `pip install` |
| JavaScript | `.js` | `node` | `npm install -g` |
| Bash | `.sh` | `bash` | None |
| Ruby | `.rb` | `ruby` | `gem install` |
| Java | `.java` | `java` | None |
| Go | `.go` | `go run` | `go install` |
| PHP | `.php` | `php` | `sudo apt install php` |
| Perl | `.pl` | `perl` | `sudo apt install perl` |
| C | `.c` | `gcc` | `sudo apt install gcc` |
| C++ | `.cpp` | `g++` | `sudo apt install g++` |
| Rust | `.rs` | `rustc` | `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` |
| TypeScript | `.ts` | `ts-node` | `npm install -g ts-node` |
| PowerShell | `.ps1` | `pwsh` | `sudo apt install powershell` |
| Lua | `.lua` | `lua` | `sudo apt install lua5.3` |
| R | `.r` | `Rscript` | `sudo apt install r-base` |
| Swift | `.swift` | `swift` | `sudo apt install swift` |
| Kotlin | `.kt` | `kotlin` | `sudo apt install kotlin` |
| Dart | `.dart` | `dart` | `sudo apt install dart` |
| Haskell | `.hs` | `runhaskell` | `sudo apt install haskell-platform` |
| Elixir | `.exs` | `elixir` | `sudo apt install elixir` |
---
## Examples
### Python Script (`script.py`)
```python
# script.py
print("Hello from Python!")
```
Run the script:
```bash
slandroid script.py
```
Output:
```
Hello from Python!
```
---
### JavaScript Script (`script.js`)
```javascript
// script.js
console.log("Hello from JavaScript!");
```
Run the script:
```bash
slandroid script.js
```
Output:
```
Hello from JavaScript!
```
---
### Bash Script (`script.sh`)
```bash
#!/bin/bash
echo("Hello from Bash!");
```
Run the script:
```bash
slandroid script.sh
```
Output:
```
Hello from Bash!
```
---
### Rust Script (`script.rs`)
```rust
// script.rs
fn main() {
println!("Hello from Rust!");
}
```
Run the script:
```bash
slandroid script.rs
```
Output:
```
Hello from Rust!
```
---
## Contributing
We welcome contributions to Slandroid! If you'd like to contribute, please follow these steps:
1. Fork the repository on [GitHub](https://github.com/ishanoshada/slandroid).
2. Create a new branch for your feature or bugfix.
3. Submit a pull request with a detailed description of your changes.
For bug reports or feature requests, please open an issue on the [GitHub Issues page](https://github.com/ishanoshada/slandroid/issues).
---
## License
Slandroid is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.
---
## Support
If you have any questions or need assistance, feel free to reach out:
- **Email**: ishan.kodithuwakku.offcial@gmail.com
- **GitHub Issues**: [https://github.com/ishanoshada/slandroid/issues](https://github.com/ishanoshada/slandroid/issues)
---
Happy scripting with Slandroid! 🚀
Raw data
{
"_id": null,
"home_page": "https://github.com/ishanoshada/slandroid",
"name": "slandroid",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "script runner, multi-language, python, javascript, bash, ruby, java, go, php, perl, c, c++, rust, automation, developer tools",
"author": "Ishan Oshada (SL ANDROID TEAM)",
"author_email": "ishan.kodithuwakku.offical@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d6/ca/f95fb497da4f5d8d50179e7c4f9081437717b9020625e67c9af4ec18274c/slandroid-0.3.5.tar.gz",
"platform": null,
"description": "\n# Slandroid\n\n![PyPI](https://img.shields.io/pypi/v/slandroid)\n![License](https://img.shields.io/pypi/l/slandroid)\n\n**Slandroid** is a universal script runner designed to simplify the execution of scripts written in multiple programming languages. It automatically detects the language of a script, installs the required interpreter or runtime if missing, and runs the script seamlessly. Whether you're working with Python, JavaScript, Bash, Ruby, Java, Go, PHP, Perl, C, C++, Rust, or other languages, Slandroid has you covered.\n\n---\n\n## Table of Contents\n\n1. [Features](#features)\n2. [Installation](#installation)\n3. [Usage](#usage)\n4. [Supported Languages](#supported-languages)\n5. [Examples](#examples)\n6. [Contributing](#contributing)\n7. [License](#license)\n8. [Support](#support)\n\n---\n\n## Features\n\n- **Multi-Language Support**: Run scripts in Python, JavaScript, Bash, Ruby, Java, Go, PHP, Perl, C, C++, Rust, and more.\n- **Automatic Dependency Installation**: Installs missing interpreters or runtimes automatically.\n- **Cross-Platform**: Works on Windows, macOS, and Linux.\n- **Easy to Use**: Just run `slandroid <script_path>` and let Slandroid handle the rest.\n- **Extensible**: Add support for new languages by updating the configuration.\n- **Advanced Options**: Supports environment variables, timeouts, output redirection, and more.\n\n---\n\n## Installation\n\nYou can install Slandroid via `pip`:\n\n```bash\npip install slandroid\n```\n\n---\n\n## Usage\n\n### Running a Script\n\nTo run a script, simply use the `slandroid` command followed by the path to the script:\n\n```bash\nslandroid path/to/script.py\n```\n\nSlandroid will automatically detect the script's language, install any required dependencies, and execute the script.\n\n### Advanced Options\n\n- **Set Environment Variables**:\n ```bash\n slandroid --env MY_VAR=value script.py\n ```\n\n- **Set a Timeout**:\n ```bash\n slandroid --timeout 10 script.py\n ```\n\n- **Redirect Output to a File**:\n ```bash\n slandroid --output result.txt script.py\n ```\n\n- **List Supported Languages**:\n ```bash\n slandroid --list-languages\n ```\n\n- **Display Help**:\n ```bash\n slandroid --help\n ```\n\n- **Display Version**:\n ```bash\n slandroid --version\n ```\n\n- **Update Slandroid**:\n ```bash\n slandroid --update\n ```\n\n---\n\n## Supported Languages\n\nSlandroid supports the following programming languages:\n\n| Language | File Extension | Command | Installation Command |\n|------------|----------------|---------------|----------------------------|\n| Python | `.py` | `python` | `pip install` |\n| JavaScript | `.js` | `node` | `npm install -g` |\n| Bash | `.sh` | `bash` | None |\n| Ruby | `.rb` | `ruby` | `gem install` |\n| Java | `.java` | `java` | None |\n| Go | `.go` | `go run` | `go install` |\n| PHP | `.php` | `php` | `sudo apt install php` |\n| Perl | `.pl` | `perl` | `sudo apt install perl` |\n| C | `.c` | `gcc` | `sudo apt install gcc` |\n| C++ | `.cpp` | `g++` | `sudo apt install g++` |\n| Rust | `.rs` | `rustc` | `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` |\n| TypeScript | `.ts` | `ts-node` | `npm install -g ts-node` |\n| PowerShell | `.ps1` | `pwsh` | `sudo apt install powershell` |\n| Lua | `.lua` | `lua` | `sudo apt install lua5.3` |\n| R | `.r` | `Rscript` | `sudo apt install r-base` |\n| Swift | `.swift` | `swift` | `sudo apt install swift` |\n| Kotlin | `.kt` | `kotlin` | `sudo apt install kotlin` |\n| Dart | `.dart` | `dart` | `sudo apt install dart` |\n| Haskell | `.hs` | `runhaskell` | `sudo apt install haskell-platform` |\n| Elixir | `.exs` | `elixir` | `sudo apt install elixir` |\n\n---\n\n## Examples\n\n### Python Script (`script.py`)\n\n```python\n# script.py\nprint(\"Hello from Python!\")\n```\n\nRun the script:\n```bash\nslandroid script.py\n```\n\nOutput:\n```\nHello from Python!\n```\n\n---\n\n### JavaScript Script (`script.js`)\n\n```javascript\n// script.js\nconsole.log(\"Hello from JavaScript!\");\n```\n\nRun the script:\n```bash\nslandroid script.js\n```\n\nOutput:\n```\nHello from JavaScript!\n```\n\n---\n\n### Bash Script (`script.sh`)\n\n```bash\n#!/bin/bash\necho(\"Hello from Bash!\");\n```\n\nRun the script:\n```bash\nslandroid script.sh\n```\n\nOutput:\n```\nHello from Bash!\n```\n\n---\n\n### Rust Script (`script.rs`)\n\n```rust\n// script.rs\nfn main() {\n println!(\"Hello from Rust!\");\n}\n```\n\nRun the script:\n```bash\nslandroid script.rs\n```\n\nOutput:\n```\nHello from Rust!\n```\n\n---\n\n## Contributing\n\nWe welcome contributions to Slandroid! If you'd like to contribute, please follow these steps:\n\n1. Fork the repository on [GitHub](https://github.com/ishanoshada/slandroid).\n2. Create a new branch for your feature or bugfix.\n3. Submit a pull request with a detailed description of your changes.\n\nFor bug reports or feature requests, please open an issue on the [GitHub Issues page](https://github.com/ishanoshada/slandroid/issues).\n\n---\n\n## License\n\nSlandroid is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Support\n\nIf you have any questions or need assistance, feel free to reach out:\n\n- **Email**: ishan.kodithuwakku.offcial@gmail.com\n- **GitHub Issues**: [https://github.com/ishanoshada/slandroid/issues](https://github.com/ishanoshada/slandroid/issues)\n\n---\n\n\nHappy scripting with Slandroid! \ud83d\ude80\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A universal script runner for multiple programming languages. Automatically detects and runs scripts in Python, JavaScript, Bash, Ruby, Java, Go, PHP, Perl, C, C++, Rust, and more.",
"version": "0.3.5",
"project_urls": {
"Bug Reports": "https://github.com/ishanoshada/slandroid/issues",
"Documentation": "https://github.com/ishanoshada/slandroid#readme",
"Homepage": "https://github.com/ishanoshada/slandroid",
"Source": "https://github.com/ishanoshada/slandroid"
},
"split_keywords": [
"script runner",
" multi-language",
" python",
" javascript",
" bash",
" ruby",
" java",
" go",
" php",
" perl",
" c",
" c++",
" rust",
" automation",
" developer tools"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "ab0811a25fec37221435cdc4b5735443a978ac5baf907faa1532a7de85c2b905",
"md5": "995e9cf6f1225d2f052649fed51c97a8",
"sha256": "3335cbbd7c9f89baf87c231d02d92c0a539cb2fa6b809348f04764c5e9875c46"
},
"downloads": -1,
"filename": "slandroid-0.3.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "995e9cf6f1225d2f052649fed51c97a8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7430,
"upload_time": "2025-01-23T18:35:47",
"upload_time_iso_8601": "2025-01-23T18:35:47.673313Z",
"url": "https://files.pythonhosted.org/packages/ab/08/11a25fec37221435cdc4b5735443a978ac5baf907faa1532a7de85c2b905/slandroid-0.3.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d6caf95fb497da4f5d8d50179e7c4f9081437717b9020625e67c9af4ec18274c",
"md5": "0863a0410e67cd49038d5865aff24a9e",
"sha256": "2f52083ba127f4d100f80656225cf119dc5b120322feeead8e75e4c08e6e5715"
},
"downloads": -1,
"filename": "slandroid-0.3.5.tar.gz",
"has_sig": false,
"md5_digest": "0863a0410e67cd49038d5865aff24a9e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7383,
"upload_time": "2025-01-23T18:35:48",
"upload_time_iso_8601": "2025-01-23T18:35:48.800187Z",
"url": "https://files.pythonhosted.org/packages/d6/ca/f95fb497da4f5d8d50179e7c4f9081437717b9020625e67c9af4ec18274c/slandroid-0.3.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-23 18:35:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ishanoshada",
"github_project": "slandroid",
"github_not_found": true,
"lcname": "slandroid"
}