bb Python Client
Project description
bb Python Client
Install
First install the bb binary, then pip install:
go get github.com/MattSimmons1/bb
pip install ./client/python
or
go get github.com/MattSimmons1/bb
pip install "git+ssh://git@github.com/MattSimmons1/bb.git#subdirectory=client/python"
If you don't have go installed, download the bb binary from the releases page and save to a location on your PATH or your working directory.
Usage
Convert bb strings to Python lists/dicts (JSON objects):
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:
import bb
data = bb.convert("path/to/file.bb.txt")
Convert in injection mode with bb.extract
:
import bb
documentation = bb.extract("my_code.py")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bb-python-0.1.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for bb_python-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 899f44f1018babc7a9cf01d76532422936ff659f3852ca78ba684f5dc8a11fca |
|
MD5 | 3927c2a552dd6806669eb110bec26ee5 |
|
BLAKE2b-256 | 0efff94c90e25cbd3593d2aefde0089b4b73ec426aa8f84e2e6c6c015eb5374c |