{
  "id": "task_libraries:date/python",
  "path": "/exapedia/python-date-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python date and time libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python date libraries parse, convert, and calculate dates and times beyond what the standard datetime module covers. These libraries read the dates in logs, forms, and data files and convert them between time zones for reports and schedules."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python date and time libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#python-dateutil",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pytz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tzlocal",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#arrow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pendulum",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dateparser",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#holidays",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F264"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#parsedatetime",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F286"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F290"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#python-dateutil",
          "label": [
            {
              "t": "fact",
              "fact": "F143"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most installs, while "
        },
        {
          "t": "link",
          "href": "#arrow",
          "label": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most GitHub stars."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "IANA timezone objects",
            "Calendar month/year offsets",
            "Relative date phrases"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#python-dateutil",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F143"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pytz",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#tzlocal",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#arrow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pendulum",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dateparser",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#holidays",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F264"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#parsedatetime",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F286"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F297"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "python-dateutil",
          "name": [
            {
              "t": "fact",
              "fact": "F143"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/dateutil/dateutil"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/python-dateutil"
            },
            {
              "label": "Docs",
              "href": "https://dateutil.readthedocs.io/en/stable/parser.html"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "python-dateutil extends Python's standard "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": " module. The package installs as "
            },
            {
              "t": "code",
              "text": "python-dateutil"
            },
            {
              "t": "text",
              "text": " and imports as "
            },
            {
              "t": "code",
              "text": "dateutil"
            },
            {
              "t": "text",
              "text": ". "
            },
            {
              "t": "code",
              "text": "parser.parse"
            },
            {
              "t": "text",
              "text": " reads a date string in almost any format and returns a "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": ". Calendar math comes from "
            },
            {
              "t": "code",
              "text": "relativedelta"
            },
            {
              "t": "text",
              "text": ", which adds units such as next month or the last week of a month. For repeating dates, "
            },
            {
              "t": "code",
              "text": "rrule"
            },
            {
              "t": "text",
              "text": " follows a superset of the iCalendar recurrence rules."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://dateutil.readthedocs.io/en/stable/parser.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F143"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/superset",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def eval(self) -> datetime:\n        dttm_expression, unit = self.value\n        dttm = dttm_expression.eval()\n        if unit == \"year\":\n            return dttm.replace(\n                month=12, day=31, hour=0, minute=0, second=0, microsecond=0\n            )\n        if unit == \"quarter\":\n            # Both arguments are passed to a single `replace` so the day is\n            # never briefly out of range for the new month (e.g. the 31st\n            # moving into a 30-day quarter-end month).\n            last_month = 3 * ((dttm.month - 1) // 3) + 3\n            return dttm.replace(\n                month=last_month,\n                day=calendar.monthrange(dttm.year, last_month)[1],\n                hour=0,\n                minute=0,\n                second=0,\n                microsecond=0,\n            )\n        if unit == \"month\":\n            return dttm.replace(\n                day=calendar.monthrange(dttm.year, dttm.month)[1],\n                hour=0,\n                minute=0,\n                second=0,\n                microsecond=0,\n            )\n        if unit == \"day\":\n            # The last day of a day is that same day. Truncating to midnight\n            # keeps the result consistent with every other unit here, which\n            # all return the final day at midnight rather than at its end.\n            return dttm.replace(hour=0, minute=0, second=0, microsecond=0)\n        # unit == \"week\":\n        mon = dttm - relativedelta(days=dttm.weekday())\n        mon = mon.replace(hour=0, minute=0, second=0, microsecond=0)\n        return mon + relativedelta(days=6)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/superset/blob/32b4d6b54b996e6f6d8111f3aaa1227c2e1e9599/superset/utils/date_parser.py#L872-L908",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Public%20Python%20projects%20using%20python-dateutil%20for%20date%20parsing%2C%20calendar%20offsets%2C%20timezone%20conversion%2C%20scheduling%20and%20localized%20relative%20dates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F143"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from dateutil.parser import parse\nparse(\"2003-09-25\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://dateutil.readthedocs.io/en/stable/parser.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "parser.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pytz",
          "name": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/stub42/pytz"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pytz"
            },
            {
              "label": "Docs",
              "href": "https://github.com/stub42/pytz/blob/master/src/README.rst"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "pytz brings the Olson time zone database into Python. "
            },
            {
              "t": "code",
              "text": "timezone('US/Eastern')"
            },
            {
              "t": "text",
              "text": " returns a zone object, and its "
            },
            {
              "t": "code",
              "text": "localize"
            },
            {
              "t": "text",
              "text": " method attaches that zone to a naive "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": ". After arithmetic that crosses a daylight saving change, "
            },
            {
              "t": "code",
              "text": "normalize"
            },
            {
              "t": "text",
              "text": " corrects the offset. The README marks pytz as deprecated and points newer Python versions to the standard "
            },
            {
              "t": "code",
              "text": "zoneinfo"
            },
            {
              "t": "text",
              "text": " module, the type "
            },
            {
              "t": "link",
              "href": "#tzlocal",
              "label": [
                {
                  "t": "text",
                  "text": "tzlocal"
                }
              ]
            },
            {
              "t": "text",
              "text": " returns."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/stub42/pytz/blob/master/src/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F322"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F323"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F324"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F325"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F326"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F327"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/django/django",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def make_aware(value, timezone=None, is_dst=None):\n    \"\"\"Make a naive datetime.datetime in a given time zone aware.\"\"\"\n    if timezone is None:\n        timezone = get_current_timezone()\n    if _is_pytz_zone(timezone):\n        # This method is available for pytz time zones.\n        return timezone.localize(value, is_dst=is_dst)\n    else:\n        # Check that we won't overwrite the timezone of an aware datetime.\n        if is_aware(value):\n            raise ValueError(\n                \"make_aware expects a naive datetime, got %s\" % value)\n        # This may be wrong around DST changes!\n        return value.replace(tzinfo=timezone)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/django/django/blob/3591e1c1acbd7c13174275367c3fdf012cb0413b/django/utils/timezone.py#L236-L249",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pytz%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F162"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from datetime import datetime\nfrom pytz import timezone\n\neastern = timezone('US/Eastern')\nloc_dt = eastern.localize(datetime(2002, 10, 27, 6, 0, 0))\nprint(loc_dt.strftime('%Y-%m-%d %H:%M:%S %Z%z'))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/stub42/pytz/blob/master/src/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "tzlocal",
          "name": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/regebro/tzlocal"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/tzlocal"
            },
            {
              "label": "Docs",
              "href": "https://github.com/regebro/tzlocal/blob/master/README.rst"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "tzlocal finds the machine's local time zone, which neither "
            },
            {
              "t": "code",
              "text": "pytz"
            },
            {
              "t": "text",
              "text": " nor "
            },
            {
              "t": "code",
              "text": "zoneinfo"
            },
            {
              "t": "text",
              "text": " can report on their own. "
            },
            {
              "t": "code",
              "text": "get_localzone"
            },
            {
              "t": "text",
              "text": " returns a "
            },
            {
              "t": "code",
              "text": "tzinfo"
            },
            {
              "t": "text",
              "text": " object even when the system has no zone name configured. A second function, "
            },
            {
              "t": "code",
              "text": "get_localzone_name"
            },
            {
              "t": "text",
              "text": ", returns only the name, such as "
            },
            {
              "t": "code",
              "text": "Europe/Paris"
            },
            {
              "t": "text",
              "text": ", when one is set. On Unix the library reads files such as "
            },
            {
              "t": "code",
              "text": "/etc/localtime"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "/etc/timezone"
            },
            {
              "t": "text",
              "text": ". Current versions return "
            },
            {
              "t": "code",
              "text": "zoneinfo"
            },
            {
              "t": "text",
              "text": " objects instead of "
            },
            {
              "t": "link",
              "href": "#pytz",
              "label": [
                {
                  "t": "text",
                  "text": "pytz"
                }
              ]
            },
            {
              "t": "text",
              "text": " objects."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/regebro/tzlocal/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F184"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F329"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F330"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F331"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F332"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F333"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F334"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Azure/agent-app-ingestion",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F204"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _resolve_timezone():\n    tz_name = os.getenv(\"SCHEDULER_TIMEZONE\")\n    if tz_name:\n        try:\n            return ZoneInfo(tz_name)\n        except (ZoneInfoNotFoundError, ValueError):\n            logging.warning(f\"Invalid SCHEDULER_TIMEZONE '{tz_name}', defaulting to machine timezone\")\n    return get_localzone()\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Azure/agent-app-ingestion/blob/9f4b06dd7e12fe1acfba6c5bdbde961de4613088/main.py#L63-L70",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=tzlocal%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F184"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from tzlocal import get_localzone\ntz = get_localzone()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/regebro/tzlocal/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "arrow",
          "name": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/arrow-py/arrow"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/arrow"
            },
            {
              "label": "Docs",
              "href": "https://arrow.readthedocs.io/en/latest/api-guide.html"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Arrow provides a drop-in replacement for Python's "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": " that is timezone-aware and set to UTC by default. "
            },
            {
              "t": "code",
              "text": "arrow.get"
            },
            {
              "t": "text",
              "text": " parses ISO strings and timestamps, "
            },
            {
              "t": "code",
              "text": "shift"
            },
            {
              "t": "text",
              "text": " moves a value by hours, days, or weeks, and "
            },
            {
              "t": "code",
              "text": "to"
            },
            {
              "t": "text",
              "text": " converts it to another time zone. For display, "
            },
            {
              "t": "code",
              "text": "humanize"
            },
            {
              "t": "text",
              "text": " returns phrases such as \"an hour ago\" in many languages. The README credits moment.js, the JavaScript date library, as its inspiration."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://arrow.readthedocs.io/en/latest/api-guide.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Koed00/django-q",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def scheduler(broker: Broker = None):\n    \"\"\"\n    Creates a task from a schedule at the scheduled time and schedules next run\n    \"\"\"\n    if not broker:\n        broker = get_broker()\n    close_old_django_connections()\n    try:\n        database_to_use = {\"using\": Conf.ORM} if not Conf.HAS_REPLICA else {}\n        with db.transaction.atomic(**database_to_use):\n            for s in (\n                Schedule.objects.select_for_update()\n                .exclude(repeats=0)\n                .filter(next_run__lt=timezone.now())\n                .filter(\n                    db.models.Q(cluster__isnull=True) | db.models.Q(cluster=Conf.PREFIX)\n                )\n            ):\n                args = ()\n                kwargs = {}\n                # get args, kwargs and hook\n                if s.kwargs:\n                    try:\n                        # eval should be safe here because dict()\n                        kwargs = eval(f\"dict({s.kwargs})\")\n                    except SyntaxError:\n                        kwargs = {}\n                if s.args:\n                    args = ast.literal_eval(s.args)\n                    # single value won't eval to tuple, so:\n                    if type(args) != tuple:\n                        args = (args,)\n                q_options = kwargs.get(\"q_options\", {})\n                if s.hook:\n                    q_options[\"hook\"] = s.hook\n                # set up the next run time\n                if s.schedule_type != s.ONCE:\n                    next_run = arrow.get(s.next_run)\n                    while True:\n                        if s.schedule_type == s.MINUTES:\n                            next_run = next_run.shift(minutes=+(s.minutes or 1))\n                        elif s.schedule_type == s.HOURLY:\n                            next_run = next_run.shift(hours=+1)\n                        elif s.schedule_type == s.DAILY:\n                            next_run = next_run.shift(days=+1)\n                        elif s.schedule_type == s.WEEKLY:\n                            next_run = next_run.shift(weeks=+1)\n                        elif s.schedule_type == s.MONTHLY:\n                            next_run = next_run.shift(months=+1)\n                        elif s.schedule_type == s.QUARTERLY:\n                            next_run = next_run.shift(months=+3)\n                        elif s.schedule_type == s.YEARLY:\n                            next_run = next_run.shift(years=+1)\n                        elif s.schedule_type == s.CRON:\n                            if not croniter:\n                                raise ImportError(\n                                    _(\n                                        \"Please install croniter to enable cron expressions\"\n                                    )\n                                )\n                            next_run = arrow.get(\n                                croniter(s.cron, localtime()).get_next()\n                            )\n                        if Conf.CATCH_UP or next_run > arrow.utcnow():\n                            break\n                    # arrow always returns a tz aware datetime, and we don't want\n                    # this when we explicitly configured django with USE_TZ=False\n                    s.next_run = (\n                        next_run.datetime\n                        if settings.USE_TZ\n                        else next_run.datetime.replace(tzinfo=None)\n                    )\n                    s.repeats += -1\n                # send it to the cluster\n                scheduled_broker = broker\n                try:\n                    scheduled_broker = get_broker(q_options[\"broker_name\"])\n                except:  # invalid broker_name or non existing broker with broker_name\n                    pass\n                q_options[\"broker\"] = scheduled_broker\n                q_options[\"group\"] = q_options.get(\"group\", s.name or s.id)\n                kwargs[\"q_options\"] = q_options\n                s.task = django_q.tasks.async_task(s.func, *args, **kwargs)\n                # log it\n                if not s.task:\n                    logger.error(\n                        _(\n                            f\"{current_process().name} failed to create a task from schedule [{s.name or s.id}]\"\n                        )\n                    )\n                else:\n                    logger.info(\n                        _(\n                            f\"{current_process().name} created a task from schedule [{s.name or s.id}]\"\n                        )\n                    )\n                # default behavior is to delete a ONCE schedule\n                if s.schedule_type == s.ONCE:\n                    if s.repeats < 0:\n                        s.delete()\n                        continue\n                    # but not if it has a positive repeats\n                    s.repeats = 0\n                # save the schedule\n                s.save()\n    except Exception as e:\n        logger.error(e)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Koed00/django-q/blob/85baaccd2c3adfe0a414d4237465163e9ff6e5a0/django_q/cluster.py#L578-L684",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F222"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Public%20Python%20projects%20using%20arrow%20for%20date%20parsing%2C%20calendar%20offsets%2C%20timezone%20conversion%2C%20scheduling%20and%20localized%20relative%20dates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F206"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import arrow\narrow.get('2013-05-11T21:23:58.970460+07:00')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/arrow-py/arrow/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pendulum",
          "name": [
            {
              "t": "fact",
              "fact": "F225"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/python-pendulum/pendulum"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pendulum"
            },
            {
              "label": "Docs",
              "href": "https://pendulum.eustace.io/docs/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "Pendulum's "
            },
            {
              "t": "code",
              "text": "DateTime"
            },
            {
              "t": "text",
              "text": " class inherits from Python's "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": ", so it works where a "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": " is expected. Every instance is timezone-aware and in UTC by default. "
            },
            {
              "t": "code",
              "text": "in_timezone"
            },
            {
              "t": "text",
              "text": " converts a value to another zone, "
            },
            {
              "t": "code",
              "text": "add"
            },
            {
              "t": "text",
              "text": " and "
            },
            {
              "t": "code",
              "text": "subtract"
            },
            {
              "t": "text",
              "text": " move it by calendar units, and "
            },
            {
              "t": "code",
              "text": "diff_for_humans"
            },
            {
              "t": "text",
              "text": " describes the gap from now, such as \"two minutes ago\". Arithmetic across a daylight saving change returns a time that exists on the clock. "
            },
            {
              "t": "link",
              "href": "#arrow",
              "label": [
                {
                  "t": "text",
                  "text": "Arrow"
                }
              ]
            },
            {
              "t": "text",
              "text": " covers the same ground with its own type, while Pendulum stays a subclass of "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": "."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pendulum.eustace.io/docs/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F225"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "text",
                  "text": "Some drivers check the type"
                }
              ],
              "body": [
                {
                  "t": "text",
                  "text": "Database drivers such as "
                },
                {
                  "t": "code",
                  "text": "PyMySQL"
                },
                {
                  "t": "text",
                  "text": " and "
                },
                {
                  "t": "code",
                  "text": "mysqlclient"
                },
                {
                  "t": "text",
                  "text": " check an object's exact type, so they need an adapter registered for "
                },
                {
                  "t": "code",
                  "text": "DateTime"
                },
                {
                  "t": "text",
                  "text": "."
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/airflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def parse_timezone(name: str | int) -> FixedTimezone | Timezone:\n    \"\"\"\n    Parse timezone and return one of the pendulum Timezone.\n\n    Provide the same interface as ``pendulum.timezone(name)``\n\n    :param name: Either IANA timezone or offset to UTC in seconds.\n\n    :meta private:\n    \"\"\"\n    if _PENDULUM3:\n        # This only presented in pendulum 3 and code do not reached into the pendulum 2\n        return pendulum.timezone(name)  # type: ignore[operator]\n    # In pendulum 2 this refers to the function, in pendulum 3 refers to the module\n    return pendulum.tz.timezone(name)  # type: ignore[operator]\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/airflow/blob/2dae3e4e161636ffb00f8c49c018b7ecf337831e/shared/timezones/src/airflow_shared/timezones/timezone.py#L275-L289",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Public%20Python%20projects%20using%20pendulum%20for%20date%20parsing%2C%20calendar%20offsets%2C%20timezone%20conversion%2C%20scheduling%20and%20localized%20relative%20dates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F225"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pendulum\npendulum.datetime(2015, 2, 5, tz='Europe/Paris')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pendulum.eustace.io/docs/",
                  "label": [
                    {
                      "t": "text",
                      "text": "the Pendulum docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F230"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "dateparser",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/scrapinghub/dateparser"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/dateparser"
            },
            {
              "label": "Docs",
              "href": "https://dateparser.readthedocs.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "dateparser turns human-readable date strings into "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": " objects through one function, "
            },
            {
              "t": "code",
              "text": "dateparser.parse"
            },
            {
              "t": "text",
              "text": ". Absolute dates, relative phrases such as \"two weeks ago\", and timestamps all parse, in more than two hundred language locales. The language is detected automatically unless "
            },
            {
              "t": "code",
              "text": "languages"
            },
            {
              "t": "text",
              "text": " sets it. Formats passed in "
            },
            {
              "t": "code",
              "text": "date_formats"
            },
            {
              "t": "text",
              "text": " are tried before the general parser. Compared with "
            },
            {
              "t": "link",
              "href": "#parsedatetime",
              "label": [
                {
                  "t": "text",
                  "text": "parsedatetime"
                }
              ]
            },
            {
              "t": "text",
              "text": ", dateparser returns a "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": " directly instead of a time tuple."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://dateparser.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F83"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F84"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F85"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/the-paperless-project/paperless",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F262"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def __parser(ds, date_order):\n            \"\"\"\n            Call dateparser.parse with a particular date ordering\n            \"\"\"\n            return dateparser.parse(\n                ds,\n                settings={\n                    \"DATE_ORDER\": date_order,\n                    \"PREFER_DAY_OF_MONTH\": \"first\",\n                    \"RETURN_AS_TIMEZONE_AWARE\":\n                    True\n                }\n            )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/the-paperless-project/paperless/blob/9b0063c9731f7c5f65b1852cb8caff97f5e40ba4/src/documents/parsers.py#L79-L91",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Public%20Python%20projects%20using%20dateparser%20for%20date%20parsing%2C%20calendar%20offsets%2C%20timezone%20conversion%2C%20scheduling%20and%20localized%20relative%20dates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import dateparser\ndateparser.parse('1991-05-17')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/scrapinghub/dateparser/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "holidays",
          "name": [
            {
              "t": "fact",
              "fact": "F264"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vacanza/holidays"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/holidays"
            },
            {
              "label": "Docs",
              "href": "https://holidays.readthedocs.io/en/latest/api/"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "holidays generates the public holidays of a country, or of a subdivision such as a state or province, as a dict-like object. "
            },
            {
              "t": "code",
              "text": "holidays.country_holidays(\"US\")"
            },
            {
              "t": "text",
              "text": " returns the calendar. Testing a "
            },
            {
              "t": "code",
              "text": "date"
            },
            {
              "t": "text",
              "text": ", a date string, or a timestamp with "
            },
            {
              "t": "code",
              "text": "in"
            },
            {
              "t": "text",
              "text": " says whether that day is a holiday, while "
            },
            {
              "t": "code",
              "text": "get"
            },
            {
              "t": "text",
              "text": " returns the holiday's name. Calendars cover more than two hundred country codes. For markets, "
            },
            {
              "t": "code",
              "text": "financial_holidays(\"NYSE\")"
            },
            {
              "t": "text",
              "text": " returns stock exchange closing days."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://holidays.readthedocs.io/en/latest/api/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F264"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F336"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F337"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F338"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F339"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F340"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F341"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/meta/prophet",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F284"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def make_holidays_df(\n    year_list: list[int],\n    country: str,\n    province: str | None = None,\n    state: str | None = None,  # unused\n) -> pd.DataFrame:\n    \"\"\"Make dataframe of holidays for given years and countries\n\n    Parameters\n    ----------\n    year_list: a list of years\n    country: country name\n    province: province name\n\n    Returns\n    -------\n    Dataframe with 'ds' and 'holiday', which can directly feed\n    to 'holidays' params in Prophet\n    \"\"\"\n    country_holidays = get_country_holidays_class(country)\n    holidays = country_holidays(expand=False, language=\"en_US\", subdiv=province, years=year_list)\n\n    holidays_df = pd.DataFrame(\n        [(date, holidays.get_list(date)) for date in holidays],\n        columns=[\"ds\", \"holiday\"],\n    )\n    holidays_df = holidays_df.explode(\"holiday\")\n    holidays_df.reset_index(inplace=True, drop=True)\n    holidays_df[\"ds\"] = pd.to_datetime(holidays_df[\"ds\"])\n\n    return holidays_df\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/meta/prophet/blob/5cf15c0f6e5d5259d9dd8d511fb4e15a45884cdc/python/prophet/make_holidays.py#L51-L81",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F283"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=holidays%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F264"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from datetime import date\nimport holidays\nus_holidays = holidays.US()  # this is a dict-like object\ndate(2015, 1, 1) in us_holidays  # True\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/vacanza/holidays/blob/dev/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F269"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "parsedatetime",
          "name": [
            {
              "t": "fact",
              "fact": "F286"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/bear/parsedatetime"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/parsedatetime"
            },
            {
              "label": "Docs",
              "href": "https://github.com/bear/parsedatetime/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "text",
              "text": "parsedatetime parses human-readable date and time text, such as \"tomorrow\", with a "
            },
            {
              "t": "code",
              "text": "Calendar"
            },
            {
              "t": "text",
              "text": " object. "
            },
            {
              "t": "code",
              "text": "Calendar.parse"
            },
            {
              "t": "text",
              "text": " returns a time tuple and a status code, and the tuple needs one more step to become a "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": ". For a timezone-aware result, "
            },
            {
              "t": "code",
              "text": "parseDT"
            },
            {
              "t": "text",
              "text": " takes a "
            },
            {
              "t": "link",
              "href": "#pytz",
              "label": [
                {
                  "t": "text",
                  "text": "pytz"
                }
              ]
            },
            {
              "t": "text",
              "text": " zone and returns a "
            },
            {
              "t": "code",
              "text": "datetime"
            },
            {
              "t": "text",
              "text": " directly."
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/bear/parsedatetime/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F286"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F343"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F344"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F345"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F346"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F347"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F348"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F306"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F307"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/superset",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F306"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def parse_human_datetime(human_readable: str) -> datetime:\n    \"\"\"Returns ``datetime.datetime`` from human readable strings\"\"\"\n    x_periods = r\"^\\s*([0-9]+)\\s+(second|minute|hour|day|week|month|quarter|year)s?\\s*$\"\n    if re.search(x_periods, human_readable, re.IGNORECASE):\n        raise TimeRangeAmbiguousError(human_readable)\n    try:\n        default = datetime(year=datetime.now().year, month=1, day=1)\n        dttm = parse(human_readable, default=default)\n    except (ValueError, OverflowError) as ex:\n        cal = parsedatetime.Calendar()\n        parsed_dttm, parsed_flags = cal.parseDT(human_readable)\n        # 0 == not parsed at all\n        if parsed_flags == 0:\n            logger.debug(ex)\n            raise TimeRangeParseFailError(human_readable) from ex\n        # when time is not extracted, we 'reset to midnight'\n        if parsed_flags & 2 == 0:\n            parsed_dttm = parsed_dttm.replace(hour=0, minute=0, second=0)\n        dttm = dttm_from_timetuple(parsed_dttm.utctimetuple())\n    return dttm\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/superset/blob/32b4d6b54b996e6f6d8111f3aaa1227c2e1e9599/superset/utils/date_parser.py#L93-L112",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F305"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=parsedatetime%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F286"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import parsedatetime\ncal = parsedatetime.Calendar()\ncal.parse(\"tomorrow\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/bear/parsedatetime/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F291"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python date library should I use?",
      "a": [
        {
          "t": "text",
          "text": "Start with the standard datetime and zoneinfo modules, and add "
        },
        {
          "t": "link",
          "href": "#python-dateutil",
          "label": [
            {
              "t": "text",
              "text": "python-dateutil"
            }
          ]
        },
        {
          "t": "text",
          "text": ", with "
        },
        {
          "t": "fact",
          "fact": "F144"
        },
        {
          "t": "text",
          "text": " downloads a month, for parsing and month math. Choose "
        },
        {
          "t": "link",
          "href": "#arrow",
          "label": [
            {
              "t": "text",
              "text": "Arrow"
            }
          ]
        },
        {
          "t": "text",
          "text": " or "
        },
        {
          "t": "link",
          "href": "#pendulum",
          "label": [
            {
              "t": "text",
              "text": "Pendulum"
            }
          ]
        },
        {
          "t": "text",
          "text": " for a friendlier API, or "
        },
        {
          "t": "link",
          "href": "#dateparser",
          "label": [
            {
              "t": "text",
              "text": "dateparser"
            }
          ]
        },
        {
          "t": "text",
          "text": " for dates written in other languages."
        }
      ]
    },
    {
      "q": "What does python-dateutil add to datetime?",
      "a": [
        {
          "t": "text",
          "text": "It adds a forgiving string parser, "
        },
        {
          "t": "code",
          "text": "relativedelta"
        },
        {
          "t": "text",
          "text": " for month and year offsets, "
        },
        {
          "t": "code",
          "text": "rrule"
        },
        {
          "t": "text",
          "text": " for recurring dates, and extra timezone helpers. It works on standard datetime objects instead of replacing them."
        }
      ]
    },
    {
      "q": "How do I add months to a date in Python?",
      "a": [
        {
          "t": "text",
          "text": "Add "
        },
        {
          "t": "code",
          "text": "relativedelta(months=n)"
        },
        {
          "t": "text",
          "text": " from python-dateutil to the date. When the target month is shorter, the result lands on the last day of that month. A plain "
        },
        {
          "t": "code",
          "text": "timedelta"
        },
        {
          "t": "text",
          "text": " counts days, so it can't add calendar months."
        }
      ]
    },
    {
      "q": "How do I parse a date from a string in Python?",
      "a": [
        {
          "t": "text",
          "text": "Use "
        },
        {
          "t": "code",
          "text": "datetime.strptime"
        },
        {
          "t": "text",
          "text": " when the exact format is known. Use "
        },
        {
          "t": "code",
          "text": "dateutil.parser.parse"
        },
        {
          "t": "text",
          "text": " for most other formats, and "
        },
        {
          "t": "link",
          "href": "#dateparser",
          "label": [
            {
              "t": "text",
              "text": "dateparser"
            }
          ]
        },
        {
          "t": "text",
          "text": " for relative phrases such as \"two weeks ago\" or dates in other languages."
        }
      ]
    },
    {
      "q": "pytz vs zoneinfo: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Use zoneinfo. The pytz maintainer marks pytz as deprecated and points modern Python projects to the standard zoneinfo module. Keep pytz only for older code that depends on its "
        },
        {
          "t": "code",
          "text": "localize()"
        },
        {
          "t": "text",
          "text": " API."
        }
      ]
    },
    {
      "q": "How do I check if a date is a holiday in Python?",
      "a": [
        {
          "t": "text",
          "text": "Use "
        },
        {
          "t": "link",
          "href": "#holidays",
          "label": [
            {
              "t": "text",
              "text": "holidays"
            }
          ]
        },
        {
          "t": "text",
          "text": ". Build a calendar with "
        },
        {
          "t": "code",
          "text": "holidays.country_holidays(\"US\")"
        },
        {
          "t": "text",
          "text": " and test a date with "
        },
        {
          "t": "code",
          "text": "in"
        },
        {
          "t": "text",
          "text": ". Call "
        },
        {
          "t": "code",
          "text": "holidays.financial_holidays(\"NYSE\")"
        },
        {
          "t": "text",
          "text": " for stock exchange holidays."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, python-dateutil",
      "display": "python-dateutil",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, python-dateutil",
      "display": "1.2B",
      "asOf": "2026-11-17"
    },
    "F3": {
      "label": "License, python-dateutil",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, python-dateutil",
      "display": "4.0.0, Nov 2026",
      "asOf": "2026-11-01"
    },
    "F5": {
      "label": "Package release date, python-dateutil",
      "display": "Nov 2026",
      "asOf": "2026-11-01"
    },
    "F6": {
      "label": "Repository stars, python-dateutil",
      "display": "2.6K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Parses dates, python-dateutil",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Timezone-aware values, python-dateutil",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Calendar offsets, python-dateutil",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, python-dateutil",
      "display": "pip install python-dateutil",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, python-dateutil",
      "display": "Extends Python’s datetime types with parsing, calendar offsets, recurring dates, and timezones.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, python-dateutil",
      "display": "Month and year offsets",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, python-dateutil",
      "display": "Add or subtract calendar months and years with relativedelta.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, python-dateutil",
      "display": "Recurring dates",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, python-dateutil",
      "display": "Build schedules by frequency, weekday, and day of the month with rrule.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, python-dateutil",
      "display": "Guesses on ambiguous dates",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, python-dateutil",
      "display": "Set dayfirst or yearfirst so numeric dates parse in the expected order.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, python-dateutil",
      "display": "Skips invalid recurrence dates",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, python-dateutil",
      "display": "A monthly rule on a day that some months lack skips those months.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, python-dateutil",
      "display": "from dateutil.parser import parse\nparse(\"2003-09-25\")\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, python-dateutil",
      "display": "def decode_relativedelta(var: dict[str, Any]) -> dateutil.relativedelta.relativedelta:\n    \"\"\"Dencode a relativedelta object.\"\"\"\n    copy_var = var.copy()\n    if \"weekday\" in copy_var:\n        copy_var[\"weekday\"] = dateutil.relativedelta.weekday(*copy_var[\"weekday\"])\n    return dateutil.relativedelta.relativedelta(**copy_var)\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, python-dateutil",
      "display": "decoders.py · decode_relativedelta()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, python-dateutil",
      "display": "apache/airflow",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, apache/airflow",
      "display": "47.5K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, apache/airflow",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F26": {
      "label": "Library name, arrow",
      "display": "Arrow",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, arrow",
      "display": "70.9M",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "License, arrow",
      "display": "Apache",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, arrow",
      "display": "1.4.0, Oct 2025",
      "asOf": "2025-10-18"
    },
    "F30": {
      "label": "Package release date, arrow",
      "display": "Oct 2025",
      "asOf": "2025-10-18"
    },
    "F31": {
      "label": "Repository stars, arrow",
      "display": "9.1K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Parses dates, arrow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Timezone-aware values, arrow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Calendar offsets, arrow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Install, arrow",
      "display": "pip install arrow",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "What it does, arrow",
      "display": "Creates, changes, formats, and converts dates, times, and timestamps.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, arrow",
      "display": "Chains timezone conversions",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, arrow",
      "display": "Parse a value, shift it by calendar units, and convert its timezone in one chain.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, arrow",
      "display": "Humanizes in many locales",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, arrow",
      "display": "Pass a locale to humanize() to get phrases like \"an hour ago\" in that language.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, arrow",
      "display": "Shifts move nonexistent times",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, arrow",
      "display": "Shifts into a daylight-saving gap move to a real time by default. Pass check_imaginary=False to skip that.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "Quickstart, arrow",
      "display": "import arrow\narrow.get('2013-05-11T21:23:58.970460+07:00')\n",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Project function, arrow",
      "display": "def scheduler(broker: Broker = None):\n    \"\"\"\n    Creates a task from a schedule at the scheduled time and schedules next run\n    \"\"\"\n    if not broker:\n        broker = get_broker()\n    close_old_django_connections()\n    try:\n        database_to_use = {\"using\": Conf.ORM} if not Conf.HAS_REPLICA else {}\n        with db.transaction.atomic(**database_to_use):\n            for s in (\n                Schedule.objects.select_for_update()\n                .exclude(repeats=0)\n                .filter(next_run__lt=timezone.now())\n                .filter(\n                    db.models.Q(cluster__isnull=True) | db.models.Q(cluster=Conf.PREFIX)\n                )\n            ):\n                args = ()\n                kwargs = {}\n                # get args, kwargs and hook\n                if s.kwargs:\n                    try:\n                        # eval should be safe here because dict()\n                        kwargs = eval(f\"dict({s.kwargs})\")\n                    except SyntaxError:\n                        kwargs = {}\n                if s.args:\n                    args = ast.literal_eval(s.args)\n                    # single value won't eval to tuple, so:\n                    if type(args) != tuple:\n                        args = (args,)\n                q_options = kwargs.get(\"q_options\", {})\n                if s.hook:\n                    q_options[\"hook\"] = s.hook\n                # set up the next run time\n                if s.schedule_type != s.ONCE:\n                    next_run = arrow.get(s.next_run)\n                    while True:\n                        if s.schedule_type == s.MINUTES:\n                            next_run = next_run.shift(minutes=+(s.minutes or 1))\n                        elif s.schedule_type == s.HOURLY:\n                            next_run = next_run.shift(hours=+1)\n                        elif s.schedule_type == s.DAILY:\n                            next_run = next_run.shift(days=+1)\n                        elif s.schedule_type == s.WEEKLY:\n                            next_run = next_run.shift(weeks=+1)\n                        elif s.schedule_type == s.MONTHLY:\n                            next_run = next_run.shift(months=+1)\n                        elif s.schedule_type == s.QUARTERLY:\n                            next_run = next_run.shift(months=+3)\n                        elif s.schedule_type == s.YEARLY:\n                            next_run = next_run.shift(years=+1)\n                        elif s.schedule_type == s.CRON:\n                            if not croniter:\n                                raise ImportError(\n                                    _(\n                                        \"Please install croniter to enable cron expressions\"\n                                    )\n                                )\n                            next_run = arrow.get(\n                                croniter(s.cron, localtime()).get_next()\n                            )\n                        if Conf.CATCH_UP or next_run > arrow.utcnow():\n                            break\n                    # arrow always returns a tz aware datetime, and we don't want\n                    # this when we explicitly configured django with USE_TZ=False\n                    s.next_run = (\n                        next_run.datetime\n                        if settings.USE_TZ\n                        else next_run.datetime.replace(tzinfo=None)\n                    )\n                    s.repeats += -1\n                # send it to the cluster\n                scheduled_broker = broker\n                try:\n                    scheduled_broker = get_broker(q_options[\"broker_name\"])\n                except:  # invalid broker_name or non existing broker with broker_name\n                    pass\n                q_options[\"broker\"] = scheduled_broker\n                q_options[\"group\"] = q_options.get(\"group\", s.name or s.id)\n                kwargs[\"q_options\"] = q_options\n                s.task = django_q.tasks.async_task(s.func, *args, **kwargs)\n                # log it\n                if not s.task:\n                    logger.error(\n                        _(\n                            f\"{current_process().name} failed to create a task from schedule [{s.name or s.id}]\"\n                        )\n                    )\n                else:\n                    logger.info(\n                        _(\n                            f\"{current_process().name} created a task from schedule [{s.name or s.id}]\"\n                        )\n                    )\n                # default behavior is to delete a ONCE schedule\n                if s.schedule_type == s.ONCE:\n                    if s.repeats < 0:\n                        s.delete()\n                        continue\n                    # but not if it has a positive repeats\n                    s.repeats = 0\n                # save the schedule\n                s.save()\n    except Exception as e:\n        logger.error(e)\n",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project function reference, arrow",
      "display": "cluster.py · scheduler()",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project repository, arrow",
      "display": "Koed00/django-q",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project stars, Koed00/django-q",
      "display": "1.9K",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project push date, Koed00/django-q",
      "display": "Aug 2024",
      "asOf": "2024-08-13"
    },
    "F49": {
      "label": "Library name, pendulum",
      "display": "Pendulum",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Monthly downloads, pendulum",
      "display": "56.4M",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "License, pendulum",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Package release, pendulum",
      "display": "3.3.0, Oct 2026",
      "asOf": "2026-10-12"
    },
    "F53": {
      "label": "Package release date, pendulum",
      "display": "Oct 2026",
      "asOf": "2026-10-12"
    },
    "F54": {
      "label": "Repository stars, pendulum",
      "display": "6.7K",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Parses dates, pendulum",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Timezone-aware values, pendulum",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Calendar offsets, pendulum",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Install, pendulum",
      "display": "pip install pendulum",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "What it does, pendulum",
      "display": "Provides datetime-compatible classes for timezone-aware date and time manipulation.",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "strengths lead, pendulum",
      "display": "Converts timezones in one call",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths, pendulum",
      "display": "Call in_timezone() to move a date into another timezone.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, pendulum",
      "display": "Localized relative times",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, pendulum",
      "display": "Pass locale to diff_for_humans() to change the language for one call.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "limitations lead, pendulum",
      "display": "Strict parsing by default",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations, pendulum",
      "display": "Pass strict=False to fall back to the dateutil parser for other formats.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "Quickstart, pendulum",
      "display": "import pendulum\npendulum.datetime(2015, 2, 5, tz='Europe/Paris')\n",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Project function, pendulum",
      "display": "def parse_timezone(name: str | int) -> FixedTimezone | Timezone:\n    \"\"\"\n    Parse timezone and return one of the pendulum Timezone.\n\n    Provide the same interface as ``pendulum.timezone(name)``\n\n    :param name: Either IANA timezone or offset to UTC in seconds.\n\n    :meta private:\n    \"\"\"\n    if _PENDULUM3:\n        # This only presented in pendulum 3 and code do not reached into the pendulum 2\n        return pendulum.timezone(name)  # type: ignore[operator]\n    # In pendulum 2 this refers to the function, in pendulum 3 refers to the module\n    return pendulum.tz.timezone(name)  # type: ignore[operator]\n",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Project function reference, pendulum",
      "display": "timezone.py · parse_timezone()",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project repository, pendulum",
      "display": "apache/airflow",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project stars, apache/airflow",
      "display": "47.5K",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project push date, apache/airflow",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F72": {
      "label": "Library name, dateparser",
      "display": "dateparser",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Monthly downloads, dateparser",
      "display": "42.3M",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "License, dateparser",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Package release, dateparser",
      "display": "1.5.0, Nov 2026",
      "asOf": "2026-11-04"
    },
    "F76": {
      "label": "Package release date, dateparser",
      "display": "Nov 2026",
      "asOf": "2026-11-04"
    },
    "F77": {
      "label": "Repository stars, dateparser",
      "display": "2.9K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Parses dates, dateparser",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Timezone-aware values, dateparser",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Install, dateparser",
      "display": "pip install dateparser",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "What it does, dateparser",
      "display": "Parses localized and relative date strings into datetime values.",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "strengths lead, dateparser",
      "display": "Parses many languages",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "strengths, dateparser",
      "display": "Pass languages when they are known, and dateparser skips detection.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths lead, dateparser",
      "display": "Parses relative dates",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths, dateparser",
      "display": "Turns phrases like \"In two months\" into a datetime.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "limitations lead, dateparser",
      "display": "Fills in missing date parts",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "limitations, dateparser",
      "display": "Set STRICT_PARSING to reject dates with missing parts.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Quickstart, dateparser",
      "display": "import dateparser\ndateparser.parse('1991-05-17')\n",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Library name, datetime",
      "display": "datetime",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Monthly downloads, datetime",
      "display": "Standard library",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "License, datetime",
      "display": "PSF License Version 2",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Package release, datetime",
      "display": "With Python",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Undated package release, datetime",
      "display": "With Python",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Repository context, datetime",
      "display": "Part of Python",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Parses dates, datetime",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Timezone-aware values, datetime",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Install, datetime",
      "display": "python -c \"import datetime\"",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "What it does, datetime",
      "display": "Provides Python’s bundled date, time, and duration types.",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "strengths lead, datetime",
      "display": "Ships with Python",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "strengths, datetime",
      "display": "Use date, time, datetime, and timedelta without installing a separate package.",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "strengths lead, datetime",
      "display": "Distinguishes aware and naive values",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "strengths, datetime",
      "display": "Attach timezone information when a value must identify a specific instant.",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "limitations lead, datetime",
      "display": "Naive values omit timezone context",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "limitations, datetime",
      "display": "Use aware datetimes when representing a specific instant across timezones.",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Quickstart, datetime",
      "display": "import datetime as dt\ndt.date.fromisoformat('2019-12-04')\n",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Project function, datetime",
      "display": "def _load_retry_after(value: str) -> dt.datetime | None:\n    try:\n        seconds = _plain_int(value)\n    except ValueError:\n        return parse_date(value)\n\n    if seconds < 0:\n        return None\n\n    try:\n        delta = dt.timedelta(seconds)\n    except OverflowError:\n        return None\n\n    return dt.datetime.now(dt.UTC) + delta\n",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Project function reference, datetime",
      "display": "http.py · _load_retry_after()",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Project repository, datetime",
      "display": "pallets/werkzeug",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Project stars, pallets/werkzeug",
      "display": "6.9K",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Project push date, pallets/werkzeug",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F111": {
      "label": "Developer need",
      "display": "Bundled date and duration types",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Why choose datetime",
      "display": "the standard-library baseline without an extra package install",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need in introduction",
      "display": "bundled date and duration types",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "When to consider python-dateutil",
      "display": "Adding months and years",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need",
      "display": "Recurring calendar rules",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Why choose python-dateutil",
      "display": "calendar recurrence constraints through rrule",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Developer need in introduction",
      "display": "recurring calendar rules",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "When to consider dateparser",
      "display": "for phrases in other languages",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "Developer need",
      "display": "Datetime-compatible timezone workflows",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "Why choose pendulum",
      "display": "subclasses datetime with time zones built in",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "Developer need in introduction",
      "display": "datetime-compatible timezone workflows",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "When to consider arrow",
      "display": "for humanized times in many languages",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "Developer need",
      "display": "Chained date transformations",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "Why choose arrow",
      "display": "chains parsing, shifting, and formatting",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "Developer need in introduction",
      "display": "chained date transformations",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "When to consider datetime",
      "display": "the bundled date/time types already cover the task",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "Developer need",
      "display": "Dates in many languages",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "Why choose dateparser",
      "display": "language-aware parsing with optional explicit languages",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "Developer need in introduction",
      "display": "multilingual date input",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "Page introduction",
      "display": "Python date and time libraries let developers work with dates and times.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Which Python date library should I choose?",
      "display": "datetime is part of the standard library distributed with Python.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Which Python date library should I choose?",
      "display": "python-dateutil provides calendar-relative offsets.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Which Python date library should I choose?",
      "display": "dateparser handles input in different languages.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Does datetime need a pip install?",
      "display": "datetime belongs to Python’s bundled standard library.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: Why does an ambiguous numeric date parse differently?",
      "display": "dateutil parsing is forgiving and accepts ambiguous dates; choose dayfirst/yearfirst deliberately.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "FAQ: Can a monthly recurrence skip a month?",
      "display": "dateutil rrule ignores recurrence instances that fall on invalid dates or nonexistent local times.",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "FAQ: Does a naive datetime identify an unambiguous instant?",
      "display": "A naive datetime lacks enough information to locate itself relative to other date/time objects.",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "FAQ: What happens when a date shift lands inside a daylight-saving gap?",
      "display": "Arrow checks for and resolves imaginary local times by default when shifting.",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "FAQ: How can incomplete date inputs be rejected?",
      "display": "dateparser supports STRICT_PARSING to ignore incomplete dates.",
      "asOf": "2026-11-17"
    },
    "F140": {
      "label": "FAQ: How can relative dates be presented in another language?",
      "display": "Pendulum diff_for_humans accepts a locale argument.",
      "asOf": "2026-11-17"
    },
    "F141": {
      "label": "FAQ: How can relative dates be presented in another language?",
      "display": "Arrow humanize accepts an explicit locale.",
      "asOf": "2026-11-17"
    },
    "F142": {
      "label": "FAQ: Does Pendulum parse every date string by default?",
      "display": "Pendulum requires strict=False to fall back to the dateutil parser.",
      "asOf": "2026-11-17"
    },
    "F143": {
      "label": "Library name, python-dateutil",
      "display": "python-dateutil",
      "asOf": "2026-11-18"
    },
    "F144": {
      "label": "Monthly downloads, python-dateutil",
      "display": "1.2B",
      "asOf": "2026-11-18"
    },
    "F145": {
      "label": "License, python-dateutil",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-18"
    },
    "F146": {
      "label": "Package release, python-dateutil",
      "display": "4.0.0",
      "asOf": "2026-11-18"
    },
    "F147": {
      "label": "Package release date, python-dateutil",
      "display": "Nov 2026",
      "asOf": "2026-11-18"
    },
    "F148": {
      "label": "Install, python-dateutil",
      "display": "pip install python-dateutil",
      "asOf": "2026-11-18"
    },
    "F149": {
      "label": "Quickstart, python-dateutil",
      "display": "from dateutil.parser import parse\nparse(\"2003-09-25\")\n",
      "asOf": "2026-11-18"
    },
    "F150": {
      "label": "Repository stars, python-dateutil",
      "display": "2.6K",
      "asOf": "2026-11-18"
    },
    "F151": {
      "label": "IANA timezone objects, python-dateutil",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F152": {
      "label": "Calendar month/year offsets, python-dateutil",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F153": {
      "label": "Relative date phrases, python-dateutil",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F154": {
      "label": "Documented role, python-dateutil",
      "display": "Datetime extensions: relativedelta, recurrence rules, flexible parser, and timezone helpers",
      "asOf": "2026-11-18"
    },
    "F155": {
      "label": "IANA timezone objects, python-dateutil",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F156": {
      "label": "Calendar month/year offsets, python-dateutil",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F157": {
      "label": "Relative date phrases, python-dateutil",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F158": {
      "label": "Project function, python-dateutil",
      "display": "def eval(self) -> datetime:\n        dttm_expression, unit = self.value\n        dttm = dttm_expression.eval()\n        if unit == \"year\":\n            return dttm.replace(\n                month=12, day=31, hour=0, minute=0, second=0, microsecond=0\n            )\n        if unit == \"quarter\":\n            # Both arguments are passed to a single `replace` so the day is\n            # never briefly out of range for the new month (e.g. the 31st\n            # moving into a 30-day quarter-end month).\n            last_month = 3 * ((dttm.month - 1) // 3) + 3\n            return dttm.replace(\n                month=last_month,\n                day=calendar.monthrange(dttm.year, last_month)[1],\n                hour=0,\n                minute=0,\n                second=0,\n                microsecond=0,\n            )\n        if unit == \"month\":\n            return dttm.replace(\n                day=calendar.monthrange(dttm.year, dttm.month)[1],\n                hour=0,\n                minute=0,\n                second=0,\n                microsecond=0,\n            )\n        if unit == \"day\":\n            # The last day of a day is that same day. Truncating to midnight\n            # keeps the result consistent with every other unit here, which\n            # all return the final day at midnight rather than at its end.\n            return dttm.replace(hour=0, minute=0, second=0, microsecond=0)\n        # unit == \"week\":\n        mon = dttm - relativedelta(days=dttm.weekday())\n        mon = mon.replace(hour=0, minute=0, second=0, microsecond=0)\n        return mon + relativedelta(days=6)\n",
      "asOf": "2026-11-18"
    },
    "F159": {
      "label": "Project source file, python-dateutil",
      "display": "superset/utils/date_parser.py",
      "asOf": "2026-11-18"
    },
    "F160": {
      "label": "Project full_name, python-dateutil",
      "display": "apache/superset",
      "asOf": "2026-11-18"
    },
    "F161": {
      "label": "Project stargazers_count, python-dateutil",
      "display": "75.6K",
      "asOf": "2026-11-18"
    },
    "F162": {
      "label": "Library name, pytz",
      "display": "pytz",
      "asOf": "2026-11-18"
    },
    "F163": {
      "label": "Monthly downloads, pytz",
      "display": "508.9M",
      "asOf": "2026-11-18"
    },
    "F164": {
      "label": "License, pytz",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F165": {
      "label": "Package release, pytz",
      "display": "2026.6",
      "asOf": "2026-11-18"
    },
    "F166": {
      "label": "Package release date, pytz",
      "display": "Oct 2026",
      "asOf": "2026-11-18"
    },
    "F167": {
      "label": "Install, pytz",
      "display": "pip install pytz",
      "asOf": "2026-11-18"
    },
    "F168": {
      "label": "Quickstart, pytz",
      "display": "from pytz import timezone\neastern = timezone('US/Eastern')\n",
      "asOf": "2026-11-18"
    },
    "F169": {
      "label": "Official description, pytz",
      "display": "Brings modern and historical world timezone definitions to Python, for code that predates zoneinfo.",
      "asOf": "2026-11-18"
    },
    "F170": {
      "label": "Quickstart source file, pytz",
      "display": "src/README.rst",
      "asOf": "2026-11-18"
    },
    "F171": {
      "label": "Repository stars, pytz",
      "display": "399",
      "asOf": "2026-11-18"
    },
    "F172": {
      "label": "IANA timezone objects, pytz",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F173": {
      "label": "Calendar month/year offsets, pytz",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F174": {
      "label": "Relative date phrases, pytz",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F175": {
      "label": "Documented role, pytz",
      "display": "Legacy IANA timezone objects; localize/normalize API",
      "asOf": "2026-11-18"
    },
    "F176": {
      "label": "Maintenance and migration, pytz",
      "display": "Deprecated for new modern-Python use; maintainer recommends stdlib zoneinfo on Python 3.9+",
      "asOf": "2026-11-18"
    },
    "F177": {
      "label": "IANA timezone objects, pytz",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F178": {
      "label": "Calendar month/year offsets, pytz",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F179": {
      "label": "Relative date phrases, pytz",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F180": {
      "label": "Project function, pytz",
      "display": "def make_aware(value, timezone=None, is_dst=None):\n    \"\"\"Make a naive datetime.datetime in a given time zone aware.\"\"\"\n    if timezone is None:\n        timezone = get_current_timezone()\n    if _is_pytz_zone(timezone):\n        # This method is available for pytz time zones.\n        return timezone.localize(value, is_dst=is_dst)\n    else:\n        # Check that we won't overwrite the timezone of an aware datetime.\n        if is_aware(value):\n            raise ValueError(\n                \"make_aware expects a naive datetime, got %s\" % value)\n        # This may be wrong around DST changes!\n        return value.replace(tzinfo=timezone)\n",
      "asOf": "2026-11-18"
    },
    "F181": {
      "label": "Project source file, pytz",
      "display": "django/utils/timezone.py",
      "asOf": "2026-11-18"
    },
    "F182": {
      "label": "Project full_name, pytz",
      "display": "django/django",
      "asOf": "2026-11-18"
    },
    "F183": {
      "label": "Project stargazers_count, pytz",
      "display": "91.9K",
      "asOf": "2026-11-18"
    },
    "F184": {
      "label": "Library name, tzlocal",
      "display": "tzlocal",
      "asOf": "2026-11-18"
    },
    "F185": {
      "label": "Monthly downloads, tzlocal",
      "display": "192.0M",
      "asOf": "2026-11-18"
    },
    "F186": {
      "label": "License, tzlocal",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F187": {
      "label": "Package release, tzlocal",
      "display": "5.4.5",
      "asOf": "2026-11-18"
    },
    "F188": {
      "label": "Package release date, tzlocal",
      "display": "Oct 2026",
      "asOf": "2026-11-18"
    },
    "F189": {
      "label": "Install, tzlocal",
      "display": "pip install tzlocal",
      "asOf": "2026-11-18"
    },
    "F190": {
      "label": "Quickstart, tzlocal",
      "display": "from tzlocal import get_localzone\ntz = get_localzone()\n",
      "asOf": "2026-11-18"
    },
    "F191": {
      "label": "Official description, tzlocal",
      "display": "tzinfo object for the local timezone",
      "asOf": "2026-11-18"
    },
    "F192": {
      "label": "Quickstart source file, tzlocal",
      "display": "README.rst",
      "asOf": "2026-11-18"
    },
    "F193": {
      "label": "Repository stars, tzlocal",
      "display": "221",
      "asOf": "2026-11-18"
    },
    "F194": {
      "label": "IANA timezone objects, tzlocal",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F195": {
      "label": "Calendar month/year offsets, tzlocal",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F196": {
      "label": "Relative date phrases, tzlocal",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F197": {
      "label": "Documented role, tzlocal",
      "display": "Discover the host timezone as zoneinfo; does not resolve arbitrary zones itself",
      "asOf": "2026-11-18"
    },
    "F198": {
      "label": "Return type, tzlocal",
      "display": "zoneinfo.ZoneInfo in version 5; pytz shim removed",
      "asOf": "2026-11-18"
    },
    "F199": {
      "label": "IANA timezone objects, tzlocal",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F200": {
      "label": "Calendar month/year offsets, tzlocal",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F201": {
      "label": "Relative date phrases, tzlocal",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F202": {
      "label": "Project function, tzlocal",
      "display": "def _resolve_timezone():\n    tz_name = os.getenv(\"SCHEDULER_TIMEZONE\")\n    if tz_name:\n        try:\n            return ZoneInfo(tz_name)\n        except (ZoneInfoNotFoundError, ValueError):\n            logging.warning(f\"Invalid SCHEDULER_TIMEZONE '{tz_name}', defaulting to machine timezone\")\n    return get_localzone()\n",
      "asOf": "2026-11-18"
    },
    "F203": {
      "label": "Project source file, tzlocal",
      "display": "main.py",
      "asOf": "2026-11-18"
    },
    "F204": {
      "label": "Project full_name, tzlocal",
      "display": "Azure/agent-app-ingestion",
      "asOf": "2026-11-18"
    },
    "F205": {
      "label": "Project stargazers_count, tzlocal",
      "display": "187",
      "asOf": "2026-11-18"
    },
    "F206": {
      "label": "Library name, arrow",
      "display": "Arrow",
      "asOf": "2026-11-18"
    },
    "F207": {
      "label": "Monthly downloads, arrow",
      "display": "73.7M",
      "asOf": "2026-11-18"
    },
    "F208": {
      "label": "License, arrow",
      "display": "Apache-2.0",
      "asOf": "2026-11-18"
    },
    "F209": {
      "label": "Package release, arrow",
      "display": "1.4.0",
      "asOf": "2026-11-18"
    },
    "F210": {
      "label": "Package release date, arrow",
      "display": "Oct 2025",
      "asOf": "2026-11-18"
    },
    "F211": {
      "label": "Install, arrow",
      "display": "pip install -U arrow",
      "asOf": "2026-11-18"
    },
    "F212": {
      "label": "Quickstart, arrow",
      "display": "import arrow\narrow.get('2013-05-11T21:23:58.970460+07:00')\n",
      "asOf": "2026-11-18"
    },
    "F213": {
      "label": "Repository stars, arrow",
      "display": "9.1K",
      "asOf": "2026-11-18"
    },
    "F214": {
      "label": "IANA timezone objects, arrow",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F215": {
      "label": "Calendar month/year offsets, arrow",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F216": {
      "label": "Relative date phrases, arrow",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F217": {
      "label": "Documented role, arrow",
      "display": "Arrow datetime wrapper with shift, humanize/dehumanize, and formatting",
      "asOf": "2026-11-18"
    },
    "F218": {
      "label": "IANA timezone objects, arrow",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F219": {
      "label": "Calendar month/year offsets, arrow",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F220": {
      "label": "Relative date phrases, arrow",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F221": {
      "label": "Project function, arrow",
      "display": "def scheduler(broker: Broker = None):\n    \"\"\"\n    Creates a task from a schedule at the scheduled time and schedules next run\n    \"\"\"\n    if not broker:\n        broker = get_broker()\n    close_old_django_connections()\n    try:\n        database_to_use = {\"using\": Conf.ORM} if not Conf.HAS_REPLICA else {}\n        with db.transaction.atomic(**database_to_use):\n            for s in (\n                Schedule.objects.select_for_update()\n                .exclude(repeats=0)\n                .filter(next_run__lt=timezone.now())\n                .filter(\n                    db.models.Q(cluster__isnull=True) | db.models.Q(cluster=Conf.PREFIX)\n                )\n            ):\n                args = ()\n                kwargs = {}\n                # get args, kwargs and hook\n                if s.kwargs:\n                    try:\n                        # eval should be safe here because dict()\n                        kwargs = eval(f\"dict({s.kwargs})\")\n                    except SyntaxError:\n                        kwargs = {}\n                if s.args:\n                    args = ast.literal_eval(s.args)\n                    # single value won't eval to tuple, so:\n                    if type(args) != tuple:\n                        args = (args,)\n                q_options = kwargs.get(\"q_options\", {})\n                if s.hook:\n                    q_options[\"hook\"] = s.hook\n                # set up the next run time\n                if s.schedule_type != s.ONCE:\n                    next_run = arrow.get(s.next_run)\n                    while True:\n                        if s.schedule_type == s.MINUTES:\n                            next_run = next_run.shift(minutes=+(s.minutes or 1))\n                        elif s.schedule_type == s.HOURLY:\n                            next_run = next_run.shift(hours=+1)\n                        elif s.schedule_type == s.DAILY:\n                            next_run = next_run.shift(days=+1)\n                        elif s.schedule_type == s.WEEKLY:\n                            next_run = next_run.shift(weeks=+1)\n                        elif s.schedule_type == s.MONTHLY:\n                            next_run = next_run.shift(months=+1)\n                        elif s.schedule_type == s.QUARTERLY:\n                            next_run = next_run.shift(months=+3)\n                        elif s.schedule_type == s.YEARLY:\n                            next_run = next_run.shift(years=+1)\n                        elif s.schedule_type == s.CRON:\n                            if not croniter:\n                                raise ImportError(\n                                    _(\n                                        \"Please install croniter to enable cron expressions\"\n                                    )\n                                )\n                            next_run = arrow.get(\n                                croniter(s.cron, localtime()).get_next()\n                            )\n                        if Conf.CATCH_UP or next_run > arrow.utcnow():\n                            break\n                    # arrow always returns a tz aware datetime, and we don't want\n                    # this when we explicitly configured django with USE_TZ=False\n                    s.next_run = (\n                        next_run.datetime\n                        if settings.USE_TZ\n                        else next_run.datetime.replace(tzinfo=None)\n                    )\n                    s.repeats += -1\n                # send it to the cluster\n                scheduled_broker = broker\n                try:\n                    scheduled_broker = get_broker(q_options[\"broker_name\"])\n                except:  # invalid broker_name or non existing broker with broker_name\n                    pass\n                q_options[\"broker\"] = scheduled_broker\n                q_options[\"group\"] = q_options.get(\"group\", s.name or s.id)\n                kwargs[\"q_options\"] = q_options\n                s.task = django_q.tasks.async_task(s.func, *args, **kwargs)\n                # log it\n                if not s.task:\n                    logger.error(\n                        _(\n                            f\"{current_process().name} failed to create a task from schedule [{s.name or s.id}]\"\n                        )\n                    )\n                else:\n                    logger.info(\n                        _(\n                            f\"{current_process().name} created a task from schedule [{s.name or s.id}]\"\n                        )\n                    )\n                # default behavior is to delete a ONCE schedule\n                if s.schedule_type == s.ONCE:\n                    if s.repeats < 0:\n                        s.delete()\n                        continue\n                    # but not if it has a positive repeats\n                    s.repeats = 0\n                # save the schedule\n                s.save()\n    except Exception as e:\n        logger.error(e)\n",
      "asOf": "2026-11-18"
    },
    "F222": {
      "label": "Project source file, arrow",
      "display": "django_q/cluster.py",
      "asOf": "2026-11-18"
    },
    "F223": {
      "label": "Project full_name, arrow",
      "display": "Koed00/django-q",
      "asOf": "2026-11-18"
    },
    "F224": {
      "label": "Project stargazers_count, arrow",
      "display": "1.9K",
      "asOf": "2026-11-18"
    },
    "F225": {
      "label": "Library name, pendulum",
      "display": "Pendulum",
      "asOf": "2026-11-18"
    },
    "F226": {
      "label": "Monthly downloads, pendulum",
      "display": "58.3M",
      "asOf": "2026-11-18"
    },
    "F227": {
      "label": "License, pendulum",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F228": {
      "label": "Package release, pendulum",
      "display": "3.3.0",
      "asOf": "2026-11-18"
    },
    "F229": {
      "label": "Package release date, pendulum",
      "display": "Oct 2026",
      "asOf": "2026-11-18"
    },
    "F230": {
      "label": "Install, pendulum",
      "display": "pip install pendulum",
      "asOf": "2026-11-18"
    },
    "F231": {
      "label": "Quickstart, pendulum",
      "display": "import pendulum\npendulum.datetime(2015, 2, 5, tz='Europe/Paris')\n",
      "asOf": "2026-11-18"
    },
    "F232": {
      "label": "Repository stars, pendulum",
      "display": "6.7K",
      "asOf": "2026-11-18"
    },
    "F233": {
      "label": "IANA timezone objects, pendulum",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F234": {
      "label": "Calendar month/year offsets, pendulum",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F235": {
      "label": "Relative date phrases, pendulum",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F236": {
      "label": "Documented role, pendulum",
      "display": "Timezone-aware DateTime wrapper with calendar arithmetic",
      "asOf": "2026-11-18"
    },
    "F237": {
      "label": "IANA timezone objects, pendulum",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F238": {
      "label": "Calendar month/year offsets, pendulum",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F239": {
      "label": "Relative date phrases, pendulum",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F240": {
      "label": "Project function, pendulum",
      "display": "def parse_timezone(name: str | int) -> FixedTimezone | Timezone:\n    \"\"\"\n    Parse timezone and return one of the pendulum Timezone.\n\n    Provide the same interface as ``pendulum.timezone(name)``\n\n    :param name: Either IANA timezone or offset to UTC in seconds.\n\n    :meta private:\n    \"\"\"\n    if _PENDULUM3:\n        # This only presented in pendulum 3 and code do not reached into the pendulum 2\n        return pendulum.timezone(name)  # type: ignore[operator]\n    # In pendulum 2 this refers to the function, in pendulum 3 refers to the module\n    return pendulum.tz.timezone(name)  # type: ignore[operator]\n",
      "asOf": "2026-11-18"
    },
    "F241": {
      "label": "Project source file, pendulum",
      "display": "shared/timezones/src/airflow_shared/timezones/timezone.py",
      "asOf": "2026-11-18"
    },
    "F242": {
      "label": "Project full_name, pendulum",
      "display": "apache/airflow",
      "asOf": "2026-11-18"
    },
    "F243": {
      "label": "Project stargazers_count, pendulum",
      "display": "47.5K",
      "asOf": "2026-11-18"
    },
    "F244": {
      "label": "Library name, dateparser",
      "display": "dateparser",
      "asOf": "2026-11-18"
    },
    "F245": {
      "label": "Monthly downloads, dateparser",
      "display": "44.1M",
      "asOf": "2026-11-18"
    },
    "F246": {
      "label": "License, dateparser",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-18"
    },
    "F247": {
      "label": "Package release, dateparser",
      "display": "1.5.0",
      "asOf": "2026-11-18"
    },
    "F248": {
      "label": "Package release date, dateparser",
      "display": "Nov 2026",
      "asOf": "2026-11-18"
    },
    "F249": {
      "label": "Install, dateparser",
      "display": "pip install dateparser",
      "asOf": "2026-11-18"
    },
    "F250": {
      "label": "Quickstart, dateparser",
      "display": "import dateparser\ndateparser.parse('1991-05-17')\n",
      "asOf": "2026-11-18"
    },
    "F251": {
      "label": "Repository stars, dateparser",
      "display": "2.9K",
      "asOf": "2026-11-18"
    },
    "F252": {
      "label": "IANA timezone objects, dateparser",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F253": {
      "label": "Calendar month/year offsets, dateparser",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F254": {
      "label": "Relative date phrases, dateparser",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F255": {
      "label": "Documented role, dateparser",
      "display": "Multilingual absolute and relative text parsing with explicit settings",
      "asOf": "2026-11-18"
    },
    "F256": {
      "label": "Ambiguous/incomplete dates, dateparser",
      "display": "DATE_ORDER, locale date-order preference, and PREFER_DAY_OF_MONTH are explicit settings",
      "asOf": "2026-11-18"
    },
    "F257": {
      "label": "IANA timezone objects, dateparser",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F258": {
      "label": "Calendar month/year offsets, dateparser",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F259": {
      "label": "Relative date phrases, dateparser",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F260": {
      "label": "Project function, dateparser",
      "display": "def __parser(ds, date_order):\n            \"\"\"\n            Call dateparser.parse with a particular date ordering\n            \"\"\"\n            return dateparser.parse(\n                ds,\n                settings={\n                    \"DATE_ORDER\": date_order,\n                    \"PREFER_DAY_OF_MONTH\": \"first\",\n                    \"RETURN_AS_TIMEZONE_AWARE\":\n                    True\n                }\n            )\n",
      "asOf": "2026-11-18"
    },
    "F261": {
      "label": "Project source file, dateparser",
      "display": "src/documents/parsers.py",
      "asOf": "2026-11-18"
    },
    "F262": {
      "label": "Project full_name, dateparser",
      "display": "the-paperless-project/paperless",
      "asOf": "2026-11-18"
    },
    "F263": {
      "label": "Project stargazers_count, dateparser",
      "display": "7.9K",
      "asOf": "2026-11-18"
    },
    "F264": {
      "label": "Library name, holidays",
      "display": "holidays",
      "asOf": "2026-11-18"
    },
    "F265": {
      "label": "Monthly downloads, holidays",
      "display": "32.7M",
      "asOf": "2026-11-18"
    },
    "F266": {
      "label": "License, holidays",
      "display": "MIT",
      "asOf": "2026-11-18"
    },
    "F267": {
      "label": "Package release, holidays",
      "display": "0.109",
      "asOf": "2026-11-18"
    },
    "F268": {
      "label": "Package release date, holidays",
      "display": "Nov 2026",
      "asOf": "2026-11-18"
    },
    "F269": {
      "label": "Install, holidays",
      "display": "pip install --upgrade holidays",
      "asOf": "2026-11-18"
    },
    "F270": {
      "label": "Quickstart, holidays",
      "display": "from datetime import date\nimport holidays\nus_holidays = holidays.US()  # this is a dict-like object\ndate(2015, 1, 1) in us_holidays  # True\n",
      "asOf": "2026-11-18"
    },
    "F271": {
      "label": "Official description, holidays",
      "display": "Open World Holidays Framework",
      "asOf": "2026-11-18"
    },
    "F272": {
      "label": "Quickstart source file, holidays",
      "display": "README.md",
      "asOf": "2026-11-18"
    },
    "F273": {
      "label": "Repository stars, holidays",
      "display": "2.0K",
      "asOf": "2026-11-18"
    },
    "F274": {
      "label": "IANA timezone objects, holidays",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F275": {
      "label": "Calendar month/year offsets, holidays",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F276": {
      "label": "Relative date phrases, holidays",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F277": {
      "label": "Documented role, holidays",
      "display": "Jurisdiction and financial-market holiday calendars",
      "asOf": "2026-11-18"
    },
    "F278": {
      "label": "Jurisdiction coverage, holidays",
      "display": "Country/subdivision calendars and financial calendars; language and observed settings",
      "asOf": "2026-11-18"
    },
    "F279": {
      "label": "IANA timezone objects, holidays",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F280": {
      "label": "Calendar month/year offsets, holidays",
      "display": "No",
      "asOf": "2026-11-18"
    },
    "F281": {
      "label": "Relative date phrases, holidays",
      "display": "Undocumented",
      "asOf": "2026-11-18"
    },
    "F282": {
      "label": "Project function, holidays",
      "display": "def make_holidays_df(\n    year_list: list[int],\n    country: str,\n    province: str | None = None,\n    state: str | None = None,  # unused\n) -> pd.DataFrame:\n    \"\"\"Make dataframe of holidays for given years and countries\n\n    Parameters\n    ----------\n    year_list: a list of years\n    country: country name\n    province: province name\n\n    Returns\n    -------\n    Dataframe with 'ds' and 'holiday', which can directly feed\n    to 'holidays' params in Prophet\n    \"\"\"\n    country_holidays = get_country_holidays_class(country)\n    holidays = country_holidays(expand=False, language=\"en_US\", subdiv=province, years=year_list)\n\n    holidays_df = pd.DataFrame(\n        [(date, holidays.get_list(date)) for date in holidays],\n        columns=[\"ds\", \"holiday\"],\n    )\n    holidays_df = holidays_df.explode(\"holiday\")\n    holidays_df.reset_index(inplace=True, drop=True)\n    holidays_df[\"ds\"] = pd.to_datetime(holidays_df[\"ds\"])\n\n    return holidays_df\n",
      "asOf": "2026-11-18"
    },
    "F283": {
      "label": "Project source file, holidays",
      "display": "python/prophet/make_holidays.py",
      "asOf": "2026-11-18"
    },
    "F284": {
      "label": "Project full_name, holidays",
      "display": "meta/prophet",
      "asOf": "2026-11-18"
    },
    "F285": {
      "label": "Project stargazers_count, holidays",
      "display": "20.5K",
      "asOf": "2026-11-18"
    },
    "F286": {
      "label": "Library name, parsedatetime",
      "display": "parsedatetime",
      "asOf": "2026-11-18"
    },
    "F287": {
      "label": "Monthly downloads, parsedatetime",
      "display": "25.7M",
      "asOf": "2026-11-18"
    },
    "F288": {
      "label": "License, parsedatetime",
      "display": "Apache-2.0",
      "asOf": "2026-11-18"
    },
    "F289": {
      "label": "Package release, parsedatetime",
      "display": "2.6",
      "asOf": "2026-11-18"
    },
    "F290": {
      "label": "Package release date, parsedatetime",
      "display": "May 2020",
      "asOf": "2026-11-18"
    },
    "F291": {
      "label": "Install, parsedatetime",
      "display": "pip install parsedatetime",
      "asOf": "2026-11-18"
    },
    "F292": {
      "label": "Quickstart, parsedatetime",
      "display": "import parsedatetime\ncal = parsedatetime.Calendar()\ncal.parse(\"tomorrow\")\n",
      "asOf": "2026-11-18"
    },
    "F293": {
      "label": "Official description, parsedatetime",
      "display": "Parse human-readable date/time text.",
      "asOf": "2026-11-18"
    },
    "F294": {
      "label": "Quickstart source file, parsedatetime",
      "display": "README.md",
      "asOf": "2026-11-18"
    },
    "F295": {
      "label": "Repository stars, parsedatetime",
      "display": "710",
      "asOf": "2026-11-18"
    },
    "F296": {
      "label": "IANA timezone objects, parsedatetime",
      "display": "Via plugin",
      "asOf": "2026-11-18"
    },
    "F297": {
      "label": "Calendar month/year offsets, parsedatetime",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F298": {
      "label": "Relative date phrases, parsedatetime",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F299": {
      "label": "Documented role, parsedatetime",
      "display": "Human-readable parsing returning a time tuple or datetime and parse status",
      "asOf": "2026-11-18"
    },
    "F300": {
      "label": "Result status, parsedatetime",
      "display": "Default flag style: 0 none, 1 date, 2 time, 3 datetime",
      "asOf": "2026-11-18"
    },
    "F301": {
      "label": "IANA timezone objects, parsedatetime",
      "display": "Via plugin",
      "asOf": "2026-11-18"
    },
    "F302": {
      "label": "Calendar month/year offsets, parsedatetime",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F303": {
      "label": "Relative date phrases, parsedatetime",
      "display": "Yes",
      "asOf": "2026-11-18"
    },
    "F304": {
      "label": "Project function, parsedatetime",
      "display": "def parse_human_datetime(human_readable: str) -> datetime:\n    \"\"\"Returns ``datetime.datetime`` from human readable strings\"\"\"\n    x_periods = r\"^\\s*([0-9]+)\\s+(second|minute|hour|day|week|month|quarter|year)s?\\s*$\"\n    if re.search(x_periods, human_readable, re.IGNORECASE):\n        raise TimeRangeAmbiguousError(human_readable)\n    try:\n        default = datetime(year=datetime.now().year, month=1, day=1)\n        dttm = parse(human_readable, default=default)\n    except (ValueError, OverflowError) as ex:\n        cal = parsedatetime.Calendar()\n        parsed_dttm, parsed_flags = cal.parseDT(human_readable)\n        # 0 == not parsed at all\n        if parsed_flags == 0:\n            logger.debug(ex)\n            raise TimeRangeParseFailError(human_readable) from ex\n        # when time is not extracted, we 'reset to midnight'\n        if parsed_flags & 2 == 0:\n            parsed_dttm = parsed_dttm.replace(hour=0, minute=0, second=0)\n        dttm = dttm_from_timetuple(parsed_dttm.utctimetuple())\n    return dttm\n",
      "asOf": "2026-11-18"
    },
    "F305": {
      "label": "Project source file, parsedatetime",
      "display": "superset/utils/date_parser.py",
      "asOf": "2026-11-18"
    },
    "F306": {
      "label": "Project full_name, parsedatetime",
      "display": "apache/superset",
      "asOf": "2026-11-18"
    },
    "F307": {
      "label": "Project stargazers_count, parsedatetime",
      "display": "75.6K",
      "asOf": "2026-11-18"
    },
    "F308": {
      "label": "Pick reason, python-dateutil",
      "display": "adds relativedelta and a flexible parser to datetime",
      "asOf": "2026-11-17"
    },
    "F309": {
      "label": "Pick alternative reason, Pendulum",
      "display": "for a drop-in datetime replacement",
      "asOf": "2026-11-17"
    },
    "F310": {
      "label": "Developer need, Arrow",
      "display": "Simpler datetime code",
      "asOf": "2026-11-17"
    },
    "F311": {
      "label": "Developer need, pytz",
      "display": "Timezones in older code",
      "asOf": "2026-11-17"
    },
    "F312": {
      "label": "Pick reason, pytz",
      "display": "keeps existing pytz code working; use zoneinfo for new code",
      "asOf": "2026-11-17"
    },
    "F313": {
      "label": "Developer need, Pendulum",
      "display": "A drop-in datetime replacement",
      "asOf": "2026-11-17"
    },
    "F314": {
      "label": "Developer need, tzlocal",
      "display": "The machine's local timezone",
      "asOf": "2026-11-17"
    },
    "F315": {
      "label": "Pick reason, tzlocal",
      "display": "returns it with one function call",
      "asOf": "2026-11-17"
    },
    "F316": {
      "label": "Pick reason, dateparser",
      "display": "detects the language and parses the date",
      "asOf": "2026-11-17"
    },
    "F317": {
      "label": "Pick alternative reason, python-dateutil",
      "display": "for known formats in English",
      "asOf": "2026-11-17"
    },
    "F318": {
      "label": "Developer need, parsedatetime",
      "display": "Phrases like \"tomorrow\"",
      "asOf": "2026-11-17"
    },
    "F319": {
      "label": "Pick reason, parsedatetime",
      "display": "turns phrases like \"next Friday\" into dates",
      "asOf": "2026-11-17"
    },
    "F320": {
      "label": "Developer need, holidays",
      "display": "Public holiday checks",
      "asOf": "2026-11-17"
    },
    "F321": {
      "label": "Pick reason, holidays",
      "display": "holiday calendars by country and market",
      "asOf": "2026-11-17"
    },
    "F322": {
      "label": "strengths lead, pytz",
      "display": "Fixes DST arithmetic",
      "asOf": "2026-11-17"
    },
    "F323": {
      "label": "strengths, pytz",
      "display": "Call normalize() after arithmetic on local times that cross a daylight-saving change.",
      "asOf": "2026-11-17"
    },
    "F324": {
      "label": "limitations lead, pytz",
      "display": "Deprecated by its maintainer",
      "asOf": "2026-11-17"
    },
    "F325": {
      "label": "limitations, pytz",
      "display": "On Python 3.9 or later, use the standard zoneinfo module in new code.",
      "asOf": "2026-11-17"
    },
    "F326": {
      "label": "limitations lead, pytz",
      "display": "The tzinfo argument misbehaves",
      "asOf": "2026-11-17"
    },
    "F327": {
      "label": "limitations, pytz",
      "display": "Build local times with localize(), not the datetime tzinfo argument.",
      "asOf": "2026-11-17"
    },
    "F328": {
      "label": "what, tzlocal",
      "display": "Finds the machine's local timezone and returns it as a tzinfo object.",
      "asOf": "2026-11-17"
    },
    "F329": {
      "label": "strengths lead, tzlocal",
      "display": "Works without a zone name",
      "asOf": "2026-11-17"
    },
    "F330": {
      "label": "strengths, tzlocal",
      "display": "get_localzone() returns a timezone even when the system has no zone name configured.",
      "asOf": "2026-11-17"
    },
    "F331": {
      "label": "limitations lead, tzlocal",
      "display": "Returns zoneinfo, not pytz",
      "asOf": "2026-11-17"
    },
    "F332": {
      "label": "limitations, tzlocal",
      "display": "Stay on version 4.0 for code that still needs pytz objects.",
      "asOf": "2026-11-17"
    },
    "F333": {
      "label": "limitations lead, tzlocal",
      "display": "Docker setups often break",
      "asOf": "2026-11-17"
    },
    "F334": {
      "label": "limitations, tzlocal",
      "display": "Set the TZ environment variable in containers so tzlocal finds the right zone.",
      "asOf": "2026-11-17"
    },
    "F335": {
      "label": "what, holidays",
      "display": "Generates public holiday calendars by country and subdivision, so any date can be checked.",
      "asOf": "2026-11-17"
    },
    "F336": {
      "label": "strengths lead, holidays",
      "display": "Stock exchange calendars",
      "asOf": "2026-11-17"
    },
    "F337": {
      "label": "strengths, holidays",
      "display": "Call financial_holidays(\"NYSE\") to get trading holidays for an exchange.",
      "asOf": "2026-11-17"
    },
    "F338": {
      "label": "strengths lead, holidays",
      "display": "Names in other languages",
      "asOf": "2026-11-17"
    },
    "F339": {
      "label": "strengths, holidays",
      "display": "Pass language to get holiday names in the language users read.",
      "asOf": "2026-11-17"
    },
    "F340": {
      "label": "limitations lead, holidays",
      "display": "Observed days included by default",
      "asOf": "2026-11-17"
    },
    "F341": {
      "label": "limitations, holidays",
      "display": "Set observed=False to get only the official dates, and test it for the country in question.",
      "asOf": "2026-11-17"
    },
    "F342": {
      "label": "what, parsedatetime",
      "display": "Turns human-readable date and time text, such as \"tomorrow\", into a date.",
      "asOf": "2026-11-17"
    },
    "F343": {
      "label": "strengths lead, parsedatetime",
      "display": "Parses everyday phrases",
      "asOf": "2026-11-17"
    },
    "F344": {
      "label": "strengths, parsedatetime",
      "display": "Create a Calendar and call parse() on text such as \"tomorrow\".",
      "asOf": "2026-11-17"
    },
    "F345": {
      "label": "limitations lead, parsedatetime",
      "display": "Returns a time tuple",
      "asOf": "2026-11-17"
    },
    "F346": {
      "label": "limitations, parsedatetime",
      "display": "parse() returns a time tuple and a status, so convert it before using it as a datetime.",
      "asOf": "2026-11-17"
    },
    "F347": {
      "label": "limitations lead, parsedatetime",
      "display": "Timezones come from pytz",
      "asOf": "2026-11-17"
    },
    "F348": {
      "label": "limitations, parsedatetime",
      "display": "Pass a pytz timezone to parseDT() to get a timezone-aware result.",
      "asOf": "2026-11-17"
    },
    "F349": {
      "label": "Pick alternative reason, Pendulum",
      "display": "for one class that also handles time zones",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-18",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python date datetime libraries datetime python-dateutil Pendulum Arrow dateparser code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
