imphook - Simple and clear import hooks for Python - import anything as if it were a Python module

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • bitey

  • Thanks. Random example of what I myself interested to use it for - https://github.com/pfalcon/ubitey/ , to import LLVM bitcode modules (as potential means to allow architecture- and language- independent Python extension modules). You of course immediately recognize that to be a remake of well-known (in narrow circles?) David Beazley's "bitey" tool - https://github.com/dabeaz/bitey (which now bitrotted too much, so I took an excuse to just remake it using my imphook thingy, to serve as non-entire-trivial usecase for it).

  • python-imphook

    Simple and clear import hooks for Python - import anything as if it were a Python module

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • CPython

    The Python programming language

  • importlib._bootstrap "implicitly" changes the behavior of import. Learn some day how import machinery in (C)Python is implemented. So, saying the above is as good as saying that import module is too implicit, you should use module = __import__("module"). And for C extensions, you should use something completely different, because - oh horror - loading them with the same import module is awfully implicit.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts