Jenkins Job to run md5sum on nextcloud files

I am creating a Jenkins job to connect to Nextcloud.
The Jenkins job calls a python script where I have successfully used webdav and pycurl to access files in my nextcloud account.

What I am trying to do next is in python script to calculate the md5sum and run a virus scan on files nextcloud. Can this be done directly on nextcloud through a script call to nextcloud?

Thank you.