Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Parsing API response into objects #5

@ddudnik

Description

@ddudnik

This is more of a conceptual discussion that an issue.

What are your thoughts about parsing API response into populated Python objects? So the user of the SDK will interact with more strictly specified objects instead of free-form JSON. Or, maybe, parse only a fraction of data, the one which is used more often or referred to by ID from other parts of response (like Places, Carriers, Agents etc.).

Of course it adds additional overhead for supporters since all the JSON 'schema' changes should be reflected in the code.

I can see the advantages and drawbacks in both approaches, so would be great to know what you guys have in mind.

Cheers,
Denis

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions