All Products
Search
Document Center

Application Real-Time Monitoring Service:Compatibility requirements of the ARMS agent for Python

Last Updated:Nov 04, 2024

This topic lists the supported Python versions, third-party components, and frameworks for the ARMS agent for Python.

Supported Python version

Python 3. For more information, see Python 3.

Usage notes

  • If you need to use Gunicorn for application startup, change unicorn to gunicorn in the command.

    Use Unicorn:

    unicorn -w 4 -b 0.0.0.0:8000 app:app

    Use Gunicorn:

    gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 app:app
  • If Gevent is used, set the GEVENT_ENABLE environment variable to true.

    Assuming that your application contains the following code:

    from gevent import monkey
    monkey.patch_all()

    Set the GEVENT_ENABLE environment variable to true.

    GEVENT_ENABLE=true

Supported components

Large language model

Component

Python Package Index (PyPI) Repository address

Minimum version

Maximum version

OpenAI

https://pypi.org/project/openai/

V1.0.0

Not specified

Dashscope

https://pypi.org/project/dashscope/

V1.0.0

Not specified

Llama-index

https://pypi.org/project/llama-index/

V0.10.5

V0.10.43

Langchain

https://pypi.org/project/langchain/

V0.1.0

Not specified

RPC framework

Component

PyPI Repository address

Minimum version

Maximum version

FastAPI

https://pypi.org/project/fastapi/

V0.58

Not specified

asgiref

https://pypi.org/project/asgiref/

V3.0

Not specified

aiohttp

https://pypi.org/project/aiohttp/

V3.0

Not specified

Django

https://pypi.org/project/Django/

V1.10

Not specified

WSGI

None

Not specified

Not specified

Flask

https://pypi.org/project/Flask/

V1.0

Not specified

Requests

https://pypi.org/project/requests/

V2.0

Not specified