-
Notifications
You must be signed in to change notification settings - Fork 112
Comparing changes
Open a pull request
base repository: google/apitools
base: v0.5.16
head repository: google/apitools
compare: master
Commits on Aug 22, 2017
-
Fix a bad bounds check for downloads.
Previously, if we created a download with `auto_transfer=True` with the full download smaller than the default `chunksize`, and then called `StreamInChunks`, we'd end up downloading the full content twice. This was due to a bad bounds check in setting a range header -- we'd end up with a header like `Range: bytes=100-99`, and the server would ignore the start value, giving us all the bytes again. This adds a fix and a test.
Configuration menu - View commit details
-
Copy full SHA for 9e706f9 - Browse repository at this point
Copy the full SHA 9e706f9View commit details
Commits on Oct 4, 2017
-
Change encoding.DictToProtoMap() to match how AdditionalProperty mess…
…ages are used in practice, and rename the method to better reflect what it does.
Configuration menu - View commit details
-
Copy full SHA for 787e53f - Browse repository at this point
Copy the full SHA 787e53fView commit details -
Merge pull request #181 from kevinli7/master
Change encoding.DictToProtoMap() to match how AdditionalProperty messages are used in practice, and rename the method to better reflect what it does.
Configuration menu - View commit details
-
Copy full SHA for 91d2506 - Browse repository at this point
Copy the full SHA 91d2506View commit details
Commits on Oct 26, 2017
-
Merge pull request #174 from craigcitro/bounds
Fix a bad bounds check for downloads.
Configuration menu - View commit details
-
Copy full SHA for 1c640d9 - Browse repository at this point
Copy the full SHA 1c640d9View commit details
Commits on Nov 1, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 0048271 - Browse repository at this point
Copy the full SHA 0048271View commit details -
Merge pull request #182 from mooman219/feature-compression
Add compression support for streams Adds functionality necessary to compress streamed data on the fly, allowing for sending data in a compressed form (e.g. using the "Content-Encoding" HTTP header). Applies compression only for chunked streams, compressing each chunk as it is streamed in.
Configuration menu - View commit details
-
Copy full SHA for b9bdee9 - Browse repository at this point
Copy the full SHA b9bdee9View commit details
Commits on Nov 7, 2017
-
Add simple upload compression support. (#183)
Add simple upload compression support. Refactor compression flags for easier configuration during initialization.
Configuration menu - View commit details
-
Copy full SHA for 57873d8 - Browse repository at this point
Copy the full SHA 57873d8View commit details
Commits on Nov 8, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 4220ed9 - Browse repository at this point
Copy the full SHA 4220ed9View commit details
Commits on Nov 16, 2017
-
Update client to accommodate oauth2client>=4.0 (#184)
This changes has been needed for a while now. The main blocker seems to be the use of locked_file for caching GCE credentials. I've added a simple multiprocess lockable file cache that uses a similar approach to that used in ouath2client's multiprocess file storage. Submission of this should close issue #162.
Configuration menu - View commit details
-
Copy full SHA for 63e97c1 - Browse repository at this point
Copy the full SHA 63e97c1View commit details
Commits on Nov 17, 2017
-
Close out the rest of oauth compatibility issues (#186)
* Update client to accommodate oauth2client>=4.0 This changes has been needed for a while now. The main blocker seems to be the use of locked_file for caching GCE credentials. I've added a simple multiprocess lockable file cache that uses a similar approach to that used in ouath2client's multiprocess file storage. Submission of this should close issue #162. * Update test runner setup
Configuration menu - View commit details
-
Copy full SHA for cbf9c60 - Browse repository at this point
Copy the full SHA cbf9c60View commit details
Commits on Nov 20, 2017
-
App Engine: add thread-only fallback to process locks. (#187)
* App Engine: add thread-only fallback to process locks. * Respond to review comments
Configuration menu - View commit details
-
Copy full SHA for 9c954cd - Browse repository at this point
Copy the full SHA 9c954cdView commit details
Commits on Nov 28, 2017
-
Fix issue with copying unrecognized Enum values (#188)
Before, this resulted in an error on decoding; now, it succeeds. I removed the comment about deleting the CopyProtoMessage function since (1) there's uses of the function both internally and by users of apitools, and (2) it's clearly non-trivial to correctly copy a proto message.
Configuration menu - View commit details
-
Copy full SHA for 48e438b - Browse repository at this point
Copy the full SHA 48e438bView commit details
Commits on Dec 6, 2017
-
Fix issue where uploading files would hang if a request failed while …
…using stream_slice.StreamSlice.
3Configuration menu - View commit details
-
Copy full SHA for 7ccade5 - Browse repository at this point
Copy the full SHA 7ccade5View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd457ed - Browse repository at this point
Copy the full SHA dd457edView commit details -
Configuration menu - View commit details
-
Copy full SHA for d137b43 - Browse repository at this point
Copy the full SHA d137b43View commit details -
Merge pull request #190 from kevinli7/master
Update for v0.5.18 release.
Configuration menu - View commit details
-
Copy full SHA for 6836d47 - Browse repository at this point
Copy the full SHA 6836d47View commit details
Commits on Dec 8, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 7333bbf - Browse repository at this point
Copy the full SHA 7333bbfView commit details -
Revert change to transfer.Upload that converts streams into strings i…
…n StreamInChunks due to memory concerns. (#193)
Configuration menu - View commit details
-
Copy full SHA for 1f8bbe5 - Browse repository at this point
Copy the full SHA 1f8bbe5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c1efce - Browse repository at this point
Copy the full SHA 1c1efceView commit details -
Merge pull request #194 from kevinli7/master
Update for v0.5.19 release.
Configuration menu - View commit details
-
Copy full SHA for b1c9c71 - Browse repository at this point
Copy the full SHA b1c9c71View commit details
Commits on Dec 15, 2017
-
Fix GCE creds serialization w/ oauth2client >= 4.0 (#195)
Fix GCE creds serialization w/ oauth2client >= 4.0 When updating gsutil to use oauth2client 4.1.2 and apitools 0.5.19, testing on GCE instances showed that GceAssertionCredentials were not being written to our credential storage file. Debugging showed that this was because of a KeyError when looking for the 'scope' attribute in a serialized credential (no longer included as of oauth2client 3.0). This change maintains backward compatibility for oauth2client versions that used the 'scope' attribute while also working for current versions that don't include 'scope' when constructing a GceAssertionCredentials object.
Configuration menu - View commit details
-
Copy full SHA for 91a8932 - Browse repository at this point
Copy the full SHA 91a8932View commit details
Commits on Dec 18, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 2c0aef2 - Browse repository at this point
Copy the full SHA 2c0aef2View commit details
Commits on Dec 21, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 8d187a8 - Browse repository at this point
Copy the full SHA 8d187a8View commit details -
Merge pull request #197 from kevinli7/update-pypi
Update home page in setup.py to point to the google repo.
Configuration menu - View commit details
-
Copy full SHA for 4a3dfa2 - Browse repository at this point
Copy the full SHA 4a3dfa2View commit details
Commits on Jan 4, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 3cca793 - Browse repository at this point
Copy the full SHA 3cca793View commit details -
Merge pull request #198 from kevinli7/transfer-fix
Fix issue where resumable uploads weren't resuming correctly on 500s.
Configuration menu - View commit details
-
Copy full SHA for 8f99093 - Browse repository at this point
Copy the full SHA 8f99093View commit details
Commits on Jan 16, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 2bfa257 - Browse repository at this point
Copy the full SHA 2bfa257View commit details
Commits on Mar 6, 2018
-
Fix issue with encoding unrecognized Enum values.
Previously this caused an error when the Enum values were inside an unknown field because the base protojson codec used to copy the message during the mapping of unknown fields fails on unknown Enums. This changes the base protojson to handle unknown values for EnumFields as unrecognized fields.
Configuration menu - View commit details
-
Copy full SHA for 1414e04 - Browse repository at this point
Copy the full SHA 1414e04View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1300ce - Browse repository at this point
Copy the full SHA e1300ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48ebf5f - Browse repository at this point
Copy the full SHA 48ebf5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2f5baa - Browse repository at this point
Copy the full SHA f2f5baaView commit details -
Configuration menu - View commit details
-
Copy full SHA for b11884f - Browse repository at this point
Copy the full SHA b11884fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac71613 - Browse repository at this point
Copy the full SHA ac71613View commit details
Commits on Mar 7, 2018
-
Fixing crash on Python 3 when batch_size is set to None in the list p…
…ager (#203) Fixing crash on Python 3 when batch_size is set to None in the list pager
Configuration menu - View commit details
-
Copy full SHA for da2e038 - Browse repository at this point
Copy the full SHA da2e038View commit details
Commits on Mar 8, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 443c0fb - Browse repository at this point
Copy the full SHA 443c0fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba6047a - Browse repository at this point
Copy the full SHA ba6047aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a2e91f - Browse repository at this point
Copy the full SHA 6a2e91fView commit details
Commits on Mar 12, 2018
-
Added response_encoding parameter to api client classes. (#206)
On Python 3, httplib2 returns message contents as bytes, which cannot be read by json.loads(). It must first be decoded to text. Specifying this parameter tells the client to first decode the body before trying to parse it.
Configuration menu - View commit details
-
Copy full SHA for fd4a7b7 - Browse repository at this point
Copy the full SHA fd4a7b7View commit details
Commits on Mar 29, 2018
-
This makes a few updates to get the linter happy: * drop oauth2l and oauth2l_test * add some newlines * fix formatting in two error messages * switch `pep8` -> `pycodestyle` * drop the custom pylintrc and `run_pylint`. The "have a custom system for pylint" seemed like a good idea long ago, but python linting tools have come far enough that it's more work than it's worth.
Configuration menu - View commit details
-
Copy full SHA for 4857df3 - Browse repository at this point
Copy the full SHA 4857df3View commit details -
exclude samples & tests from install
There's no value in installing the sample modules (plus they pollute the global samples.* namespace), nor in installing the unittests. For the samples, we set the include option with find_packages so the code only searches the top level apitools dir. For the tests, because they live alongside modules vs a completely sep tree (which is fine), we have to add a series of globs to the exclude_package_data to filter them out.
Configuration menu - View commit details
-
Copy full SHA for a65ff69 - Browse repository at this point
Copy the full SHA a65ff69View commit details -
Merge pull request #209 from craigcitro/lint
Fix lint errors in apitools.
Configuration menu - View commit details
-
Copy full SHA for 286e63d - Browse repository at this point
Copy the full SHA 286e63dView commit details -
Drop all code related to generating CLIs.
All of the generated CLI code depends on google-apputils, which is a python2.7-only library. Given that no one is directly using the generated CLIs right now, there's no point in porting it to (say) argparse. Fixes #8. The bulk of the change here is just deletion; I suspect there are now more dangling references, so some tree-shaking/dead-code-elimination could be fruitful. Other changes: * the client generation test now ensures each client can be imported, as opposed to invoking `<generated_cli> --help`. * the samples and sample generating script drop the CLIs. Note that I *did* keep the flag for `gen_client`, so that any existing code passing `--nogenerate_cli` wouldn't be broken.
Configuration menu - View commit details
-
Copy full SHA for ed6f279 - Browse repository at this point
Copy the full SHA ed6f279View commit details -
Ensure client generation works smoothly in py3.
It turns out that generated clients had a few issues in python3: * the discovery doc was returned as bytes, but `json.loads` wanted a string * in python3, source files should be strings, not bytes * \N, \u, and \U have special interpretations in python3 strings, which makes them invalid bare sequences in a docstring. This commit updates these and re-enables tests for python3. The only remaining py2-only check is the "did we generate the exact same source file" check, which fails for trivial reasons (eg u'foo' vs. 'foo') for python3. Since there are no more python27-only tests, I removed the "disable test in 2.7" helper.
Configuration menu - View commit details
-
Copy full SHA for d475ca9 - Browse repository at this point
Copy the full SHA d475ca9View commit details
Commits on Apr 3, 2018
-
Add a function for detecting unrecognized fields.
If this decoding library is used for parsing user input, an unrecognized field is very frequently a typo/error and the library should offer an interface to treat them as such. Without any interface for this, library users must write their own error-detecting/handling routines to parse the obscure apitools decoding artifacts. Given that apitools is the one generating this structure, it makes much more sense for this error-detecting logic to be provided by apitools directly.
Configuration menu - View commit details
-
Copy full SHA for 615f9c4 - Browse repository at this point
Copy the full SHA 615f9c4View commit details -
Merge pull request #207 from msuozzo/master
Add a function for detecting unrecognized fields.
Configuration menu - View commit details
-
Copy full SHA for 3abcfe1 - Browse repository at this point
Copy the full SHA 3abcfe1View commit details
Commits on Apr 11, 2018
-
Merge pull request #210 from craigcitro/dedep
Make apitools work more smoothly in python3
Configuration menu - View commit details
-
Copy full SHA for 60a08f8 - Browse repository at this point
Copy the full SHA 60a08f8View commit details -
Convert generated api client/message docstrings into raw strings.
In Python 3, illegal escape sequences in strings throw deprecation warnings. Since there are no restrictions on the descriptions of the docstrings, converting docstrings to raw strings will prevent deprecation warnings from being thrown.
Configuration menu - View commit details
-
Copy full SHA for 75378a7 - Browse repository at this point
Copy the full SHA 75378a7View commit details
Commits on Apr 17, 2018
-
Merge pull request #216 from kevinli7/docstring2
Convert generated api client/message docstrings into raw strings.
Configuration menu - View commit details
-
Copy full SHA for 21ad21e - Browse repository at this point
Copy the full SHA 21ad21eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b963534 - Browse repository at this point
Copy the full SHA b963534View commit details -
Merge pull request #218 from kevinli7/lintfix
Fix lint errors in apitools and pin pycodestyle to version 2.4.0.
Configuration menu - View commit details
-
Copy full SHA for d05442c - Browse repository at this point
Copy the full SHA d05442cView commit details
There are no files selected for viewing