Skip to content

Releases: box/box-python-sdk

Version 2.0.0a12

29 Mar 22:02

Choose a tag to compare

Version 2.0.0a12 Pre-release
Pre-release
v2.0.0a12

Fix pylint error in box session.

Version 2.0.0a11

19 Oct 16:07

Choose a tag to compare

Version 2.0.0a11 Pre-release
Pre-release
v2.0.0a11

Automatically retry JWT auth API calls that fail because of the exp c…

Version 2.0.0a10

16 Oct 17:37

Choose a tag to compare

Version 2.0.0a10 Pre-release
Pre-release
  • (Breaking change) Removed the downscope_token() method from the OAuth2 class.
  • Added support for the can_view_path parameter when creating new collaborations.
  • Added a downscope_token() method to the Client class. This generates a token that has its permissions reduced to the provided scopes and for the optionally provided File or Folder.
  • Added methods for configuring JWTAuth from config file: JWTAuth.from_settings_file and JWTAuth.from_settings_dictionary.
  • Added network_response property to BoxOAuthException.

Version 2.0.0a9

19 Sep 18:47

Choose a tag to compare

Version 2.0.0a9 Pre-release
Pre-release
  • Increased required minimum version of six to 1.9.0.
  • Add **kwargs to JWTAuth constructor. Fixes #231.
  • Change downscope_token() to return a TokenResponse object. (Breaking interface change from v2.0.0a8.)

Version 1.5.5

19 Sep 20:48

Choose a tag to compare

  • Add **kwargs to JWTAuth constructor. Fixes #231.
  • Fix support for the latest version of six, 1.11.0. Fixes #239.

Version 2.0.0a8

13 Sep 21:28

Choose a tag to compare

Version 2.0.0a8 Pre-release
Pre-release
v2.0.0a8

Add tox rules for building/uploading PyPI packages (#223)

Version 2.0.0a7

23 Aug 19:56

Choose a tag to compare

Version 2.0.0a7 Pre-release
Pre-release
  • Auth objects can now be closed, which prevents them from being used to
    request new tokens. This will also revoke any existing tokens (though that
    feature can be disabled by passing revoke=False). Also introduces a
    closing() context manager method, which will auto-close the auth object
    on exit.

Version 2.0.0a6

14 Aug 17:13

Choose a tag to compare

Version 2.0.0a6 Pre-release
Pre-release

Breaking Changes

  • File.update_contents() and File.update_contents_with_stream() now
    correctly return a File object with the correct internal JSON structure.
    Previously it would return a File object where the file JSON is hidden
    inside file['entries'][0]. This is a bugfix, but will be a breaking
    change for any clients that have already written code to handle the bug.

Features

  • The JWTAuth constructor now supports passing the RSA private key in two different
    ways: by file system path (existing functionality), or by passing the key
    data directly (new functionality). The rsa_private_key_file_sys_path
    parameter is now optional, but it is required to pass exactly one of
    rsa_private_key_file_sys_path or rsa_private_key_data.

Other

  • Bugfix so that the return value of JWTAuth.refresh() correctly matches
    that of the auth interface (by returning a tuple of
    ((access token), (refresh token or None)), instead of just the access token).
    In particular, this fixes an exception in BoxSession that always occurred
    when it tried to refresh any JWTAuth object.

Version 1.5.4

27 Jul 03:39

Choose a tag to compare

  • Bugfix so that the return value of JWTAuth.refresh() correctly matches
    that of the auth interface (by returning a tuple of
    ((access token), (refresh token or None)), instead of just the access token).
    In particular, this fixes an exception in BoxSession that always occurred
    when it tried to refresh any JWTAuth object.
  • Fixed an exception that was being raised from ExtendableEnumMeta.__dir__().
  • CPython 3.6 support.

Version 2.0.0a5

24 Jul 19:14

Choose a tag to compare

Version 2.0.0a5 Pre-release
Pre-release
Merge pull request #215 from josephroque/2.0.0a5-version-bump

Prepare for next 2.0.0 alpha release