Skip to content

Compose Actor class of smaller components #327

Open
@Pijukatel

Description

@Pijukatel

_ActorType aliased as Actor is very big class with many methods.
https://github.com/apify/apify-sdk-python/blob/master/src/apify/_actor.py#L42

It is entry point of SDK and it would be nice if it was nicely structured. Having too many methods on such "mega class" makes it harder to understand and use. Refactor this class and move it's methods into components, so that user can use SDK through logically structured groups of functionality.

Generic example:
Instead of:
actor.some_function_to_handle_inputs
actor.other_function_to_handle_inputs

it should be:
actor.inputs.some_function_to_handle_inputs
actor.inputs.other_function_to_handle_inputs

#326 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    debtCode quality improvement or decrease of technical debt.t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions