How ruyanga/ai-experts-assignment-python- works
This is a small Python assignment repository whose runtime code provides an HTTP request client with OAuth2 authorization-header handling and token parsing. The main workflow is a caller invoking Client.request; API requests refresh a missing or expired token and add its bearer header before preparing the request. Token expiry and header formatting live in OAuth2Token, while token_from_iso converts an ISO timestamp into that model. The README focuses on running tests and fixing a bug, not on a broader product. The caller relationship is not shown in the sampled source, so it is left unconnected.
Main entry points: tokens.py OAuth2 Token · http_client.py HTTP Client
Components 4
Other components
- Caller
- HTTP Client
app/http_client.py - OAuth2 Token
app/tokens.py - ISO Token Parser
app/tokens.py
Connections 2
- HTTP Client → OAuth2 Token: refreshes and formats
app/http_client.py - ISO Token Parser → OAuth2 Token: constructs
app/tokens.py