Skip to main content

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")

Release files for bb-python 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bb-python 0.1.3
File Size Uploaded
bb-python-0.1.3.tar.gz 5.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for bb-python 0.1.3
File Interpreter ABI Platform
bb_python-0.1.3-py2-none-any.whl Python 2 none any Details

Total release size: 10.7 MB

Release files / bb-python-0.1.3.tar.gz

Download URL bb-python-0.1.3.tar.gz
Size 5.3 MB
Tags Source
SHA-256 checksum
How to use checksums
f0f23c3816e979cf3d05fbf8bcb521d6a2cda0d987052437b70a43f7ba2dc161
BLAKE2b-256 checksum
How to use checksums
6c86215258c74d021f238d414b63c82cde47b79f40701abb275ae822ff69edc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release files / bb_python-0.1.3-py2-none-any.whl

Download URL bb_python-0.1.3-py2-none-any.whl
Size 5.4 MB
Tags Python 2
SHA-256 checksum
How to use checksums
60a57423d106e42ba20e747ab1e8b02afefe5820da4f0428fe255a23390c7033
BLAKE2b-256 checksum
How to use checksums
f23994b9a82b0e67690c71b3dd975fd9d749ccbd75c243230c70d0586880cbed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page