Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7569885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:16:42+00:00 2026-05-30T15:16:42+00:00

I am looking for a python module / library which will be to operate

  • 0

I am looking for a python module / library which will be to operate on ‘software versions’… Which means, for example:

  • compare versions “1.0-SNAPSHOT” and “1.1-SNAPSHOT” and tell which is newer
  • increment “1.0.1-SNAPSHOT” to “1.0.2-SNAPSHOT”
  • make “1.0” from “1.0-SNAPSHOT” and same with ‘-RELEASE’

Yes, versions naming comes in this came from java (maven) world – my python part should operate on them..

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:16:43+00:00Added an answer on May 30, 2026 at 3:16 pm

    distutils has some support for this.

    >>> from distutils.version import LooseVersion  # or StrictVersion
    >>> LooseVersion("1.0-SNAPSHOT") < LooseVersion("1.1-SNAPSHOT")
    True
    >>> v = LooseVersion("1.0.1-SNAPSHOT")
    >>> v.version
    [1, 0, 1, '-SNAPSHOT']
    

    You’ll have to do the incrementing and other manipulation yourself though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a python module that will help me get rid of
I'm looking for a python library that will help me to create an authentication
I'm looking for a Python module that would take an arbitrary block of text,
I am looking for hexagonal self-organizing map on Python. ready module. If one exists.
I am looking for python stubbing library. Something that could be used to create
I am looking for a python webserver which is multithreaded instead of being multi-process
I'm looking for a python project to use as example to copy the design
Python has a standard library module ftplib to run FTP communications. It has two
Is there a module written purely in Python that will allow a script to
python's time module seems a little haphazard. For example, here is a list of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.