Chapter 7. Batteries Included: Creating a Python SDK
Make the right things easy and the wrong things hard.
Kathy Sierra
To create an API data scientists will love, you should give them a software development kit (SDK) to call the API with. This is an extra step that most API producers do not take, but it makes life much easier for your users. In this chapter, you will learn the value of SDKs and benefit from practical tips from several experts, and then you will create a Python SDK for the SWC Fantasy Football API. Building an SDK is the capstone of your Part I portfolio project.
SDKs can include code examples, debuggers, and documentation, but the term commonly refers to a custom software library that acts as a wrapper for your API. It allows developers and data scientists to interact with your API directly in their programming language, without requiring extra code to handle API communication.
Figure 7-1 shows how your users will employ an SDK to call your API, instead of calling it directly.
Figure 7-1. SDK interacting with the API
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access