{"id":28155,"library":"rpm-vercmp","title":"rpm-vercmp","description":"A pure Python implementation of the RPM version comparison algorithm (rpmvercmp). Current version 0.1.2, no regular release cadence observed.","status":"active","version":"0.1.2","language":"python","source_language":"en","source_url":"https://github.com/sgillespie/rpm-vercmp","tags":["rpm","version-comparison","rpmvercmp"],"install":[{"cmd":"pip install rpm-vercmp","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from rpm_vercmp import rpmvercmp","symbol":"vercmp","correct":"from rpm_vercmp import vercmp"}],"quickstart":{"code":"from rpm_vercmp import rpmvercmp\n\nresult = rpmvercmp('1.2.3', '1.2.4')\nprint(result)  # 1 if first > second, -1 if first < second, 0 if equal","lang":"python","description":"Compare two RPM version strings."},"warnings":[{"fix":"Use `rpmvercmp(a, b) > 0` instead of `rpmvercmp(a, b)` in boolean contexts.","message":"The function returns integers (1, -1, 0) for comparison results, not True/False or a boolean. Be careful in conditional checks.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure input strings follow RPM version format (e.g., '1.2.3', '1.2.3-1').","message":"Version strings must be valid RPM version strings. Non-standard characters or malformed input may cause unexpected results or errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.1.2':17 'algorithm':13 'cadenc':21 'comparison':12,26 'current':15 'implement':7 'observ':22 'pure':5 'python':6 'regular':19 'releas':20 'rpm':2,10,23 'rpm-vercmp':1 'rpmvercmp':14,27 'vercmp':3 'version':11,16,25 'version-comparison':24","created_at":"2026-05-09T05:54:00.878475+00:00","updated_at":"2026-05-09T05:54:00.878475+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/rpm-vercmp/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}