This is a template project to develop Webxdc apps with the Python programming language!
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
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
To package your Webxdc:
python ./build.py
The output is a file with .xdc
extension.
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.
To automatically build and create a new GitHub release with your .xdc
file:
git tag v1.0.1
git push origin v1.0.1