git-url-parse
Forked from tjtelan/git-url-parse-rs
Supports common protocols as specified by the Pro Git book
See: 4.1 Git on the Server - The Protocols
Supports parsing SSH/HTTPS repo urls for:
- Github
- Bitbucket
- Azure Devops (Needs manual postprocessing)
- GitLab
- Gitea, Forgejo, etc.
See tests/parse.rs for expected output for a variety of inputs.
URLs that use the ssh:// protocol (implicitly or explicitly) undergo a small normalization process in order to be parsed.
Internally uses Url::parse() from the Url crate after normalization.
Examples
Run example with debug output
$ RUST_LOG=git_url_parse cargo run --example multi
$ RUST_LOG=git_url_parse cargo run --example trim_auth
Simple usage and output
>>> import git_url_parse_rs
>>> git_url_parse_rs.parse("git@github.com:XieJiSS/git-url-parse-rs.git")
{
'host': 'github.com',
'name': 'git-url-parse-rs',
'owner': 'XieJiSS',
'subgroups': None,
'organization': None,
'fullname': 'XieJiSS/git-url-parse-rs',
'scheme': 'ssh',
'auth_user': 'git',
'auth_token': None,
'port': None,
'path': 'XieJiSS/git-url-parse-rs.git',
'git_suffix': True,
'scheme_prefix': False
}
Metadata
Release files for git-url-parse-rs 0.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| git_url_parse_rs-0.4.6.tar.gz | 39.0 kB | Without provenance | Details for git_url_parse_rs-0.4.6.tar.gz |
Built distributions (wheels)
Total release size: 2.9 MB
Release files / git_url_parse_rs-0.4.6.tar.gz
| Download URL | git_url_parse_rs-0.4.6.tar.gz |
|---|---|
| Size | 39.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
150e88d0a7d5b0e15ec305ad318dfb596a2db5451ddcafdb1bb2a711e587cf64
|
|
BLAKE2b-256 checksum How to use checksums |
a4397e34056c39b1063440da4410131ee42a3fd2d5a454c272d0f30f1a49abbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / git_url_parse_rs-0.4.6-cp39-abi3-win_amd64.whl
| Download URL | git_url_parse_rs-0.4.6-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 220.5 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
bd41e6c9eb1a12b24d40eadb87a20fa3671fab864a938e95a513ef4a78fac301
|
|
BLAKE2b-256 checksum How to use checksums |
af5fdf85e5611cd8e61cb3a62abf2aae907ecac322d6efb57dc49267eb9ee369
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / git_url_parse_rs-0.4.6-cp39-abi3-win32.whl
| Download URL | git_url_parse_rs-0.4.6-cp39-abi3-win32.whl |
|---|---|
| Size | 212.2 kB |
| Tags | CPython 3.9 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
a03120f27bdce1aa525181b64ba13611d1bcb5231bf15b70cbafcb5e25c7505e
|
|
BLAKE2b-256 checksum How to use checksums |
f8aa47b15f5e665b26e8ba1f683756b9320e15034c5c70df62fd9cd42cfde1d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / git_url_parse_rs-0.4.6-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | git_url_parse_rs-0.4.6-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 528.4 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
73cedba399ef5293f9059f4688364003e66e8bae9b787a5ac6cacc79aad446b0
|
|
BLAKE2b-256 checksum How to use checksums |
6d2da822eafebb31378ea1db38a2c38fd29c93e032681a1e417e2ceed80bc3de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / git_url_parse_rs-0.4.6-cp39-abi3-musllinux_1_2_aarch64.whl
| Download URL | git_url_parse_rs-0.4.6-cp39-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 529.9 kB |
| Tags | CPython 3.9 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2efd2e4df955ff06c5c2d3eb4ee9e1e9aaf5c7fe79f102df604ef62fd81bfbb3
|
|
BLAKE2b-256 checksum How to use checksums |
2a8a46acad2420b807083cf983a9cb300b7a5790e25cf7c2723d69b8f6d7bb55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / git_url_parse_rs-0.4.6-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | git_url_parse_rs-0.4.6-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 358.2 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
89c855b2ce5ef3365fd545b05fa3027d8f971e5d99aecee129c6c931a897a2f9
|
|
BLAKE2b-256 checksum How to use checksums |
68e34279b6ddc5e26f9f977af9b45d99b0a026d7d89005123b2b5a814ee53830
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / git_url_parse_rs-0.4.6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | git_url_parse_rs-0.4.6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 351.5 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5e4a2229f48a4053b714158ab1a6d69ffefc16100bde3dd0613c24b0570692aa
|
|
BLAKE2b-256 checksum How to use checksums |
02421305562d12991282cfa9e51412674c609396ef799b79c2f169dbb69829eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / git_url_parse_rs-0.4.6-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | git_url_parse_rs-0.4.6-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 323.2 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f276d1000dff206d97027fb35edca37ccc381a80a7a6ea1fed5fea2e5aee7637
|
|
BLAKE2b-256 checksum How to use checksums |
8e5de4abb37880d5ab431307438e24a4fd3e724df7f5aa106dca01fed6177495
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / git_url_parse_rs-0.4.6-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | git_url_parse_rs-0.4.6-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 331.8 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
0fbb3df64d8f93909d9b5ec729218e3bdcdd4aa732507fe97b6661aea47e9ece
|
|
BLAKE2b-256 checksum How to use checksums |
90791f74be966d9197af9d5471b147f3e372a4fa239f0cd56013ac4edcb9fe14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for git-url-parse-rs 0.4.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.