Parse dependency links
Project description
Parse dependency links.
Installation
Install from PyPI:
python3 -m pip install --user dephell_links
Usage
from dephell_links import parse_link
parse_link('https://github.com/r1chardj0n3s/parse.git')
# VCSLink(server='github.com', author='r1chardj0n3s', project='parse', vcs='git', protocol='https', user=None, ext='.git', rev=None, name='parse')
link = parse_link('https://github.com/divio/django-cms/archive/release/3.4.x.zip')
link
# URLLink(https://github.com/divio/django-cms/archive/release/3.4.x.zip)
link.name
# 'django-cms'
link = parse_link('./tests/test_parsing.py')
link
# FileLink(./tests/test_parsing.py)
link.name
# 'test_parsing'
link.hash
# 'sha256:ad7927cf442156980659eee391da849e54f472b4bafe20c32cdb242c153528d5'
link = parse_link('./tests/')
link
# DirLink(./tests/)
link.name
# 'tests'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dephell_links-0.1.5.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file dephell_links-0.1.5.tar.gz
.
File metadata
- Download URL: dephell_links-0.1.5.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28d694142e2827a59d2c301e7185afb52fb8acdb950b1da38308d69e43418eaa |
|
MD5 | 5a6575c2886c2b6d947af73507d681af |
|
BLAKE2b-256 | 456f80d590a36c99712999b2cb1703c26c45a97f906713dcfba22933194b2f4e |
File details
Details for the file dephell_links-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: dephell_links-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a86a08fb42da63d903ae3fee9f9e2491be602321204c0df5b53e33cb19ac4dec |
|
MD5 | f8da6d85a28e586145a37e9a21c2318e |
|
BLAKE2b-256 | 5195cbbc2668e63a300d1c62f2978f87c81b69d9267b302c62c52f3d9572bbbb |