Skip to content

anthill-platform/anthill-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6331d26 · Mar 12, 2023

History

8 Commits
Mar 12, 2023
Jan 22, 2017
Jan 22, 2017
Mar 8, 2023
Mar 12, 2023

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