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

How I may to regenerate methods myself? #1

Closed
ezh opened this issue Oct 7, 2016 · 4 comments
Closed

How I may to regenerate methods myself? #1

ezh opened this issue Oct 7, 2016 · 4 comments

Comments

@ezh
Copy link

ezh commented Oct 7, 2016

Where is the generation code?
I think that it is most valuable part of such helper since boto3 is dynamic from nature.
Also since I have the same case as you I may test it under macos.

It would be splendid if there will be method that could recreate library API for python user on demand.

King regards.

@ezh
Copy link
Author

ezh commented Oct 7, 2016

I find boto3_interface_generator.py. Is there something like 'how to start' brief introduction?

@gehadshaat
Copy link
Member

Hey Alexey,

This is just a interface definition to help you with auto complete. The
code is already generated for you.

You use boto3 as usual but u just add type hint to it, I know it works for
PyCharm. So after installing pyboto3 you do the following

import boto3
s3 = boto3.client('s3')""" :type : pyboto3.S3 """# s3. -> should give
you autocomplete for s3 methods in pycharm

The project need more work as I would love to switch to using the JSON for
interface generation. Would love it if you are interested in contributing.
let me know if you have any question.

On Fri, Oct 7, 2016 at 5:12 AM, Alexey Aksenov notifications@github.com
wrote:

I find boto3_interface_generator.py. Is there something like 'how to
start' brief introduction?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGa43pHXOwXFWXItehExqoZ8ZAgm8cuQks5qxjcbgaJpZM4KQ9WP
.

Regards,
Gehad Shaat

@ezh
Copy link
Author

ezh commented Oct 7, 2016

I clearly understand this. And this is not acceptable for me. I want to be sure that I use the latest (or the specific, by date) API (may be tagged in git, with specific virtualenv, etc...). So I'm interested in generation part of this project. If such thing is out of scope, please excuse me for bother.

@gehadshaat
Copy link
Member

You will still use the latest API. The generation should work fine.

Call this function to generate all the services
generate_all_services_code(dir_path)

On Oct 7, 2016, at 10:48 AM, Alexey Aksenov notifications@github.com wrote:

I clearly understand this. And this is not acceptable for me. I want to be sure that I use the latest (or the specific, by date) API (may be tagged in git, with specific virtualenv, etc...). So I'm interested in generation part of this project. If such thing is out of scope, please excuse me for bother.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@ezh ezh closed this as completed Oct 9, 2016
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

2 participants