{"categories":[{"label":"Internet","url":"https://skillfed.io/packages/category/internet/3"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/4"}],"enrichment":{"capability":"Converts Express-style path strings (like `/user/:name`) into regular expression patterns that can match and extract URL path parameters.","skillfed_tags":["routing","url-parsing","regex-generation"],"use_cases":["Build a web framework or routing layer that needs to match incoming URL paths to handler functions using Express-like syntax.","Parse and validate dynamic URL structures where path segments contain variable data that must be extracted.","Generate URL patterns for testing or documentation that describe what paths your application will accept.","Convert Express route definitions to Python patterns when porting Node.js applications.","Create a URL templating system where you define a pattern once and generate concrete URLs with different parameter values."],"what_it_does":"repath is a Python port of the Node.js path-to-regexp module. It takes Express-style path strings\u2014where parameters are marked with colons like `:name`\u2014and generates regular expression patterns you can compile and use with Python's re module to match and extract values from URL paths. The package handles named parameters, optional segments (suffixed with `?`), zero-or-more matches (`*`), one-or-more matches (`+`), custom regex patterns, and unnamed capture groups.\n\nYou use it by calling repath.pattern() to generate a regex pattern string, then compiling that pattern with re.compile() and matching against actual URL paths. It also provides a template() function to reverse the process\u2014taking a path template and a dictionary of values to generate a filled-in path string. The package exposes lower-level functions like parse() and tokens_to_pattern() for advanced use cases.","worth_installing":"Yes, but with caution. The package is stable and has no known vulnerabilities, and it solves a specific problem well if you need Express-style path-to-regex conversion in Python. However, it is abandoned\u2014no updates since 2019\u2014so if you encounter bugs or need features, you will need to fork or patch it yourself. For new projects, verify that the dependency on six and the lack of recent Python version testing do not create compatibility issues in your environment."},"id":"repath","links":{"html":"https://skillfed.io/packages/repath","md":"https://skillfed.io/packages/repath.md","pypi":"https://pypi.org/project/repath/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-10-08","license_spdx":null,"license_treatment":"permissive","name":"repath","python_support":"unspecified","summary":"Generate regular expressions form ExpressJS path patterns"},"popularity":{"monthly_downloads":506625,"position":6285,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.0"}
