{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/3"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Parses human-readable time expressions (like '2h32m', '1.2 minutes', '2 days, 4:13:02') into seconds or timedelta objects.","skillfed_tags":["parsing","time-utilities"],"use_cases":["Parse user-supplied timeout or delay values in configuration files or CLI arguments.","Convert uptime or system log timestamps into standardized seconds for calculations.","Accept human-friendly duration input in web forms or APIs and normalize to timedelta.","Build retry logic or rate-limiting that reads duration strings from environment variables.","Parse scheduling expressions that use natural time notation."],"what_it_does":"pytimeparse2 is a lightweight parser that converts time expressions written in natural language into numeric seconds or Python timedelta objects. It handles a wide variety of formats: shorthand notation (32m, 2h32m, 3d2h32m), colon-separated time (4:13:02), English prose (5 hours, 34 minutes, 56 seconds), and uptime-style output (2 days, 4:13:02). The library also supports months and years using fixed assumptions (30 days per month, 365 days per year).\n\nThe package has no runtime dependencies and installs as a pure Python wheel, making it simple to add to any project. It is marked Production/Stable and supports Python 3.6 through 3.11. Maintenance is dormant (last update in 2023), but the codebase carries no known vulnerabilities and the API is straightforward: call parse() with a time string and optionally request a timedelta object instead of raw seconds.","worth_installing":"Yes. pytimeparse2 solves a specific, well-defined problem with zero dependencies, permissive licensing, and no security issues. It is stable and dormant rather than actively maintained, but that is appropriate for a mature parsing utility. Install it if you need to accept time expressions from users or configuration; skip it if you only work with numeric seconds or strict time formats."},"id":"pytimeparse2","links":{"html":"https://skillfed.io/packages/pytimeparse2","md":"https://skillfed.io/packages/pytimeparse2.md","pypi":"https://pypi.org/project/pytimeparse2/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-05-11","license_spdx":null,"license_treatment":"permissive","name":"pytimeparse2","python_support":"supports_current","summary":"Time expression parser."},"popularity":{"monthly_downloads":3452027,"position":2618,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.7.1"}
