dephell-specifier


Namedephell-specifier JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
SummaryA package to work with version specifiers.
upload_time2022-12-17 08:18:28
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords dephell packaging versioning semver version maven
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Dephell Specifier

[![travis](https://travis-ci.org/dephell/dephell_specifier.svg?branch=master)](https://travis-ci.org/dephell/dephell_specifier)
[![MIT License](https://img.shields.io/pypi/l/dephell-specifier.svg)](https://github.com/dephell/dephell_specifier/blob/master/LICENSE)

Work with version specifiers.

Supported specifiers:

+ [PEP-440](https://www.python.org/dev/peps/pep-0440/).
+ [NPM SemVer](https://github.com/npm/node-semver).
+ [Maven](http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html).
+ [RubyGems](https://guides.rubygems.org/patterns/)

## Installation

Install from [PyPI](https://pypi.org/project/dephell-specifier/):

```bash
python3 -m pip install --user dephell_specifier
```

## Usage

```python
from dephell_specifier import RangeSpecifier

'3.4' in RangeSpecifier('*')
# True

'3.4' in RangeSpecifier('<=2.7')
# False

'3.4' in RangeSpecifier('>2.7')
# True

'3.4' in RangeSpecifier('>2.7,<=3.4')
# True

'3.4' in RangeSpecifier('<2.7 || >=3.4')
# True
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "dephell-specifier",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "dephell,packaging,versioning,semver,version,maven",
    "author": null,
    "author_email": "Gram <git@orsinium.dev>",
    "download_url": "https://files.pythonhosted.org/packages/78/e7/52ecc5a90cf6075dd1cf49bfd45d93731764d641e144e2dcd490d9cc3767/dephell-specifier-0.3.0.tar.gz",
    "platform": null,
    "description": "## Dephell Specifier\n\n[![travis](https://travis-ci.org/dephell/dephell_specifier.svg?branch=master)](https://travis-ci.org/dephell/dephell_specifier)\n[![MIT License](https://img.shields.io/pypi/l/dephell-specifier.svg)](https://github.com/dephell/dephell_specifier/blob/master/LICENSE)\n\nWork with version specifiers.\n\nSupported specifiers:\n\n+ [PEP-440](https://www.python.org/dev/peps/pep-0440/).\n+ [NPM SemVer](https://github.com/npm/node-semver).\n+ [Maven](http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html).\n+ [RubyGems](https://guides.rubygems.org/patterns/)\n\n## Installation\n\nInstall from [PyPI](https://pypi.org/project/dephell-specifier/):\n\n```bash\npython3 -m pip install --user dephell_specifier\n```\n\n## Usage\n\n```python\nfrom dephell_specifier import RangeSpecifier\n\n'3.4' in RangeSpecifier('*')\n# True\n\n'3.4' in RangeSpecifier('<=2.7')\n# False\n\n'3.4' in RangeSpecifier('>2.7')\n# True\n\n'3.4' in RangeSpecifier('>2.7,<=3.4')\n# True\n\n'3.4' in RangeSpecifier('<2.7 || >=3.4')\n# True\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package to work with version specifiers.",
    "version": "0.3.0",
    "split_keywords": [
        "dephell",
        "packaging",
        "versioning",
        "semver",
        "version",
        "maven"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "md5": "b8ca9a034d58b49986cafd6d9ae60f70",
                "sha256": "8b831fcb91cf44d25790ac9cac594c633df6bdccbcaf0a330d99ec8d06e55880"
            },
            "downloads": -1,
            "filename": "dephell_specifier-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b8ca9a034d58b49986cafd6d9ae60f70",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 8832,
            "upload_time": "2022-12-17T08:18:25",
            "upload_time_iso_8601": "2022-12-17T08:18:25.649551Z",
            "url": "https://files.pythonhosted.org/packages/12/bd/ba3675531b9c00bf0bbc009529353c0ce6545197f56d9a81a26731cb0bcd/dephell_specifier-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "md5": "927a13831f5fb8fbd370fe997aa012dd",
                "sha256": "73c0f7a480e3ec9a1922008d33cec5f24a7c71a09d0020b8b80870285afe18e7"
            },
            "downloads": -1,
            "filename": "dephell-specifier-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "927a13831f5fb8fbd370fe997aa012dd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 11299,
            "upload_time": "2022-12-17T08:18:28",
            "upload_time_iso_8601": "2022-12-17T08:18:28.163080Z",
            "url": "https://files.pythonhosted.org/packages/78/e7/52ecc5a90cf6075dd1cf49bfd45d93731764d641e144e2dcd490d9cc3767/dephell-specifier-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-17 08:18:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "dephell-specifier"
}
        
Elapsed time: 0.16320s