Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support import as module??? #151

Open
katrinevr412 opened this issue Feb 4, 2023 · 4 comments
Open

Support import as module??? #151

katrinevr412 opened this issue Feb 4, 2023 · 4 comments

Comments

@katrinevr412
Copy link

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???

@djrmarques
Copy link

What is the exception you are getting? Currently also trying to make this work.

@katrinevr412
Copy link
Author

It just can't find the module. awscurl module doesn't seem to have any submodules

@djrmarques
Copy link

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.

@okigan
Copy link
Owner

okigan commented Feb 9, 2023

The above should work - thanks @djrmarques and good luck @katrinevr412!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants