Skip to content

Introduce fully typed Python API client #481

Description

@vdusek

Currently, the apify-client-python relies mostly on untyped dict and poor typing in general.

Let's introduce full type coverage across the client by defining Pydantic models for API responses and adding proper type annotations for all functions, methods, and their arguments.

Where possible, these models and types should be generated directly from the OpenAPI specification to ensure consistency with the API.

OpenAPI specs - https://docs.apify.com/api/openapi.json

Some existing solutions to explore & test:

For additional context, see parent (epic) issue - https://github.com/apify/apify-core/issues/25186.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions