Skip to content

Built a higher-level wrapper around pythonmemorymodule — pyd_loader #12

@testAccountDeltas

Description

@testAccountDeltas

Hey! First off, thanks for pythonmemorymodule — it's a great low-level building block.

I built a higher-level wrapper on top of it called pyd_loader that handles a lot of the boilerplate that comes up when loading .pyd files in practice:

  • Single-phase and multi-phase (PEP 451) init — handled automatically
  • Package loading with relative imports (from .parser import ...) — just call PydPackageLoader.from_dir()
  • Module inspection — functions, classes, constants, DLL import/export tables
  • Runtime import tracking with callbacks
  • DEBUG output suppressed by default (via the debug=False param you exposed)

Might be useful to others hitting the same rough edges. Repo here if you're curious:
https://github.com/testAccountDeltas/pyd_loader

Would love to hear if you see anything that could be done better at the lower level!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions