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 identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • 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 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
  • 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