Skip to content

Rewrite openvariant/__init__.py with lazy imports #91

Description

@dmartmillan

Description
Replace eager imports and multiprocessing.set_start_method('spawn', force=True) with a __getattr__ lazy-import pattern.

Files

  • openvariant/__init__.py — REWRITE

Definition of Done

  • multiprocessing.set_start_method fully removed
  • __getattr__ exposes Annotation, Variant, cat, count, group_by, findfiles
  • __version__ = "2.0.0" updated
  • __all__ list is complete

Documentation needed: Update changelog and migration guide — note removal of multiprocessing side-effect.

Tests needed:

  • Test: import openvariant does not import the Rust extension until an attribute is accessed
  • Test: from openvariant import Annotation still works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions