Announcing the Box Python SDK Workshop: Unlock the Power of Box Platform!

Rui Barbosa
Box Developer Blog
Published in
3 min readSep 14, 2023

--

Image generated by ideogram.ai

Are you ready to embark on a journey into the world of Box Platform?

We’re thrilled to introduce our brand new self-paced, hands-on workshop that will help developers like you get started with the Box Python SDK while exploring the fundamental concepts of the Box Platform.

Whether you’re a seasoned developer or just starting out, this workshop is designed to cater to your learning style and pace.

What’s Inside the Workshop?

Our Box Python SDK workshop is a comprehensive learning experience that covers a wide range of topics, including:

  • Files and Folders: Learn how to interact with files and folders in Box, including creating, updating, and organizing them.
  • Uploads and Downloads: Master the art of uploading and downloading files securely from the Box Platform.
  • Versions: Understand how to manage and work with file versions effectively.
  • Shared Links: Explore the power of shared links to securely share content with others.
  • Authentication: Discover different authentication methods, including OAuth 2.0, Client Credential Grants (CCG), and JSON Web Tokens.

We are frequently adding new content to the workshops, so make sure you checkin for updates.

Mechanics of the Workshop

Each section is thoughtfully structured to provide you with a comprehensive learning experience. You’ll find:

  • Basic concepts: Clear explanations of the foundational concepts.
  • Documentation: Have all the relevant documentation links to the supporting documentation at your finger tips.
  • Exercises: Step-by-step exercises that allow you to practice what you’ve learned.
  • Extra challenges: Test your skills and dive deeper into Box Platform with exciting extra challenges.

How do I start?

Our workshop is hosted on GitHub, making it easy for you to access and follow along. Here’s how it works:

1. Visit the workshop repository on GitHub: Box Python SDK Workshop.

2. Start with the section that interests you the most, or work your way through all of them at your own pace.

3. Each section is designed to be self-contained, allowing you to focus on specific topics.

4. Dive into the exercises, and don’t forget to explore the “Extra Credit” challenges for those who crave more.

Here is a sample exercise:

# New file upload
# Create a method named upload_file that receives a client and
# a file_path and uploads the file to a specific folder.

def upload_file(box_folder: Folder, path_to_file: str) -> File:
"""Upload a file to a Box folder"""
return box_folder.upload(path_to_file)

# Then upload the workshops/files/content_samples/sample_file.txt
# file to the files folder.

if __name__ == "__main__":
...

files_root = client.folder(folder_id=FILES_ROOT).get()
sample_file = upload_file(
files_root, "workshops/files/content_samples/sample_file.txt"
)
print(f"Uploaded {sample_file.name} to {files_root.name}")

Get Involved and Share Your Feedback

We invite you to try out our workshop and embark on your journey to become a Box Platform expert. Your feedback is invaluable to us, and we’d love to hear your thoughts and suggestions.

After completing the workshop, please share your comments, questions, and feedback on our Box Developer Forum.

We’re eager to hear about your experiences and help you succeed with Box Platform.

Start learning, experimenting, and building amazing applications with the power of Box.

Happy coding!

--

--