Python Compiler Collection for Bash
Project description
pyccb
Python Compiler Collection for Bash
What is it
pyccb is a Python -> Pure Bash compiler. It can be used for anything, like making your bash scripts in a more familiar language or running your Python scripts in Bash for fun!
How to use it
pyccb can be used as a CLI or as a Python package.
Installation:
# In the cloned repository
pip install -e .
CLI Usage:
pyccb -h
pyccb examples/helloworld.py -o helloworld.sh
Python Package Usage:
import pyccb
pyccb.compile("print ('Hello World')")
Features + Guide
pyccb supports only a small subset of the full Python syntax. Currently it supports
- Integer Types
- String Types
- Variable declarations
- Function calls (with parameters)
- Basic arithmatic (+-*/)
- Conditionals +
ifstatements whileLoops
To make your program useful, you can call commands as normal functions. eg.
echo("Hello World")
See examples/ for more usage examples. You can compile all the examples by running ./tests/all.sh.
License
This repository is licensed under the GNU General Public License V3
simplyrohan/pyccb - Python Compiler Collection for Bash
Copyright (C) 2025 simplyrohan
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyccb-0.1.0.tar.gz.
File metadata
- Download URL: pyccb-0.1.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51526df1f1e9a22f3644710a65912e893a1013f6c128801492dd5e3dfa47605b
|
|
| MD5 |
e08c8829a0e55bb65e177d7620403251
|
|
| BLAKE2b-256 |
da6471860cfbcc95045d3ff7a72c23ce37e84eb318a6d16478febff39c697ba1
|
File details
Details for the file pyccb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyccb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae8906540a7c81104cd918acb69e4fa1b02522e6fb4603616e909bd9bc9737f5
|
|
| MD5 |
069ea1eeeedb45261002f0f8ad2e81fc
|
|
| BLAKE2b-256 |
ea9aceccf199f6afde025a56677b3d0ebb1f2f5c07f3f75c99f2ffafa680ab43
|