FYI: __bool__ for a Response object from the Requests library only evaluates to True if the status code is <400

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
  • requests

    A simple, yet elegant, HTTP library.

  • This really tripped me up for a bit as I had code that assumed if a particular variable was False-y, then it was None rather than a Response object. Tbh I strongly disagree with this as a design decision but what can ya do – I'm sure there's plenty of code that depends on it at this point and there's a long-open ticket about it here.

  • 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
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