dech-0.0.1
توضیحات
Declaratively generate simple HTML pages in Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dech-0.0.1 |
| نام | dech |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Evan Widloski |
| ایمیل نویسنده | evan_github@widloski.com |
| آدرس صفحه اصلی | https://github.com/evidlo/dech |
| آدرس اینترنتی | https://pypi.org/project/dech/ |
| مجوز | GPL3 |
# DECH
DECH is a library for DEClaratively generating HTML pages in Python. This may be useful for generating summary report pages containing images/tables from scientific scripts.
## Install
pip install dech
## Example Usage
``` python
from dech import *
import matplotlib.pyplot as plt
import numpy as np
img1 = np.random.random((100, 100))
plt.figure('plot1')
plt.plot(np.random.random(10))
plt.figure('plot2')
plt.plot(np.random.random(10))
Page(
[
[
Figure('Example 1', Img('/tmp/example.gif')),
Figure('Example 2', Img('/tmp/example.gif')),
Figure('Example 3', Img('/tmp/example.gif')),
],
[
Figure('Matplotlib 1', Img(plt.figure('plot1'), width=300)),
Figure('Matplotlib 2', Img(plt.figure('plot2'), width=300)),
],
[
Figure('Numpy Array', Img(img1, width=300)),
],
]).save('/tmp/display.html')
```

نحوه نصب
نصب پکیج whl dech-0.0.1:
pip install dech-0.0.1.whl
نصب پکیج tar.gz dech-0.0.1:
pip install dech-0.0.1.tar.gz