PayloadSecurity / VxAPI

A generic interface and CLI for all endpoints of the Falcon Sandbox API
GNU General Public License v3.0
209 stars 58 forks source link

How to import VxAPI as a package? #51

Open barismutan opened 2 years ago

barismutan commented 2 years ago

Hello again, previously I have been using the API with subprocess.run and the relevant parameters. But now I am trying to import it as a package and create an object of the ApiCaller class to make API calls. I have tried adding init.py files in all the directories and whatnot; however I am either getting AttributeError: module 'VxAPI' has no attribute 'api'. What would you recoomend me to do?

barismutan commented 2 years ago

either AttributeError: module 'VxAPI' has no attribute 'api' or ImportError: No package named 'exceptions' *

kkochanski commented 2 years ago

Howdy! Unfortunately I'm not that into that language to be able to provide an answer. I can only assume that to achieve that, that project should be pushed to pip and become importable. Or maybe there's some other way to make it importable.

As mentioned, I won't be able to help, though when you will know how to do that, please let me know. In that case you can try to push Pull-Request with changes or I will.

barismutan commented 2 years ago

Thank you for your response. Sure, I kind of got something working (it is not that stable as of now) but I will let you know if I get it to fully work.