Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

sabeelcoder/pyscript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 

Repository files navigation

What is PyScript

tl;dr

PyScript is a Pythonic alternative to Scratch, JSFiddle or other "easy to use" programming frameworks, making the web a friendly, hackable, place where anyone can author interesting and interactive applications.

To demonstrate pyscript, seethe pyscript folder.

Longer Version

PyScript is a meta project that aims to combine multiple open technologies to create a framework for users to use Python (and other languages) to create sophisticated applications in the browser. It highly integrate with the way the DOM works in the browser and allows users to add logic, in Python, in a way that feel natural to web as well as Python developers.

Try PyScript

To try PyScript, import the pyscript to your html page with:

<link rel="stylesheet" href="pyscript.css" /><script defer src="pyscript.js"></script>

At that point, you can then use PyScript components in your html page. PyScript currently implements the following elements:

  • <py-script>: that can be used to define python code that is execute withing the web page. The element itself is not rendered to the page and only used to add logic
  • <py-repl>: creates a REPL component that is rendered to the page as a code editor and allows users to right code that can be executed

Check out the/examples folder for more examples on how to use it, all you need to do is open them in Chrome.

How to Contribute

To contribute:

  • clone the repo
  • cd into the main project folder withcd pyscriptjs
  • install the dependencies withnpm install
  • runnpm run dev to build and run the dev server. This will also watch for changes and rebuild when a file is saved

Notes:

  • This is an extremely experimental project, so expect things to break!
  • PyScript has been only tested on Chrome, at the moment.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML34.5%
  • JavaScript33.5%
  • TypeScript16.1%
  • Python13.7%
  • Makefile0.7%
  • CSS0.7%
  • Other0.8%

[8]ページ先頭

©2009-2025 Movatter.jp