---
component: python
version: "0.10"
slug: python/getting-started
canonical_url: "https://docs.gradle.com/develocity/python/0.10/getting-started/"
title: "Getting Started With Develocity for Python"
description: "Install the Develocity Python agent, configure Build Scan publication, and explore console log and pytest test results captured during Python tool invocations."
keywords:
  - "python agent"
  - "installation"
  - "CI"
  - "configuration"
status: current
---

<!-- llms-index: https://docs.gradle.com/develocity/llms.txt -->

# Getting Started With Develocity for Python

<a id="preamble"></a>

> [!IMPORTANT]
> The Develocity Python agent is in Beta. Python support isn’t enabled by default. To enable it, contact Gradle.

<a id="installation"></a>

## Installation

Develocity server installation isn’t covered here. Consult one of the following installation manuals for help with installation:

*   [Self-Hosted Kubernetes Installation Guide](https://docs.gradle.com/develocity/2026.2/installation/kubernetes-installation/)
    
*   [Self-Hosted Standalone Installation Guide](https://docs.gradle.com/develocity/2026.2/installation/standalone-installation/)
    
*   [Amazon EKS Kubernetes Installation Guide](https://docs.gradle.com/develocity/2026.2/installation/aws/aws-eks-cluster/)
    
*   [Amazon EC2 Standalone Installation Guide](https://docs.gradle.com/develocity/2026.2/installation/aws/aws-ec2-standalone/)
    
*   [Azure AKS Kubernetes Installation Guide](https://docs.gradle.com/develocity/2026.2/installation/azure/azure-aks-cluster/)
    
*   [Azure VM Standalone Installation Guide](https://docs.gradle.com/develocity/2026.2/installation/azure/azure-vm-standalone/)
    
*   [Google GKE Kubernetes Installation Guide](https://docs.gradle.com/develocity/2026.2/installation/google-cloud/gke-kubernetes/)
    
*   [Google Compute Engine Standalone Installation Guide](https://docs.gradle.com/develocity/2026.2/installation/google-cloud/gce-standalone/)
    

The examples in this guide use `develocity.example.com` as the Develocity hostname with HTTPS enabled.

<a id="develocity-python-agent"></a>

### Develocity Python Agent

To use Build Scan, you must apply the [Develocity Python agent](https://docs.gradle.com/develocity/python/0.10/python-agent/) to your project.

<a id="setup"></a>

#### Setup

The Develocity Python agent is a Python package, but it isn’t publicly available on PyPI. To install it in your virtual environment, you can use the command line below.

```shell
pip install https://develocity-python-pkgs.gradle.com/develocity_agent-0.10-py3-none-any.whl
```

Alternatively, you can add the Develocity Python agent directly in your `requirements.txt` file (or equivalent):

**requirements.txt:**

```
https://develocity-python-pkgs.gradle.com/develocity_agent-0.10-py3-none-any.whl
```

> [!TIP]
> To instrument Poetry runs, you can add the Develocity Python agent to Poetry’s own environment with the following command: Note that this won’t instrument the tools executed by Poetry, only the Poetry commands themselves. To instrument the tools executed by Poetry, install the Develocity Python agent in your requirements.txt file (or equivalent).

> [!TIP]
> Python support needs to be enabled in your license to use the Develocity Python agent. Contact Gradle to enable Python support.

After installing the agent, you can use it in your Python runs.

Publishing a Build Scan to [Develocity at gradle.com](https://gradle.com/scans/gradle/) isn’t supported. The minimum configuration required is the Develocity server URL.

The agent is configured through a file named `.develocity.py` which should be located at root of your Python project. The configuration file must define a function called `develocity_configuration` which takes as parameter the current configuration and returns the updated configuration. Following is an example of minimal configuration:

**.develocity.py:**

```
def develocity_configuration(configuration):
    configuration.develocity_url = 'https://develocity.example.com'
    return configuration
```

To publish to a Develocity instance that requires authentication, configure an access key. See [Authenticating With Develocity](https://docs.gradle.com/develocity/python/0.10/python-agent/#authenticating-with-develocity) in the Python agent user manual.

<a id="build-scan"></a>

## Build Scan

A Build Scan is a record of each supported Python tool run, captured and published to your Develocity instance. Each Build Scan includes a console log and a searchable history across all runs; pytest runs also include test results.

<a id="quick-start"></a>

### Quick Start

Build Scan publication is automatically enabled for all supported tool runs when you apply the Develocity Python agent. As the build completes, the last lines of output will be similar to:

**Output:**

```
....
Publishing Build Scan to Develocity...
https://develocity.example.com/s/3z475bz247h5g
....
```

Follow that link to view your Build Scan.

Build Scan publication is passive with regard to the build process: it doesn’t affect the outcome or outputs of your build. It’s safe to add the necessary configuration to your project and check it into version control, enabling Build Scan publication for all users of the build. The Develocity Python agent won’t cause build failures even when there is no connection to the Develocity server when trying to publish.

<a id="find-and-view-any-build-scan"></a>

### Find and View Any Build Scan

Search through all captured Build Scan records by going to `https://develocity.example.com/scans`.

![Build Scan Overview](https://docs.gradle.com/develocity/python/0.10/getting-started/../_images/scan-list.png)

Build Scan Overview

Search by project name, username, build outcome, start time, and more. By default, the list shows the most recent scans first.

The listing can also surface insights you didn’t know to look for:

*   Recurring failures across your organization’s tool runs
    
*   Tool invocations taking longer than expected in certain cases
    
*   Users running more tool invocations than necessary, adding avoidable build time
    

<a id="inspect-console-log"></a>

### Inspect Console Log

The console log is included in your Build Scan. Use the left navigation menu to visit the `Console Log` section.

![Console Log Overview](https://docs.gradle.com/develocity/python/0.10/getting-started/../_images/console-log.png)

Console Log Overview

This section displays all the console log emitted by the Python run, except the logs produced by processes forked from Python.

<a id="inspect-test-results"></a>

### Inspect Test Results

If your build ran pytest tests, their results are included in your Build Scan. Use the left navigation menu to visit the `Tests` section.

![Tests Overview Page](https://docs.gradle.com/develocity/python/0.10/getting-started/../_images/tests.png)

Tests Overview Page

This section shows the results of all the tests that ran during your build, along with their outcome and durations. The results are broken down by _process_, _test file_ and _test case_. Select any _test file_ or _test case_ to see details about each of their individual executions, in case of test retry. The _total time_ is available for _processes_, _test files_ and _test cases_. Generally, it corresponds to the wall clock time that an execution lasted. See [Viewing Test Results](https://docs.gradle.com/develocity/python/0.10/python-agent/#viewing-test-results) in the Python agent user manual for details.

<a id="custom-tags-values-and-links"></a>

### Custom Tags, Values, and Links

Each Build Scan can be enriched with custom metadata: see [Extending Build Scan](https://docs.gradle.com/develocity/python/0.10/python-agent/#extending-build-scans) in the Python agent user manual for the available options. In particular:

*   VCS information such as commit identifiers and branch names
    
*   Tags for different types of builds (for example, `CI` vs. `local`)
    
*   Links to the corresponding CI pipeline run
    

<a id="whats-next"></a>

## What’s Next

*   To integrate Python invocations in Gradle builds, see [Gradle integration](https://docs.gradle.com/develocity/python/0.10/python-agent/#gradle-integration) in the Develocity Python agent user manual.
    
*   For the full configuration reference, see the [Develocity Python agent user manual](https://docs.gradle.com/develocity/python/0.10/python-agent/).