{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"}],"enrichment":{"capability":"Backports expanded `datetime.fromisoformat` methods to earlier Python versions, enabling parsing of ISO 8601 timestamps with broader format support than the standard library provides in older releases.","skillfed_tags":["datetime-parsing","iso-8601","backport"],"use_cases":["Parse ISO 8601 timestamps from APIs or data sources in earlier Python versions without manual string manipulation.","Handle timezone-aware datetime strings with non-standard offsets in legacy Python environments.","Upgrade code to use the modern `fromisoformat` API while maintaining compatibility with older Python versions.","Avoid dependency on third-party datetime libraries when only ISO 8601 parsing is needed."],"what_it_does":"This package backports the expanded `datetime.fromisoformat` methods from Python 3.11 to earlier versions, allowing you to parse ISO 8601 timestamps with much broader format coverage than the built-in methods provide. The standard library's `fromisoformat` in older Python versions only handles timestamps produced by `isoformat` itself; this backport extends that to parse most of the ISO 8601 specification, including timezone offsets and various timestamp formats.\n\nThe implementation is a C port of CPython code, using a custom timezone implementation for timezone-aware objects. It requires explicit monkey-patching via `MonkeyPatch.patch_fromisoformat()` to replace the standard library methods. On Python 3.11 and later, the package has no effect\u2014the native methods already have the full ISO 8601 support.","worth_installing":"Yes, if you support Python versions earlier than 3.11 and need to parse ISO 8601 timestamps reliably. The package is stable, permissively licensed, and has no runtime dependencies. Install it conditionally so it only activates on older Python versions. Not needed for Python 3.11 and later."},"id":"backports-datetime-fromisoformat","links":{"html":"https://skillfed.io/packages/backports-datetime-fromisoformat","md":"https://skillfed.io/packages/backports-datetime-fromisoformat.md","pypi":"https://pypi.org/project/backports-datetime-fromisoformat/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-12-28","license_spdx":null,"license_treatment":"permissive","name":"backports-datetime-fromisoformat","python_support":"supports_current","summary":"Backport of Python 3.11's datetime.fromisoformat"},"popularity":{"monthly_downloads":2139707,"position":3259,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.3"}
