An example package. Generated with cookiecutter-pylibrary.
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.
Generated with cookiecutter-pylibrary.
- Free software: BSD 2-Clause License
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
To run the all tests run:
Note, to combine the coverage data from all the tox environments run:
set PYTEST_ADDOPTS=--cov-append tox
- First release on PyPI.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size python_chamelboots-0.0.26-py2.py3-none-any.whl (11.7 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View hashes|
|Filename, size python-chamelboots-0.0.26.tar.gz (25.3 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for python_chamelboots-0.0.26-py2.py3-none-any.whl
Hashes for python-chamelboots-0.0.26.tar.gz