Support import as module???
katrinevr412 opened this issue · comments
Hey what's the reason this tool must be invoked as a standalone script??? I see there's a make_request
method but if I do
import awscurl
awscurl.make_request(...)
will throw exception! Can we support this???
What is the exception you are getting? Currently also trying to make this work.
It just can't find the module. awscurl
module doesn't seem to have any submodules
This seems to work for me:
from awscurl.awscurl import make_request
Then you just have to call make_request
with the same parameters as in here.
The above should work - thanks @djrmarques and good luck @katrinevr412!