Skip to main content

An example package. Generated with cookiecutter-pylibrary.

Project description

Version v0.0.28.

This is a proof of concept package. It came out of my disdain for typing any sort of HTML tag.

I often code inside of Jupyter notebooks. Sometimes I want to display custom HTML inside of those notebooks.

The issue is that writing complex HTML such as a list by hand is tedious and error-prone. Template libraries do help, but they introduce their own clumsy syntax into HTML. And the templates are often very long strings that clutter the notebook. Storing the templates in files takes my mind away from the notebooks.

Then I discovered the template library Chameleon that uses valid HTML as its template. Brilliant!

Though I would still have to type the templates which are HTML tags which takes me back to my original disdain of typing HTML tags.

This library addresses that issue. It also adds some utilities that I use when coding inside notebooks.

Here is an example where I used chamelboots to insert a link menu into a notebook. The links were references to anchor tags inserted into a very long cell output. It made it easier to navigate the output. The navigation can even happen during code execution.

./readme_assets/anchors.gif

Generated with cookiecutter-pylibrary.

  • Free software: BSD 2-Clause License

Installation

pip install chamelboots

You can also install the in-development version with

pip install https://github.com/dm-wyncode/python-chamelboots/archive/master.zip

It is still possible to install by cloning this repository, activating a virtual environment, and running the following:

python setup.py install

Documentation

https://python-chamelboots.readthedocs.io/

Development

To run the all tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.0.0 (2019-11-05)

  • First release on PyPI.

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

python-chamelboots-0.0.28.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

python_chamelboots-0.0.28-py2.py3-none-any.whl (12.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file python-chamelboots-0.0.28.tar.gz.

File metadata

  • Download URL: python-chamelboots-0.0.28.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

File hashes

Hashes for python-chamelboots-0.0.28.tar.gz
Algorithm Hash digest
SHA256 aa44bbbeb7c305433faa437594a48837de167375c4241b7d2b7ec16a5063b300
MD5 d09613313bbb2420eddd568d65ea1a99
BLAKE2b-256 480e5952249a248ff1f53d7d99b227e9ee9be6f5e42764252af2e4f307796435

See more details on using hashes here.

File details

Details for the file python_chamelboots-0.0.28-py2.py3-none-any.whl.

File metadata

  • Download URL: python_chamelboots-0.0.28-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

File hashes

Hashes for python_chamelboots-0.0.28-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 98dfcc4f07a54148f7d6317b51192af004b3b1c7a31ff54081a12a483d2f9dd9
MD5 9ce4cbcbb942e25a656434f2b8f9e261
BLAKE2b-256 6c35bf881b2985bdbca1d6054150d21be1e58f5b34b2824345102fee30b3b436

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