giturlparse
giturlparse copied to clipboard
Parse & rewrite git urls (supports GitHub, Bitbucket, Assembla ...)
updates: - [github.com/psf/black: 24.4.0 → 24.8.0](https://github.com/psf/black/compare/24.4.0...24.8.0) - [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.6.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.7...v0.6.7) - [github.com/asottile/pyupgrade: v3.15.2 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v3.15.2...v3.17.0)
## Description The parser should be stronger, there's some urls that are valid for the lib should not be valid. See code/output below ## Steps to reproduce ```py from pprint...
## Description They are the major git repo as service provider for enterprise, can you add support for those platform? - AWS CodeCOmmit: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-connect.html - Azure Repo: https://azure.microsoft.com/en-us/products/devops/repos - Google...
https://github.com/nephila/giturlparse/blob/a6b48dad230d43393227ffdf52f2099db8038622/giturlparse/tests/test_parse.py#L381 ``` from giturlparse import parse as giturlparse p = giturlparse("https://github.com/nephila/giturlparse/tree/master/changes") print (p.branch, p.path) assert p.branch == "master" assert p.path == "changes" ```
While using giturlparse with Microsoft VSTS git urls (visualstudio.com), I noticed the parser fails to detect them. They are a bit weird by syntax but git command line tools treat...
Describe: We have an updated clean_data function for the github platform. This updated function takes branch into account when you have a `/blob` url. We would like to add tests...
I want to use this package to do auto-migration git repo eg: import repo from `github.com` to `gitlab.com` I need some code like this : ```python u = 'https://github.com/nephila/giturlparse' repo...
## Description When evaluating this package, I noticed that the pathname of an HTTPS address is output with a leading backslash, but for an SSH address without one, which means...
# Description This fixes the BitBucket regex so username@ is not required, and adds `bitbucket.com` as a recognised domain. ## References Fixes #107 # Checklist * [ ] Code lint...