Installation and Setup

Once you have signed up for an account, you may set the SIGOPT_API_TOKEN environment variable. You can find your tokens on the API Tokens page.

Install the Python Client

$ pip install sigopt

Alternatively, you can manually set the API token in Python.

from sigopt import Connection
conn = Connection(client_token="USER_TOKEN")

Proxies

If you are connecting to SigOpt behind a proxy, you may need to configure your client appropriately.

from sigopt import Connection
conn = Connection(client_token="USER_TOKEN")
conn.set_proxies({
  'http': 'http://10.10.1.10:3128',
  'https': 'http://user:pass@10.10.1.10:1080',
})

See the documentation for the requests module for more information.

Last updated