Metadata-Version: 2.1
Name: bitcaviar
Version: 0.0.1
Summary: A simple Python wrapper for Bitcoin JSON-RPC API
Home-page: https://github.com/denniscm190/bitcaviar
Author: Dennis Concepción Martín
Author-email: dennisconcepcionmartin@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/denniscm190/bitcaviar/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.md

# pybitcoin 
A simple Python wrapper for Bitcoin JSON-RPC API.

## Installation

## Usage
You should pass your `bitcoin-cli` directory and where you have the blockchain stored to each method.

```python
from bitcaviar import config

bitcoin = config.Bitcoin(cli_dir='your/dir/to/bitcoin-cli', data_dir='/where/is/the/blockchain')
```

### Example 1
Get the number of blocks in the blockchain

```python
from bitcaviar import config
from bitcaviar import blockchain


def main():
    bitcoin = config.Bitcoin(cli_dir='bitcoin-cli', data_dir='/Users/dennis/Bitcoin')
    block_count = blockchain.get_block_count(bitcoin=bitcoin)

    print(block_count)


if __name__ == '__main__':
    main()
```

