bb Python Client
Project description
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 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.2.tar.gz
(5.3 MB
view hashes)
Built Distribution
Close
Hashes for bb_python-0.1.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a208fc60961c34d5ec10677535a91b4c8302ef34a57000ad7c1a72c5987241e |
|
MD5 | 002989f86389564a69d855b621e3799e |
|
BLAKE2b-256 | 986a4c5130507c448392060e5bba3e0a1460a1d1bfc7fbe8839933c37e5a5a68 |