Official BAMSI python API.
git clone https://github.com/NGDSG/BAMSI-API.git
from src.api import BAMSIApiClient
KEY = 'test'
IP='localhost:8888/'
bamsi_client = BAMSIApiClient(KEY, IP)
active_workers = bamsi_client.active_workers()
# Define a job
query = '{"regions" : "1:1-30000", "subpops" : "CHB,JPT,CHS", "format" : "b"}'
query_args = json.loads(query)
# Launch the job
job_tracking_id = bamsi_client.spawn(**query_args)
job_status = bamsi_client.job_status(tracking=job_tracking_id)
See examples/ for more.