Skip to main content

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

build

💡 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 dev_tools.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

hardfight_devtools-0.1.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

hardfight_devtools-0.1-py3-none-any.whl (14.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page