{"id":15009869,"url":"https://github.com/caesar0301/flexversion","last_synced_at":"2025-10-03T19:30:28.062Z","repository":{"id":57431369,"uuid":"133809287","full_name":"caesar0301/FlexVersion","owner":"caesar0301","description":"Python library to manipulate Semantic Versioning","archived":true,"fork":false,"pushed_at":"2019-08-29T15:57:56.000Z","size":29,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-29T17:02:55.031Z","etag":null,"topics":["python","python3","utility-library","versioning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caesar0301.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2018-05-17T12:20:00.000Z","updated_at":"2023-01-28T10:42:03.000Z","dependencies_parsed_at":"2022-09-02T11:51:22.123Z","dependency_job_id":null,"html_url":"https://github.com/caesar0301/FlexVersion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caesar0301%2FFlexVersion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caesar0301%2FFlexVersion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caesar0301%2FFlexVersion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caesar0301%2FFlexVersion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caesar0301","download_url":"https://codeload.github.com/caesar0301/FlexVersion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235173190,"owners_count":18947453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","python3","utility-library","versioning"],"created_at":"2024-09-24T19:28:59.283Z","updated_at":"2025-10-03T19:30:22.746Z","avatar_url":"https://github.com/caesar0301.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlexVersion\nA cute Python library to manipulate [Semantic Versioning](https://semver.org/).\n\n[![Latest](https://img.shields.io/pypi/v/flex_version.svg)](https://pypi.python.org/pypi/flex_version)\n\n## Terminology\n\nA [software version](https://en.wikipedia.org/wiki/Software_versioning) is a numbered string to\nrecord the development progress or iteration of software applications. This tiny, cute library\nhandles with some common processing when you require awareness-versioning processing in your program.\n\nA representative version would be like 1.0, 2.0.1, sometimes with suffix of maintenance stage such\nas 1.0-beta1. In FlexVersion, a standard version takes the form of\n\n```bash\n[prefix-]x[.y[.z[.b]]][-suffix]\n```\n\nin which:\n\n* prefix: usually taking the software name, such as flex_version-1.0, OPTIONAL \n* x: the major version, REQUIRED\n* y: the minor version, OPTIONAL\n* z: the maintenance version, OPTIONAL\n* b: the build version, OPTIONAL\n* suffix: usually taking the QA stage label such as alpha, beta etc., OPTIONAL\n\n## Install\n\n```bash\npip install -U flex_version\n```\n\n## Routines\n\n```python\nfrom flex_version import FlexVersion\n```\n\nUtility class for available methods:\n\n- `parse_version(ver_str)`: Parse a versioning string into `VersionMeta`.\n\n- `in_range(v, minx, maxv)`: Check if a version `v` lies between (`minv`, `maxv`).\n\n- `compares(v1, v2)`: Compare the level of two versions, returns -1 (lower), 0 (equal), and 1 (larger).\n\n- `shares_prefix(v1, v2)`: Check if two versions sharing the same prefix.\n\n- `shares_suffix(v1, v2)`: Check if two versions sharing the same suffix.\n\n\n## By\n\nXiaming Chen \u003cchenxm35@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaesar0301%2Fflexversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaesar0301%2Fflexversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaesar0301%2Fflexversion/lists"}