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.1.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file dephell_links-0.1.1.tar.gz
.
File metadata
- Download URL: dephell_links-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7294e55e8e0895c5c9363d7346e85e567d38b82b9acef9bb9b7e487a543f2c |
|
MD5 | 9d941cc8c2c37403d743828ada20af15 |
|
BLAKE2b-256 | ed495bd417b087b4975fd8a97453007285a58410b7df02b66208f23cc41a1477 |
File details
Details for the file dephell_links-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: dephell_links-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef11c8fca22ea5ccb0912870b6e12f11716e6a99a6d082f17b53b2f8ef4526a7 |
|
MD5 | eb8e7b50c9b37c08d56b99df37c760e3 |
|
BLAKE2b-256 | 8423b15e64b2874ac62ac7cce6d54e6ac71c89d0c981da6b63fce39b6e51cc9f |