Skip to main content

Pretty-print Python objects to Buche logger.

Project description


Buche
=====

Helper package to pretty-print and interact with Python objects using the Buche_ logger.

Requires Python >= 3.6


Usage
-----

You must install Buche_ through npm first (``npm install -g buche``). This package helps interact with Buche, but it is not the application itself. Once you have written your script, use it as follows:

.. code:: bash

buche python -u yourscript.py

Sample script:

.. code:: python
from buche import buche

buche(1234)
buche([x * x for x in range(100)])
buche(avocado="green", banana="yellow", cherry="red")

buche['second_tab']("Hello")
buche['third_tab/one'].html('<b>Hello!</b>')
buche['third_tab/two'].markdown('**Hello!!**')

buche.require('bokeh', channels='bokeh')
plot = buche.open_bokeh('plot', title="Polynomials")
for i in range(100):
plot['square'].log_data(x=i, y=i*i)
plot['cube'].log_data(x=i, y=i*i*i)


.. _Buche: https://github.com/breuleux/buche


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
buche-0.1.6-py3-none-any.whl (9.8 kB) Copy SHA256 hash SHA256 Wheel py3 Jan 25, 2018
buche-0.1.6.tar.gz (7.8 kB) Copy SHA256 hash SHA256 Source None Jan 25, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page