dephell-markers


Namedephell-markers JSON
Version 1.0.3 PyPI version JSON
download
home_page
SummaryWork with environment markers (PEP-496)
upload_time2019-12-18 10:27:16
maintainer
docs_urlNone
authorGram
requires_python>=3.5
licenseMIT
keywords dephell markers packaging versioning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            
Dephell Markers
===============


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


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


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


Work with environment markers (PEP-496).

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

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

.. code-block:: bash

   python3 -m pip install --user dephell_markers

Usage
-----

.. code-block:: python

   from dephell_markers import Markers

   m = Markers('os_name == "posix" and python_version >= "2.7"')

   m.get_version(name='python_version')
   # '>=2.7'

   m.get_string(name='os_name')
   # 'posix'

   Markers('python_version >= "2.4" or python_version <= "2.7"').get_version(name='python_version')
   '<=2.7 || >=2.4'

   Markers('python_version >= "2.4" or python_version <= "2.7"').python_version
   # RangeSpecifier(<=2.7 || >=2.4)


   # Nothing better than lie:
   Markers('python_version == "2.4" or os_name == "linux"').get_version(name='python_version')
   # None

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "dephell-markers",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": "",
    "keywords": "dephell,markers,packaging,versioning",
    "author": "Gram",
    "author_email": "master_fess@mail.ru",
    "download_url": "https://files.pythonhosted.org/packages/6a/a7/9cae07b074f7fd3fedd0cf415292f4fb18ec95bb7fe1a0cc4764061939d3/dephell_markers-1.0.3.tar.gz",
    "platform": "",
    "description": "\nDephell Markers\n===============\n\n\n.. image:: https://travis-ci.org/dephell/dephell_markers.svg?branch=master\n   :target: https://travis-ci.org/dephell/dephell_markers\n   :alt: travis\n\n\n.. image:: https://ci.appveyor.com/api/projects/status/github/dephell/dephell_markers?svg=true\n   :target: https://ci.appveyor.com/project/orsinium/dephell-markers\n   :alt: appveyor\n\n\n.. image:: https://img.shields.io/pypi/l/dephell-markers.svg\n   :target: https://github.com/dephell/dephell_markers/blob/master/LICENSE\n   :alt: MIT License\n\n\nWork with environment markers (PEP-496).\n\nInstallation\n------------\n\nInstall from `PyPI <https://pypi.org/project/dephell-markers/>`_\\ :\n\n.. code-block:: bash\n\n   python3 -m pip install --user dephell_markers\n\nUsage\n-----\n\n.. code-block:: python\n\n   from dephell_markers import Markers\n\n   m = Markers('os_name == \"posix\" and python_version >= \"2.7\"')\n\n   m.get_version(name='python_version')\n   # '>=2.7'\n\n   m.get_string(name='os_name')\n   # 'posix'\n\n   Markers('python_version >= \"2.4\" or python_version <= \"2.7\"').get_version(name='python_version')\n   '<=2.7 || >=2.4'\n\n   Markers('python_version >= \"2.4\" or python_version <= \"2.7\"').python_version\n   # RangeSpecifier(<=2.7 || >=2.4)\n\n\n   # Nothing better than lie:\n   Markers('python_version == \"2.4\" or os_name == \"linux\"').get_version(name='python_version')\n   # None\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Work with environment markers (PEP-496)",
    "version": "1.0.3",
    "project_urls": {
        "Repository": "https://github.com/dephell/dephell_markers"
    },
    "split_keywords": [
        "dephell",
        "markers",
        "packaging",
        "versioning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dae436df3acf05d258dcfdcaa1d11270572a1d22a1968bd8455b591ecbe46ec1",
                "md5": "706db173800084b61c717c7b18428073",
                "sha256": "54ad6807b087d6c9171efc2d94eda3a9e3cad7ea2ca4b27186789d455a6c730a"
            },
            "downloads": -1,
            "filename": "dephell_markers-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "706db173800084b61c717c7b18428073",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 11880,
            "upload_time": "2019-12-18T10:27:14",
            "upload_time_iso_8601": "2019-12-18T10:27:14.119562Z",
            "url": "https://files.pythonhosted.org/packages/da/e4/36df3acf05d258dcfdcaa1d11270572a1d22a1968bd8455b591ecbe46ec1/dephell_markers-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6aa79cae07b074f7fd3fedd0cf415292f4fb18ec95bb7fe1a0cc4764061939d3",
                "md5": "4cdb662b9b64bca1e54cb86f9702abf8",
                "sha256": "525e17914e705acf8652dd8681fccdec912432a747d8def4720f49416817f2d4"
            },
            "downloads": -1,
            "filename": "dephell_markers-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "4cdb662b9b64bca1e54cb86f9702abf8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 10044,
            "upload_time": "2019-12-18T10:27:16",
            "upload_time_iso_8601": "2019-12-18T10:27:16.013086Z",
            "url": "https://files.pythonhosted.org/packages/6a/a7/9cae07b074f7fd3fedd0cf415292f4fb18ec95bb7fe1a0cc4764061939d3/dephell_markers-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-12-18 10:27:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dephell",
    "github_project": "dephell_markers",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "appveyor": true,
    "lcname": "dephell-markers"
}
        
Elapsed time: 0.16019s