No project description provided
Project description
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
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_url_parse_rs-0.4.6.tar.gz.
File metadata
- Download URL: git_url_parse_rs-0.4.6.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
150e88d0a7d5b0e15ec305ad318dfb596a2db5451ddcafdb1bb2a711e587cf64
|
|
| MD5 |
ade05629822aed3a86c1eb8a28a37f6a
|
|
| BLAKE2b-256 |
a4397e34056c39b1063440da4410131ee42a3fd2d5a454c272d0f30f1a49abbd
|
File details
Details for the file git_url_parse_rs-0.4.6-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: git_url_parse_rs-0.4.6-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 220.5 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd41e6c9eb1a12b24d40eadb87a20fa3671fab864a938e95a513ef4a78fac301
|
|
| MD5 |
355307151cee410ce731e206b02a85ad
|
|
| BLAKE2b-256 |
af5fdf85e5611cd8e61cb3a62abf2aae907ecac322d6efb57dc49267eb9ee369
|
File details
Details for the file git_url_parse_rs-0.4.6-cp39-abi3-win32.whl.
File metadata
- Download URL: git_url_parse_rs-0.4.6-cp39-abi3-win32.whl
- Upload date:
- Size: 212.2 kB
- Tags: CPython 3.9+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a03120f27bdce1aa525181b64ba13611d1bcb5231bf15b70cbafcb5e25c7505e
|
|
| MD5 |
7bac185020bf04785c6c4a8914a40e5e
|
|
| BLAKE2b-256 |
f8aa47b15f5e665b26e8ba1f683756b9320e15034c5c70df62fd9cd42cfde1d3
|
File details
Details for the file git_url_parse_rs-0.4.6-cp39-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: git_url_parse_rs-0.4.6-cp39-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 528.4 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73cedba399ef5293f9059f4688364003e66e8bae9b787a5ac6cacc79aad446b0
|
|
| MD5 |
b7fd6b23df012ca141c9eb1fac411800
|
|
| BLAKE2b-256 |
6d2da822eafebb31378ea1db38a2c38fd29c93e032681a1e417e2ceed80bc3de
|
File details
Details for the file git_url_parse_rs-0.4.6-cp39-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: git_url_parse_rs-0.4.6-cp39-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 529.9 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2efd2e4df955ff06c5c2d3eb4ee9e1e9aaf5c7fe79f102df604ef62fd81bfbb3
|
|
| MD5 |
d9d1efa9a395e05c198fd771b24f3e81
|
|
| BLAKE2b-256 |
2a8a46acad2420b807083cf983a9cb300b7a5790e25cf7c2723d69b8f6d7bb55
|
File details
Details for the file git_url_parse_rs-0.4.6-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: git_url_parse_rs-0.4.6-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 358.2 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89c855b2ce5ef3365fd545b05fa3027d8f971e5d99aecee129c6c931a897a2f9
|
|
| MD5 |
943e7a8cb44b823d41caf45b5f481da7
|
|
| BLAKE2b-256 |
68e34279b6ddc5e26f9f977af9b45d99b0a026d7d89005123b2b5a814ee53830
|
File details
Details for the file git_url_parse_rs-0.4.6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: git_url_parse_rs-0.4.6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 351.5 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e4a2229f48a4053b714158ab1a6d69ffefc16100bde3dd0613c24b0570692aa
|
|
| MD5 |
d639790fa03ce98215dadd49b83c80dd
|
|
| BLAKE2b-256 |
02421305562d12991282cfa9e51412674c609396ef799b79c2f169dbb69829eb
|
File details
Details for the file git_url_parse_rs-0.4.6-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: git_url_parse_rs-0.4.6-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 323.2 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f276d1000dff206d97027fb35edca37ccc381a80a7a6ea1fed5fea2e5aee7637
|
|
| MD5 |
ef43956a6ead3f9c01a10812692094e3
|
|
| BLAKE2b-256 |
8e5de4abb37880d5ab431307438e24a4fd3e724df7f5aa106dca01fed6177495
|
File details
Details for the file git_url_parse_rs-0.4.6-cp39-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: git_url_parse_rs-0.4.6-cp39-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 331.8 kB
- Tags: CPython 3.9+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fbb3df64d8f93909d9b5ec729218e3bdcdd4aa732507fe97b6661aea47e9ece
|
|
| MD5 |
9efaa0b0f09f8ee7b25fb3c6f0a15c65
|
|
| BLAKE2b-256 |
90791f74be966d9197af9d5471b147f3e372a4fa239f0cd56013ac4edcb9fe14
|