Skip to content

Commit 1165617

Browse files
committed
Revert "Rename executable to 'bu' and add installation instructions"
This reverts commit ba2dbfe.
1 parent 14d3210 commit 1165617

2 files changed

Lines changed: 3 additions & 25 deletions

File tree

bitcoin_utils_cli.py

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,16 @@
11
#!/usr/bin/env python3
22
"""
3-
Bitcoin Utils CLI (bu) - Command line interface for python-bitcoin-utils
3+
Bitcoin Utils CLI - Command line interface for python-bitcoin-utils
44
55
This CLI tool provides educational utilities to interact with Bitcoin through
66
the python-bitcoin-utils library. It's designed to help understand the
77
inner workings of Bitcoin through practical examples and utilities.
8-
9-
Installation Instructions:
10-
------------------------
11-
12-
1. Make the file executable:
13-
$ chmod +x bitcoin_utils_cli.py
14-
15-
2. Create a symlink named 'bu' in your PATH:
16-
$ sudo ln -s /path/to/bitcoin_utils_cli.py /usr/local/bin/bu
17-
18-
Or using pip (if included in a package):
19-
$ pip install python-bitcoin-utils[cli]
20-
21-
Usage:
22-
------
23-
$ bu --help
24-
$ bu generate
25-
$ bu validate 1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH --pubkey 0450863AD64A87AE8A2FE83C1AF1A8403CB53F53E486D8511DAD8A04887E5B23522CD470243453A299FA9E77237716103ABC11A1DF38855ED6F2EE187E9C582BA6
26-
$ bu decode <transaction_hex>
27-
$ bu script <script_hex>
28-
$ bu block <block_file_path>
298
"""
309

3110
import argparse
3211
import sys
3312
import json
3413
import binascii
35-
import os
3614
from bitcoinutils.setup import setup
3715
from bitcoinutils.keys import PrivateKey, PublicKey
3816
from bitcoinutils.transactions import Transaction
@@ -284,7 +262,7 @@ def parse_block(args):
284262

285263
def main():
286264
"""Main entry point for the CLI"""
287-
parser = argparse.ArgumentParser(description='Bitcoin Utils CLI (bu) - Educational tools for understanding Bitcoin')
265+
parser = argparse.ArgumentParser(description='Bitcoin Utils CLI - Educational tools for understanding Bitcoin')
288266

289267
# Network options
290268
parser.add_argument('--network', choices=['mainnet', 'testnet', 'regtest'],

tests/test_bitcoin_utils_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
"""
3-
Tests for the Bitcoin Utils CLI (bu) tool
3+
Tests for the Bitcoin Utils CLI tool
44
"""
55

66
import unittest

0 commit comments

Comments
 (0)