Pytest testrail plugin

Hi,

Working on automation using appium and python and pytest framework.
Can anyone please share code of pytest testrail plugin.
A sample example how to setup and use of it.

Thanks
Shashi