Shelby Simple Python is a Python-based CLI (Command Line Interface) tool designed to interact with the Shelby Protocol.
This project helps users manage wallets, claim faucets, check balances, and upload files to the Shelby Network directly from the terminal.
⚠️ Security warning: This tool can generate and store private keys (e.g.,pk.txt). Treat them like passwords. Do not share them and do not commit them to GitHub.
- ✅ Check APT & ShelbyUSD balance
- 💧 Claim ShelbyUSD faucet (best-effort)
- 💧 Claim APT faucet (best-effort)
- 📤 Upload files to Shelby Network (auto & custom destination)
- 🔐 Create a new wallet (via Shelby CLI)
- 🔄 Sync private keys to
pk.txt(fromconfig.yaml) - 🖥️ Interactive terminal-based menu
Before installation, make sure you have:
- Python
>= 3.8 - Node.js
>= 16(includes npm) - Git (optional but recommended)
Option A — Clone with Git
git clone https://github.com/dani12po/shelby-simple-python.git
cd shelby-simple-pythonOption B — Download ZIP
- On GitHub, click Code → Download ZIP
- Extract the ZIP
- Open the extracted folder in your terminal
python -m venv venv
.\venv\Scripts\Activate.ps1If you get an error like “running scripts is disabled”, run this once in the same PowerShell window, then activate again:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\venv\Scripts\Activate.ps1python -m venv venv
venv\Scripts\activate.batpython3 -m venv venv
source venv/bin/activatepip install -r requirements.txtnpm install -g @shelby-protocol/cliVerify installation:
shelby --versionNote: The latest
bot.pycan auto-detectshelbyand can optionally auto-install it (ifnpmis available). If you prefer to disable auto-install, set:
AUTO_INSTALL_SHELBY=falseRun the CLI tool:
python bot.pyYou will see a menu like this:
Shelby Menu Bot
================
1) Check balance
2) Claim ShelbyUSD faucet (best-effort)
3) Claim APT faucet (best-effort)
4) Upload file (auto dst)
5) Upload file (custom dst)
6) Create wallet (then auto sync pk.txt)
7) Sync pk.txt from config.yaml (no create)
8) Exit
- Create a wallet (menu option
6) - Claim APT faucet (menu option
3) - Claim ShelbyUSD faucet (menu option
2) - Check balance (menu option
1) - Upload a file (menu option
4)
shelby-simple-python/
│
├── bot.py # Main Python CLI script
├── bot.js # Optional JavaScript integration
├── requirements.txt # Python dependencies
├── package.json # Node.js dependencies
├── pk.txt # Auto-generated private key file (DO NOT COMMIT)
└── README.md # Documentation
Create a .env file in the same directory as bot.py:
# Optional: set a custom Shelby binary/command (Windows usually: shelby.cmd)
SHELBY_BIN=shelby
# Optional: disable auto-install of Shelby CLI
AUTO_INSTALL_SHELBY=true
# Optional: set Shelby config path if it's not in the default location
# SHELBY_CONFIG_PATH=C:\Users\you\.shelby\config.yaml
# Optional: faucet endpoint (if you use a custom faucet)
APTOS_FAUCET_URL=https://your-faucet-url
# Optional: upload defaults
DEST_PREFIX_IMAGE=images/
DEST_PREFIX_VIDEO=videos/
DEST_PREFIX_FILE=files/
DEFAULT_EXPIRATION=in 30 days
ADD_DATE_FOLDER=false- Never commit
pk.txtto the repository - Never share your private keys
- Always use testnet wallets for testing
Add to .gitignore:
pk.txt
.env
venv/
__pycache__/
*.pyc
node_modules/Contributions are welcome!
- Open an issue for bug reports or feature requests
- Submit a pull request to improve the project
This project currently has no license specified. You may add one such as MIT or Apache-2.0 if needed.
If this project helps you, please consider giving it a ⭐ on GitHub.