Skip to content

Commit cd762ae

Browse files
@scalabli🚀
1 parent bdbf86b commit cd762ae

File tree

127 files changed

+38635
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+38635
-1
lines changed

‎CODE_OF_CONDUCT.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Code of Conduct
2+
3+
The Code of Conduct is available in the pyscript Governance repo.
4+
See https://github.com/pyscript/governance/blob/main/CODE-OF-CONDUCT.md

‎README.md

+41-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
# pyskit
1+
# PySkit
2+
3+
## What is PySkit
4+
5+
### tl;dr
6+
PySkit 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.
7+
8+
To get started see [GETTING-STARTED](GETTING-STARTED.md).
9+
10+
For examples see [the pyskit folder](pyskitjs).
11+
12+
### Longer Version
13+
PySkit 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 integrates with the way the DOM works in the browser and allows users to add logic, in Python, in a way that feels natural to web as well as Python developers.
14+
15+
## Try PySkit
16+
17+
To try PySkit, import the appropriate pyskit files to your html page with:
18+
```html
19+
<link rel="stylesheet" href="https://github.com/scalabli/pyskit/blob/main/pyskit.css" />
20+
<script defer src="https://github.com/scalabli/pyskit/blob/main/pyskit.js"></script>
21+
```
22+
At that point, you can then use PySkit components in your html page. PySkit currently implements the following elements:
23+
24+
* `<py-skit>`: that can be used to define python code that is executable within the web page. The element itself is not rendered to the page and only used to add logic
25+
* `<py-repl>`: creates a REPL component that is rendered to the page as a code editor and allows users to write code that can be executed
26+
27+
Check out the [pyskitjs/examples](pyskitjs/examples) folder for more examples on how to use it, all you need to do is open them in Chrome.
28+
29+
## How to Contribute
30+
31+
To contribute:
32+
33+
* clone the repo `git clone https://github.com/scalabli/pyskit`
34+
* cd into the main project folder with `cd pyskitjs`
35+
* install the dependencies with `npm install` - make sure to use nodejs version >= 16
36+
* run `npm run dev` to build and run the dev server. This will also watch for changes and rebuild when a file is saved
37+
38+
* This is an extremely experimental project, so expect things to break!
39+
* PySkit has been only tested on Chrome, at the moment.
40+
41+

‎pyskit.css

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)