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
NoneDownload 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.4.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for dephell_links-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef9c0885e4e5d67793c7ddf2115bee3949001e2a62381a2cccef38fda9264512 |
|
MD5 | f2b27115520d2c73ebca7ca7e33a6e75 |
|
BLAKE2b-256 | b57da331a3b7aa2be1ec8260e64c79d6e2fb102695975f7ea5e6830e3aecff52 |