dephell-links


Namedephell-links JSON
Version 0.1.5 PyPI version JSON
download
home_page
SummaryParse dependency links
upload_time2019-12-30 14:19:19
maintainer
docs_urlNone
authorGram
requires_python>=3.5
licenseMIT
keywords dephell packaging links pypi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            
DepHell Links
=============


.. image:: https://travis-ci.org/dephell/dephell_links.svg?branch=master
   :target: https://travis-ci.org/dephell/dephell_links
   :alt: travis


.. image:: https://ci.appveyor.com/api/projects/status/github/dephell/dephell_links?svg=true
   :target: https://ci.appveyor.com/project/orsinium/dephell-links
   :alt: appveyor


.. image:: https://img.shields.io/pypi/l/dephell-links.svg
   :target: https://github.com/dephell/dephell_links/blob/master/LICENSE
   :alt: MIT License


Parse dependency links.

Installation
------------

Install from `PyPI <https://pypi.org/project/dephell-links/>`_\ :

.. code-block:: bash

   python3 -m pip install --user dephell_links

Usage
-----

.. code-block:: python

   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'

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "dephell-links",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "dephell,packaging,links,pypi",
    "author": "Gram",
    "author_email": "master_fess@mail.ru",
    "download_url": "https://files.pythonhosted.org/packages/45/6f/80d590a36c99712999b2cb1703c26c45a97f906713dcfba22933194b2f4e/dephell_links-0.1.5.tar.gz",
    "platform": "",
    "description": "\nDepHell Links\n=============\n\n\n.. image:: https://travis-ci.org/dephell/dephell_links.svg?branch=master\n   :target: https://travis-ci.org/dephell/dephell_links\n   :alt: travis\n\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/dephell/dephell_links?svg=true\n   :target: https://ci.appveyor.com/project/orsinium/dephell-links\n   :alt: appveyor\n\n\n.. image:: https://img.shields.io/pypi/l/dephell-links.svg\n   :target: https://github.com/dephell/dephell_links/blob/master/LICENSE\n   :alt: MIT License\n\n\nParse dependency links.\n\nInstallation\n------------\n\nInstall from `PyPI <https://pypi.org/project/dephell-links/>`_\\ :\n\n.. code-block:: bash\n\n   python3 -m pip install --user dephell_links\n\nUsage\n-----\n\n.. code-block:: python\n\n   from dephell_links import parse_link\n\n   parse_link('https://github.com/r1chardj0n3s/parse.git')\n   # VCSLink(server='github.com', author='r1chardj0n3s', project='parse', vcs='git', protocol='https', user=None, ext='.git', rev=None, name='parse')\n\n   link = parse_link('https://github.com/divio/django-cms/archive/release/3.4.x.zip')\n   link\n   # URLLink(https://github.com/divio/django-cms/archive/release/3.4.x.zip)\n   link.name\n   # 'django-cms'\n\n   link = parse_link('./tests/test_parsing.py')\n   link\n   # FileLink(./tests/test_parsing.py)\n   link.name\n   # 'test_parsing'\n   link.hash\n   # 'sha256:ad7927cf442156980659eee391da849e54f472b4bafe20c32cdb242c153528d5'\n\n   link = parse_link('./tests/')\n   link\n   # DirLink(./tests/)\n   link.name\n   # 'tests'\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Parse dependency links",
    "version": "0.1.5",
    "project_urls": {
        "Repository": "https://github.com/dephell/dephell_links"
    },
    "split_keywords": [
        "dephell",
        "packaging",
        "links",
        "pypi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5195cbbc2668e63a300d1c62f2978f87c81b69d9267b302c62c52f3d9572bbbb",
                "md5": "f8da6d85a28e586145a37e9a21c2318e",
                "sha256": "a86a08fb42da63d903ae3fee9f9e2491be602321204c0df5b53e33cb19ac4dec"
            },
            "downloads": -1,
            "filename": "dephell_links-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f8da6d85a28e586145a37e9a21c2318e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 8008,
            "upload_time": "2019-12-30T14:19:17",
            "upload_time_iso_8601": "2019-12-30T14:19:17.758904Z",
            "url": "https://files.pythonhosted.org/packages/51/95/cbbc2668e63a300d1c62f2978f87c81b69d9267b302c62c52f3d9572bbbb/dephell_links-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "456f80d590a36c99712999b2cb1703c26c45a97f906713dcfba22933194b2f4e",
                "md5": "5a6575c2886c2b6d947af73507d681af",
                "sha256": "28d694142e2827a59d2c301e7185afb52fb8acdb950b1da38308d69e43418eaa"
            },
            "downloads": -1,
            "filename": "dephell_links-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "5a6575c2886c2b6d947af73507d681af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 6721,
            "upload_time": "2019-12-30T14:19:19",
            "upload_time_iso_8601": "2019-12-30T14:19:19.248164Z",
            "url": "https://files.pythonhosted.org/packages/45/6f/80d590a36c99712999b2cb1703c26c45a97f906713dcfba22933194b2f4e/dephell_links-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-12-30 14:19:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dephell",
    "github_project": "dephell_links",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "appveyor": true,
    "lcname": "dephell-links"
}
        
Elapsed time: 0.16036s