The python task runner
party
is an task runner written in python for python. It automates all the steps which the users need to do, like installing components, updating dependencies or getting the latest source. Also its very extensible and you can create and install plugins. You can view the documentation for more informations.
You'll need to install
first (installer script on Windows supports only Python 3.4.x).
Download one of the latest releases, and extract the ZIP/TAR package. Fire up an command prompt and run this:
$ cd bin
$ python install-win32
if you receive 'everything fine.', you can be sure that party
is installed. You'll need to add the bin directory to your PATH manually!
If you use an older version of Python you can follow the steps for Linux/OSX to manual install party!
Currently I am not able to run an Linux or OSX system and this is a manual way to install party
(would be nice if anyone could write an installer script)
- Download the latest source of
party
- Extract it to any location
- Create an new folder in your Python site packages folder with the name
party_plugins
- Copy all files from the
plugins
folder into it - Add the
bin
directory to your PATH - not required: on some systems you'll need to reboot
Now you can test if party
was successfully installed. This can be done by running this in terminal:
$ party -v
If this shows you the version informations, everything works fine.
An partyfile
is recognized by the party
CLI tool and contains the tasks you'll want to automate.
This is an simple example which uses the Git plugin:
#!=party
# you can also import everything using 'import *'
from party_plugins import git
# creating tasks need the 'task' before the 'def' keyword
task def example_task():
client = git.gitClient()
client.clone_repo('https://github.com/example/example.git')
# now we need to make it available to run the task
def runTasks():
example_task() # runs the example_task() task
These plugins are shipped with party
:
- .git: an easy to use git client for your partyfiles
- .brew: an easy to use homebrew client for your partyfiles (OSX only)
- .apt: an easy to use apt-get client for your partyfiles (UNIX only)
- .get: an easy to use download client for your partyfiles
Windows
- starting party from command line doesn't works. msys and git bash recommended
Feel free to report any issue you get here
party
is published under the terms of the MIT License.