Metadata-Version: 2.1
Name: bb-python
Version: 0.1.2
Summary: bb Python Client
Home-page: https://mattsimmons1.github.io/bb
Author: Matt Simmons
Author-email: 
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown

# bb Python Client

### Install

First install the bb binary, then pip install:

    go install github.com/MattSimmons1/bb@latest
    pip install bb-python

If you don't have go installed, download the bb binary from the [releases page](https://github.com/MattSimmons1/bb/releases) 
and save to a location on your PATH or your working directory.

### Usage

Convert bb strings to Python lists/dicts (JSON objects):

```python
import bb

data = bb.convert("""

    ∆ = { type: pizza }

    3∆ 5∆ 5∆ 8∆ 2∆

""")

print(data)  # [{'type': 'pizza', 'quantity': 3}, {...
```

Convert files by providing a file path:

```python
import bb

data = bb.convert("path/to/file.bb.txt")
```

Convert in injection mode with `bb.extract`:

```python
import bb
documentation = bb.extract("my_code.py")
```


