-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
DISCUSSION: Switch to apitools
as a dependency
#755
Comments
I've tentatively started to test how I couldn't even get In addition, it seems there are some Python 2 specific imports, for example the |
@craigcitro Can we chat about this? |
@craigcitro Can you provide a snippet or two for
|
from scratch:
there's plenty more in there -- i'm happy to do a little demo, if there's interest.
the first should already work in py3, or if not, i want to fix it. generated CLIs are furthest out, because it involves changing the codegen to not use gflags/apputils, but i don't think you care right now. for |
@craigcitro I'll take you up on that demo. It seems the thorniest parts will be
|
sure -- thursday would be best for me, but we can coordinate by email. some offhand answers:
|
@craigcitro RE: "(though, as discussed, not with media)." When did we discuss? Link? Media here means any files (i.e. non-metadata) at all or "media uploads"? Is it just a missing feature of the library or not supported by the backend? |
media means anything involving upload/download of files. apitools doesn't support it (and throws an appropriate error, i believe), but there's no support on the backend. |
Thanks for the reference! It totally slipped my mind. |
Two quick notes:
client = storage_client.StorageV1(credentials=FOO, get_credentials=False) sufficient to dodge this overhead? Overarching theme here: what implicit magic do I need to worry about to turn off? Secondary to all this, is I noticed a big fat
Is there a corresponding bug in the repo? |
I filed google/apitools#14 to complain about start-up / import times in |
replying to your comment above:
|
I think we may need to use the generated CLI for storage to replace |
do you mean the generated client (eg |
I mean |
cool -- those don't involve any of the generated CLI code i linked above. |
Cool, my bad on wrong word choice. Any thoughts on replacing |
"cli" not being a subset of "client" would make my life much easier. honestly, though, i think the fact that i still "clinet" instead of "client" around 15% of the time means that something is deeply wrong with my brain. 😉 i'm looking through the code in blob -- if you're going to use a generated client, i suspect that you can drop most of it. going to make a comment on the PR shortly. |
Saw the comment. Is the |
if you use a generated client, that all goes away. you'll just pass an upload with the request, and (if you set |
This was an issue before
apitools
was on PyPI and before it's dependencies were Py3 compatible. Now neither of these are blockers.See #754 for context.
The text was updated successfully, but these errors were encountered: