Skip to main content

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.3.tar.gz (5.3 MB view details)

Uploaded Source

Built Distribution

bb_python-0.1.3-py2-none-any.whl (5.4 MB view details)

Uploaded Python 2

File details

Details for the file bb-python-0.1.3.tar.gz.

File metadata

  • Download URL: bb-python-0.1.3.tar.gz
  • Upload date:
  • Size: 5.3 MB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for bb-python-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f0f23c3816e979cf3d05fbf8bcb521d6a2cda0d987052437b70a43f7ba2dc161
MD5 91cc5625528ccefd99e74883c2e5e976
BLAKE2b-256 6c86215258c74d021f238d414b63c82cde47b79f40701abb275ae822ff69edc9

See more details on using hashes here.

File details

Details for the file bb_python-0.1.3-py2-none-any.whl.

File metadata

  • Download URL: bb_python-0.1.3-py2-none-any.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: Python 2
  • Uploaded using 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

File hashes

Hashes for bb_python-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 60a57423d106e42ba20e747ab1e8b02afefe5820da4f0428fe255a23390c7033
MD5 c0cb2ae013863d9c080cf99b2a7431d1
BLAKE2b-256 f23994b9a82b0e67690c71b3dd975fd9d749ccbd75c243230c70d0586880cbed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page