Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pywebcanvas

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pywebcanvas

A library that allows users to interact with the HTML Canvas with 100% Python + HTML.

  • 0.3.0
  • PyPI
  • Socket score

Maintainers
1

pywebcanvas

pywebcanvas is a library that allows users to interact with the HTML Canvas with 100% Python + HTML.

Getting Started

Just add the following to an html file and you are ready to go!

Between the head tags, add pyscript and pywebcanvas:

<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />                                                         
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<py-env>
  - pywebcanvas
</py-env>

In the body, you can customize the following:

<py-script>
import pywebcanvas as pwc                                                                                                            

canvas = pwc.Canvas(800, 600)                                                                                                        
canvas.background.fill("blue")                                                                                                       
text = pwc.Text(text="Hello World from pywebcanvas!", x=100, y=100, size=25, color="yellow")                                         
canvas.render(text)
</py-script>

Documentation

Checkout the following to learn how to use this project:

  • pywebcanvas
  • pyscript
  • pyodide
  • python
  • html

Credits

This project is made possible by the developers of pyscript, pyodide, and many others. Licensed under LGPL-3.0-or-later Copyright (C) 2022 Isaac Beverly

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc