Skip to main content

Install Python agent manually with PyPi

To install the Contrast Python agent with PyPI:

  1. Verify that a C compiler and C standard library headers are available on the system where you are installing the agent. Package names may differ across platforms.

  2. Install the agent using pip:

    pip install -U contrast-agent

    Tip

    If you have a requirements.txt file, you can add contrast-agent to that file, and install with pip install -r requirements.txt.

  3. Configure the Python agent.

  4. Start and exercise your application using the Contrast Runner.

Verify the agent deployment

Interact with your application as you normally would. For example, interact with your application's web interface or send API commands.

  1. In the Agent Wizard, select View agent activity to verify that your agent appears in the agents list.

  2. Verify that you see the name of your application in the applications list.

    • In Northstar, select Applications from the left navigation.

    • In Contrast, select Applications from the header.

  3. Verify that you see the name of your local server in the servers list.

    • In Northstar, select Servers from the left navigation.

    • In Contrast, select Servers from the header.