Devtools is a Python utils tools to make building, testing and deploying hardfight projects easy
Project description
Hardfight Devtools
Build, test and deploy Hardfight projects easly
💡 What is it
Devtools is a Python tool to make building, testing and deploying internal hardfight projects easy.
It offers all the scripting power of the python language with a lightweight API to register simple tasks in one script.
🛠️ How to install
Hardfight devtools is available as a PyPi package, you can install it using:
pip install hardfight_devtools
Note that dev_tools is assumed installed to build any Hardfight project.
❓ How to use
This repository itself uses dev_tools to perform build and deploy routines.
On a new project, create a devtools_script.py
file on the root.
To declare a new task, add the @dev_tools_task
decorator to the function of your task.
from dev_tools.dev_tools_api import dev_tools_main, dev_tools_task
@dev_tools_task(name='hello-world',
desc='Prints "Hello world!" as an example task')
def print_hw():
print('Hello world!')
Devtools provides a bunch of usefull scripts and functions for build, test and deploy automations (see dev_tools.utils
module).
Don't forget to call the dev_tools_main
method at the end of your script to make it functional.
# Script entry point
if __name__ == '__main__':
dev_tools_main()
You can then execute your tasks using: python3 dev_tools.py <tasks_1> [task_2] ...
General conventions on hardfight projects
- If you need additional python scripts for your tasks, add them in the
misc/scripts
directory in your repository - All files related to the meta-project or build (README images, requierments...) have to be in the
misc/files
directory in your repository
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hardfight_devtools-0.6.tar.gz
.
File metadata
- Download URL: hardfight_devtools-0.6.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b85931cb838d324a89588be835ca4df7d7ca8fa391b9c01637753b421cf6502 |
|
MD5 | 4a7e2969762b9454926d37d9c0473197 |
|
BLAKE2b-256 | cf9e72a5388c29ab6d41a499c532bfa569a002698f8c5b60dcb61d06aa86b099 |
File details
Details for the file hardfight_devtools-0.6-py3-none-any.whl
.
File metadata
- Download URL: hardfight_devtools-0.6-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c985c31840e83e5a85cc071521013e8877662fecbb06143261fba213a24c169 |
|
MD5 | fa1813e1de18f0816dbfbd6db5c07f93 |
|
BLAKE2b-256 | cfd8fcb962e9d16abd05a59e040d87d7749df0e77cfcc6b372d2c6b5c7792440 |