Skip to content

Install GAM as Python Library

Jim Garrison edited this page Mar 11, 2023 · 1 revision

Install GAM as Python Library

Thanks to Jay Lee for showing me how to do this.

On Windows, you need to install Git to use the pip command.

You can install GAM as a Python library with pip.

pip install git+https://github.com/taers232c/GAMADV-XTD3.git#subdirectory=src --use-pep517
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Sample Python script to call GAM"""

import multiprocessing
import sys

import gam

if __name__ == '__main__':
# One time initialization
  if sys.platform == 'darwin':
    multiprocessing.set_start_method('fork')
  gam.initializeLogging()
#
  # Issue command, output goes to stdout/stderr
  rc = gam.CallGAMCommand(['gam', 'version'])
  rc = gam.CallGAMCommand(['gam', 'info', 'domain'])
  # Issue command, redirect stdout/stderr
  rc = gam.CallGAMCommand(['gam', 'redirect', 'stdout', 'domain.txt', 'redirect', 'stderr', 'stdout', 'info', 'domain'])

Update History

Installation

Configuration

Notes and Information

Definitions

Command Processing

Collections

Client Access

Special Service Account Access

Service Account Access

Clone this wiki locally