| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
We are excited to introduce the v10 major release of the Box Python SDK, designed to elevate the developer experience and streamline your integration with the Box Content Cloud.
With this SDK version, we provide the box_sdk_gen package, which gives you access to:
Embrace the new generation of Box SDKs and unlock the full potential of the Box Content Cloud.
To enhance developer experience, we have introduced the new generated codebase through the box_sdk_gen package. The box_sdk_gen package is available in two major supported versions: v4 and v10.
In v4 of the Box Python SDK, we are introducing a version that consolidates both the manually written package (boxsdk) and the new generated package (box_sdk_gen). This allows developers to use both packages simultaneously within a single project.
The codebase for v4 of the Box Python SDK is currently available on the combined-sdk branch. Migration guide which would help with migration from boxsdk to box_sdk_gen can be found here.
Version v4 is intended for:
Starting with v10, the SDK is built entirely on the generated box_sdk_gen package, which fully and exclusively replaces the old boxsdk package. The codebase for v10 of the Box Python SDK is currently available on the main branch.
Version v10 is intended for:
| Scenario | Recommended Version | Example pip install |
|---|---|---|
| Creating a new application | Use v10 | pip install "boxsdk>=10" |
| App using box-sdk-gen artifact | Migrate to v10 | pip install "boxsdk>=10" |
| App using both box-sdk-gen and boxsdk artifacts | Upgrade to v4 | pip install "boxsdk~=4.0" |
| App using v3 of boxsdk artifact | Upgrade to v4 | pip install "boxsdk~=4.0" |
For full guidance on SDK versioning, see the Box SDK Versioning Guide.
The next generation of the SDK starts with version 10.0.0.
pip install boxsdk>=10This is autogenerated Box SDK version. Supported Python versions are Python 3.8 and above.
To install also extra dependencies required for JWT authentication, use command:
pip install "boxsdk[jwt]>=10"To get started with the SDK, get a Developer Token from the Configuration page of your app in the Box Developer Console. You can use this token to make test calls for your own Box account.
The SDK provides an BoxDeveloperTokenAuth class, which allows you to authenticate using your Developer Token. Use instance of BoxDeveloperTokenAuth to initialize BoxClient object. Using BoxClient object you can access managers, which allow you to perform some operations on your Box account.
The example below demonstrates how to authenticate with Developer Token and print names of all items inside a root folder.
from box_sdk_gen import BoxClient, BoxDeveloperTokenAuth
def main(token: str):
auth: BoxDeveloperTokenAuth = BoxDeveloperTokenAuth(token=token)
client: BoxClient = BoxClient(auth=auth)
for item in client.folders.get_folder_items('0').entries:
print(item.name)
if __name__ == '__main__':
main('INSERT YOUR DEVELOPER TOKEN HERE')Box Python SDK v10 supports multiple authentication methods including Developer Token, OAuth 2.0, Client Credentials Grant, and JSON Web Token (JWT).
You can find detailed instructions and example code for each authentication method in Authentication document.
Browse the docs or see API Reference for more information.
Migration guides which help you to migrate to supported major SDK versions can be found here.
We use a modified version of Semantic Versioning for all changes. See version strategy for details which is effective from 30 July 2022.
A current release is on the leading edge of our SDK development, and is intended for customers who are in active development and want the latest and greatest features.
We always recommend that all users run the latest available minor release for whatever major version is in use. We highly recommend upgrading to the latest SDK major release at the earliest convenient time and before the EOL date.
| Version | Supported Environments | State | First Release | EOL/Terminated |
|---|---|---|---|---|
| 10 | Python 3.8+ | Supported | 17 Sep 2025 | TBD |
| 4 | Python 3.8+ | Supported | 23 Oct 2025 | 2027 or v5 is released |
| 3 | Python 3.6+ | EOL | 17 Jan 2022 | 23 Oct 2025 |
| 2 | EOL | 01 Nov 2018 | 17 Jan 2022 | |
| 1 | EOL | 10 Feb 2015 | 01 Nov 2018 |
See CONTRIBUTING.md.
The Python SDK allows the use of FIPS 140-2 validated SSL libraries, such as OpenSSL 3.0. However, some actions are required to enable this functionality.
Currently, the latest distributions of Python default to OpenSSL v1.1.1, which is not FIPS compliant. Therefore, if you want to use OpenSSL 3.0 in your network communication, you need to ensure that Python uses a custom SSL library. One way to achieve this is by creating a custom Python distribution with the ssl module replaced.
If you are using JWT for authentication, it is also necessary to ensure that the cryptography library, which is one of the extra dependencies for JWT, uses OpenSSL 3.0. To enable FIPS mode for the cryptography library, you need to install a FIPS-compliant version of OpenSSL during the installation process of cryptography using the pip command.
Need to contact us directly? Browse the issues tickets! Or, if that doesn't work, file a new one and we will get back to you. If you have general questions about the Box API, you can post to the Box Developer Forum.
Copyright 2025 Box, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| Back | FazBrowse Home | New Git URL |