Skip to content
/ webxdc-python Public template

Template project for Webxdc development with Python!

License

Notifications You must be signed in to change notification settings

webxdc/webxdc-python

Repository files navigation

Webxdc development with Python

This is a template project to develop Webxdc apps with the Python programming language!

Requirements

To transpile Python code into JavaScript, Transcrypt is used, to install it and also other tools to minify/optimize the final webxdc, run:

 python -m pip install -r ./requirements.txt

Developing

The entry point of your app is the app.py file, you can create python packages in the same folder and then import them from app.py

Building

To package your Webxdc:

python ./build.py

The output is a file with .xdc extension.

Testing

After building, you can test the app. The project comes with an small simulator that allows to test your app in your browser, to do it just go to the root of the project and run:

python -m http.server

then open in your browser the URL that is displayed in the shell.

Releasing

To automatically build and create a new GitHub release with your .xdc file:

git tag v1.0.1
git push origin v1.0.1

Try it now!

GitHub Template

Create a repo from this template on GitHub.