Why do all the popular projects use relative imports in __init__ files if PEP 8 recommends absolute?

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

Our great sponsors
  • WorkOS - The modern API for authentication & user identity.
  • Onboard AI - ChatGPT with full context of any GitHub repo.
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • NumPy

    The fundamental package for scientific computing with Python.

    I was looking at all the big projects like numpy, pytorch, flask, etc.

  • Pytorch

    Tensors and Dynamic neural networks in Python with strong GPU acceleration

    I was looking at all the big projects like numpy, pytorch, flask, etc.

  • WorkOS

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

  • Flask

    The Python micro framework for building web applications.

    I was looking at all the big projects like numpy, pytorch, flask, etc.

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