Launching a library(API client) in total darkness
summary
Built a Python API client for Degreed using OAuth2 client‑credentials (client_id/secret + scope) and keeping sessions with requests.Session to handle high concurrency for a 40,000‑user org. Development happens under 17 hours/day blackout so bootstrapping with cookiecutter and auto docs from Sphinx saves time; tests use requests-mock. Code maps JSON to simple data classes, implements token refresh logic, bundles with setuptools and uploads via twine to PyPI.
AI-written summary · about
chapters (15)
- 0:00Start
- 0:50ABOUT ME
- 1:45WHAT TO LOOK FORWARD TO
- 3:30TOTAL DARKNESS?
- 3:58ELECTRICITY SITUATION IN THE COUNTRY
- 6:18LMS
- 8:35USING POSTMAN
- 9:19AUTHENTICATION HEADERS AND PAYLOADS
- 10:26GETTING THE REQUEST PYTHON CODE
- 11:35CODE GENERATED BY POSTMAN
- 16:22API AUTHENTICATION
- 19:33END POINT CONSTRUCTION
- 21:20ATTRIBUTE OBJECT
- 24:22CALLING THE API
- 27:24DOCUMENTATION WITH SPHINX
related talks
28mHarnessing the APIs you didn't know existed
38mA Developer's-Eye View of API Client Libraries
01h 04mLightning Talks
27mSDK or Not
01h 11mKeynote: How to Write a Popular Python Library by Accident
23mDocs, Demos, and Mentors: Growing Open Source
49mLightning talks!
30mCreating an AI-Python Infrastructure that works with a reasonable scale
