Skip to content

Refactor: Move utility functions from utils.py into structured utils/ module #773

@curious-companion

Description

@curious-companion

Hi maintainers! 👋

While working on issue [#647 ], I noticed that the codebase currently contains a utils.py file with general-purpose helper functions.

To better organize the utilities and support easier scaling, I created a utils/ package folder (not part of the original repo) to modularize and organize utility code.

📦 Proposal:
Move utility functions from utils.py into logically grouped files within a utils/ folder (e.g., export_utils.py)

Update internal imports across the codebase

Optionally remove utils.py if it's fully migrated

💡 Motivation:
Avoid confusion or namespace collisions between utils.py and utils/

Improve code clarity and modularity

Make it easier to maintain as the codebase grows

Would love to hear your thoughts. If you're okay with it, I’m happy to implement the refactor and raise a PR.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions