Learn how the find the documentation for the Python sdk


Vela Python SDK is a client to perform operations on Vela objects or view content in a new way to integrate into applications.

For a complete list of APIs and examples, please take a look at the Python Reference documentation.


Python 2.7 and 3.4+

Get build info example

Below is a sample Go program demonstrating how to authenticate and get a build with the Python SDK:

from __future__ import print_function
import time
import vela
from import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = vela.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
configuration.api_key_prefix['Authorization'] = 'Bearer'

# Configure API endpoint = ''

# create an instance of the API class
api_instance = vela.BuildsApi(vela.ApiClient(configuration))

    api_response = api_instance.get_builds(org="go-vela",repo="sdk-python")
except ApiException as e:
    print("Exception when calling BuildsApi->get_builds: %s\n" % e)