Ixian¶
Ixian is a modular task tool written in python3. It is intended to be a replacement for Make, emulating and expanding on some of it’s most useful features.
Installation¶
pip install ixian
Setup¶
Create an ixian.py file in the directory where you intend to call ix from. Optionally set
IXIAN_CONFIG to tell ixian where to find it.
Within ixian.py create an init method that loads modules and configures settings.
from ixian.config import CONFIG
from ixian.module import load_module
def init():
# Load modules which contain tasks
load_module('ixian.modules.core')
# Update settings
CONFIG.PROJECT_NAME = 'testing'
Create a Task¶
Tasks are created by extending the task class.
from ixian.task import Task
class MyTask(Task):
"""
The docstring will be used as help text.
"""
name = 'my_task'
short_description = 'description will be shown in general help'
def execute(self, *args, **kwargs)
print(args, kwargs)
Run a task¶
The task may then be called using the ix runner.
ix my_task
Args passed to the runner are passed to the task as args
ix my_task arg1 arg2