Sparks is a minimal command-line tool to manage customizable project folders from templates.
- Simple command line usage thanks to Click.
- Customizable folder, files, and file contents thanks to Jinja2.
Run the following to install:
pip install sparks
sparks create --help
Usage: sparks create [OPTIONS]
Options:
-t, --template TEXT Template folder to generate from
-o, --output TEXT Output folder to create files in. The folder will be
created if it does not already exist.
--skip-prompt Skips the prompt and uses the default settings as
specified in the spark_config.yaml.
--help Show this message and exit.
- Install
pipenv
pip install pipenv
- Clone this repository and activate your environment
bash-3.2$ git clone [email protected]:binaryart/sparks.git bash-3.2$ cd sparks bash-3.2$ pipenv shell (sparks) bash-3.2$ pipenv install --dev (sparks) bash-3.2$ pre-config install
- Make your changes in the application and test code
- Run the tests
(sparks) bash-3.2$ pytest test
- Commit your changes. The commit will fail if any of the
pre-commit
rules failed their check. Simply follow the instructions from the console to fix the check failures.
- Bump the version in
setup.py
- Merge this change to
master
branch - Generate the distribution packages and upload it to PyPI
(sparks) bash-3.2$ python setup.py bdist_wheel sdist (sparks) bash-3.2$ twine upload dist/*
Sparks is released under the MIT License.