Canvas-markup
Canvas-markup - It lib is used to render html to image
Example
# 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'))
<style>
* {
font-family: arial;
}
</style>
Metadata
Release files for canvas-markup 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| canvas_markup-1.0.2.tar.gz | 3.9 kB | Without provenance | Details |
Release files / canvas_markup-1.0.2.tar.gz
| Download URL | canvas_markup-1.0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45cfc810689708005a3f65e499ab02ce76bc2d516c18f2dc73ca54d369139d8c
|
|
BLAKE2b-256 checksum How to use checksums |
9f7c5b625d68f9245427ee1cbc6908daf496e3440a44b5e23de491f3be7fa10d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for canvas-markup 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.