This is a Cookiecutter template for a Cartesi DApp written in Python and using the python-cartesi framework and Sunodo.
This template initialized a minimal DApp with the following features:
- Sample implementation of the "echo" example
- Using Cartesi CLI as the dapp build system
- Requirements managed by pip-tools
- Test case for the sample dapp using pytest
To use this template, it is assumed you already have the following dependencies:
- Cookiecutter installed in your python environment
- NodeJS version 18 available
- Cartesi CLI installed (
npm install -g @cartesi/cli
)
To create your project, you can execute:
cookiecutter gh:prototyp3-dev/cookiecutter-python-cartesi
You will be asked the following questions:
- Project Name: The full name of the project. This will be used in the README title, and also to seed the next questions
- Name for the root directory of the repository: This will be the name of the directory being created to hold the new project.
- Name for the main package in the repository: This is the name of the Python package within the repository that will contain your code.