Dephell Links 0.1.5 | Coderz Repository

dephell-links 0.1.5

Last updated:

0 purchases

dephell-links 0.1.5 Image
dephell-links 0.1.5 Images

Free

Languages

Categories

Add to Cart

Description:

dephelllinks 0.1.5

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'

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.