Skip to content

anthill-platform/anthill-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anthill Tools

Tool set to communicate with anthill platform

Installation

pip3 install git+https://github.com/anthill-platform/anthill-tools.git

Authentication

Each of the tools below require authentication. Easiest way would be define ANTHILL_USERNAME and ANTHILL_PASSWORD environment variables before making the call. But you can also pass these via --username and --password command line arguments, but you are exposing these in that case.

DLC content deployment

This configurations allows to deliver various bundles onto DLC service.

Command line usage:

python3 -m anthill_tools.admin.dlc.deployer \
  --environment="<environment location>" \
  --name="<game name>" \
  --version="<game version>" \
  --gamespace="<gamespace name>" \
  --config "<JSON configuration file>.json"

Python usage:

from anthill_tools.admin.dlc import deployer

deployer.deploy(
    "http://environment-dev.anthill",
    "test",
    "1.0",
    "root",
    "<JSON configuration file>.json",
    username="<username>",
    password="<password>")

The bundles to deliver are read from the JSON configuration file. Example of that file:

{
    "bundles": {
        "test.zip": {
            "path": "/Users/.../bundles/test.zip",
            "filters": {
                "os.windows": true,
                "os.osx": true,
                "os.linux": true,
                "os.ios": true,
                "os.android": true
            },
            "settings": {}
        },
        "test2.zip": {
            "path": "/Users/.../bundles/test2.zip",
            "filters": {
                "os.windows": true,
                "os.osx": true,
                "os.linux": true,
                "os.ios": true,
                "os.android": true
            },
            "settings": {}
        }
    }
}

Game Servers deployment

This configurations allows to deliver Game Server builds onto Game Master service. Each build should be packed into a zip file before deployment.

Command line usage:

python -m anthill_tools.admin.game.deployer \
  --environment="<environment location>" \
  --name="<game name>" \
  --version="<game version>" \
  --gamespace="<gamespace name>" \
  --filename "<game server files packed into one zip file"

Python usage:

from anthill_tools.admin.game import deployer

deployer.deploy(
    "http://environment-dev.anthill",
    "test",
    "1.0",
    "root",
    "game_server.zip",
    switch="true",
    username="<username>",
    password="<password>")

About

Anthill command line tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages