[Python] New Relic app name register using New Relic Python agent

Hi Community,
I am setting up the APM. I would like to set the application name using the Code-only method with Python Agent. So I don’t need to use Newrelic Environment variable or initialization file.

Is there any method or parameter there which I can invoke and register the Application Name from within my python code.?

If anyone can help on that. Thanks.

Hi, @sabirpiludiya: All of the Python agent API methods are listed here: Python agent API | New Relic Documentation. I do not see a function for setting the application name.