How to add Python dependencies to 3rd party integrations

Hi! I'm wondering if it's possible to add a python wheel to a third party integration? With GitSync I'm able to push new or updated wheels to custom integrations but when I do this with a third party one, pull then push, the file get's deleted.

I see a need of having a standardized library for sending metrics to an internal monitoring system on customized SOAR connectors.

0 4 275
4 REPLIES 4

Hey @Decker_BD ,

Can you elaborate on the how are you using GitSync? Also, what is meant by 3rd party integration in this case? Thanks

Thanks for the response!

I'm using GitSync to sync custom code to the Devo integration--maybe that's called marketplace integration. If I want to add a custom whl that we build for all integrations to use, can this be done for the marketplace integrations? If so how would I do that? 

You could create a new manager (python class). In there create a new class (sub class). You could then inherit the stock manager class into this subclass. https://www.w3schools.com/python/python_inheritance.asp

Then in your actions you could just import that subclass and it would also have all the method from the parent class.

 Example:

# market manager
class Manager:
    def __init__(self, something):
        self.something = something
    def method(args):
        """Does soemthing cool""""

# new manager
from manager import Manager
class SubManager(Manager)
    def custom_method(arg):
        """Does something even cooler"""
# IN your action you would import the submanager and have access to most of the parents variables by calling self.something

I just wanted to add something else after re-reading the question. For installation of custom dependencies into a marketplace integration. The only current way to do this is by copying the integration. This allows you to edit the setting of the integration to install new dependencies. 

A risk with this is that copy is no longer updated.