canvas-markup-1.0.2


توضیحات

Canvas-markup generates images
ویژگی مقدار
سیستم عامل -
نام فایل canvas-markup-1.0.2
نام canvas-markup
نسخه کتابخانه 1.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Xpos587
ایمیل نویسنده x30827pos@gmail.com
آدرس صفحه اصلی https://github.com/Xpos587/Canvas-markup-py
آدرس اینترنتی https://pypi.org/project/canvas-markup/
مجوز MIT License, Copyright (c) 2022 Xpos587, see LICENSE file.
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) <img style="border-radius: 5%" src="https://github.com/Xpos587/Canvas-markup-py/blob/master/logo.png?raw=true" alt></img> <br> <br> <br> Canvas-markup ============= Canvas-markup - It lib is used to render html to image #### **Example** ```python # main.py: import canvas_markup import asyncio markup = canvas_markup.Markup() # Rendering the file index.ejs and saving it as a png. markup.renderFile('./index.html', { 'title': 'Markup', 'description': 'Made with Canvas-Markup©' }) # Setting the viewport of the display to 1920x1080. markup.setViewport(1920, 1080) asyncio.run(markup.save('./image.png')) ``` <a href="https://github.com/Xpos587/Canvas-markup-py/blob/master/index.html">See index.html</a> <style> * { font-family: arial; } </style>


نحوه نصب


نصب پکیج whl canvas-markup-1.0.2:

    pip install canvas-markup-1.0.2.whl


نصب پکیج tar.gz canvas-markup-1.0.2:

    pip install canvas-markup-1.0.2.tar.gz