---
title: "Get the attributes of a Python build."
method: GET
path: "/api/builds/{id}/python-attributes"
tags: ["Builds", "Develocity"]
---

# Get the attributes of a Python build.

`GET /api/builds/{id}/python-attributes`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/python-attributes`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/python-attributes/get.ts> (a function with typed inputs; its response is checked against the schema)

This model is Python specific and cannot be requested for another build tool.

## Response `200`

The attributes of a Python build.

- PythonAttributes: The attributes of a Python build.
  - `id` string, required: The Build Scan ID.
  - `buildStartTime` integer, required: The time when the build starts, as milliseconds since Epoch.
  - `buildDuration` integer, required: The duration of the build, as milliseconds.
  - `exitCode` integer: The exit code of the Python process.
  - `exception` string, nullable: The exception message thrown by the Python process, if any.
  - `pythonVersion` string, required: The Python version used in the build.
  - `pythonAgentVersion` string, required: The version of the Develocity Python agent.
  - `command` string[], required: The command and arguments requested in the build.
  - `links` BuildAttributesLink[], required: The list of Build Scan links.
    - `label` string, required: The label of the Build Scan link.
    - `url` string, required: The url of the Build Scan link.
  - `tags` string[], required: The list of Build Scan tags.
  - `values` BuildAttributesValue[], required: The list of Build Scan values.
    - `name` string, required: The name of the Build Scan value.
    - `value` string: The value of the Build Scan value. `null` if the Build Scan value is not set.
  - `user` string, nullable: The username of the user that ran the build.
  - `host` string, nullable: The hostname of the user that ran the build, if set.
  - `hasFailed` boolean, required: True when the build fails, false otherwise.
  - `projectName` string, nullable: The name of the project. `null` in case of very early build failure.

## Other responses

- `400`: The request cannot be fulfilled due to a problem.
- `404`: The referenced resource either does not exist or the permissions to know about it are missing.
- `500`: The server encountered an unexpected error.
- `503`: The server is not ready to handle the request.

---

[API](https://skmtc.dev/develocity/apis/develocity-api.md) - [All operations](https://skmtc.dev/develocity/apis/develocity-api/llms.txt) - [OpenAPI document](https://skmtc.dev/develocity/apis/develocity-api/revisions/b49835fbf065?raw)
