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:
pip install pyccb
or
# 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- Lists
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/>.
Metadata
Release files for pyccb 0.1.2
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 |
|---|---|---|---|---|
| pyccb-0.1.2.tar.gz | 13.4 kB | Without provenance | Details for pyccb-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyccb-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyccb-0.1.2-py3-none-any.whl |
Total release size: 28.1 kB
Release files / pyccb-0.1.2.tar.gz
| Download URL | pyccb-0.1.2.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1aeec1b611a906665df60385e3e72da91b231c52d3cf6d2a2c0652b7dc2a1cc8
|
|
BLAKE2b-256 checksum How to use checksums |
db501a48590a57786ce5dac3c3bb4cb0f9eee8bf0104d8141442750bcb561c66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.1
|
Release files / pyccb-0.1.2-py3-none-any.whl
| Download URL | pyccb-0.1.2-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd78f7d5cee67b2a0da119aa975d2dbed2ee5e1968dec0a7f77be5eec54ace1e
|
|
BLAKE2b-256 checksum How to use checksums |
f595d29f4308360d1d4fc591c113935d735de3472cd7c60f6c5621ef1cdf5ae0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.1
|
Security for pyccb 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.