Install the Python agent with PyPI

To install the Python agent with PyPI:

  1. Install the agent using pip.

     pip install contrast-agent

    Important

    If your application is using a version of the Python agent older than 3.0.0, it is likely it is installed with the name contrast-python-agent. Make sure to run pip uninstall contrast-python-agent before running pip install 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.

  2. Configure middleware.

  3. Configure the agent.

  4. Verify that autoconf is installed on the system where you will run the agent.

  5. Start and exercise your application as normal.

  6. Verify that your server is registered in Contrast and that it reports an instance of your application.