semvec/pypi-packages huggingface dataset:
html-content 0.0.1
Easily construct HTML document with pandas DataFrame, markdown, matplotlib, plotly and HTML.
Requires Python: >=3.8

# HTML Content

Easily construct HTML document with pandas DataFrame, markdown, matplotlib, plotly and HTML.

This tiny package can help build organized content similar to Jupyter notebook, while using pure python code.


## Install

`pip install -e .`

## Example


For full example code, please refer to [test.py](example/test.py).

```python
content = HtmlContent('Title of example')

# markdown
content.add_markdown('# Header')
content.add_markdown('***')
content.add_markdown('## success text', bg_color=Type.SUCCESS)
content.add_markdown('## warning text', bg_color=Type.WARNING)
content.add_markdown('## error text', bg_color=Type.ERROR)
content.add_markdown('normal text')

# add fig
content.add_matplotlib_fig(create_matplotlib_fig())
content.add_plotly_fig(create_plotly_fig())

# add HTML
content.add_html('<b>Bold font</b>')

# add pandas
df = create_df()
content.add_df(df, caption='pandas table with diverging_gradient=False', diverging_gradient=False)
content.add_df(df, caption='pandas table with diverging_gradient=True', diverging_gradient=True)

# save content to HTML
# content.get_html()
content.save_html('example/content.html')
```

### Snapshot of `example/content.html`


![Part1](example/img/part1.png)
![Part2](example/img/part2.png)
![Part3](example/img/part3.png)


## Reference
- [Seaborn light_palette](https://seaborn.pydata.org/generated/seaborn.light_palette.html), [Seaborn diverging_palette](https://seaborn.pydata.org/generated/seaborn.diverging_palette.html#seaborn.diverging_palette)
- [Pandas table visualization](https://pandas.pydata.org/docs/user_guide/style.html)
- [Plotly to_html](https://plotly.com/python-api-reference/generated/plotly.io.to_html.html)
- [Seaborn, matplotlib to html](https://stackoverflow.com/a/48717971)
- [Python markdown](https://python-markdown.github.io/)
typora-upload 1.0.0
The typora image upload plugin based Python.

================
typora-upload
================

**typora-upload** is a plugin of typora that can upload image file to cloud drive based on python.

Features
--------

- Support oss and github drive

How to install
--------------

- Use source code

::

    git clone https://github.com/TyrantLucifer/typora-upload.git
    cd typora-upload
    python(python3) setup.py install

- Use pip

::

    pip(pip3) install typora-upload

Usage
-----

::

    usage: typora-upload [-h] [-u file_path] [-s storage] [-i storage] [-v]

    The typora image upload plugin based Python.

optional arguments:
  -h, --help            show this help message and exit
  -u file_path, --upload file_path
                        upload image file
  -s storage, --storage storage
                        storage type
  -i storage, --init storage
                        init storage config
  -v, --version         display version

Powered by tyrantlucifer. If you have any questions,you can send e-mails to
tyrantlucifer@gmail.com


Documentation
-------------

You can find all the documentation in the
`Readme <https://github.com/TyrantLucifer/typora-upload>`__.

License
-------

MIT License

Copyright (c) 2022 **TyrantLucifer**

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.