v0.14.0a3 - URL Parsing
Pre-release
Pre-release
What's new
Parser: Experimental VCS URL parsing added (#376):
VCS Parsers return dataclasses.dataclass() instances. The new tools support validation, parsing, mutating and exporting into URLs consumable by the VCS.
Warning
APIs are unstable and subject to break until we get it right.
-
GitURL- Parse git URLsis_valid()to_url()- export git clone-compatible URL
-
-
HgURL- Parse Mercurial URLsis_valid()to_url()- export hg clone-compatible URL
-
-
-
SvnURL- Parse Subversion URLsis_valid()to_url()- export svn checkout-compatible URL
-
Detection can be extended through writing Matchers and adding them to the classes’ MatcherRegistry
You can write your own VCS parser by implementing URLProtocol, but it would be most efficient if you studied the source of the git(1) parser to see how it’s done.
Autogenerated
Full Changelog: v0.14.0a2...v0.14.0a3