Skip to main content

A Python package to generate next version string

Project description

A Python package to increments module verision numbers.:

.. code-block:: python

from nextversion import nextversion nextversion(‘1.0a2’) # => ‘1.0a3’ nextversion(‘v1.0a2’) # => ‘1.0a3’ (normalized to compatible version with PEP 386) nextversion(‘foo.0.3’) # => None (impossible to normalize)

If original version number does not match PEP 386 ,

  1. Next version compatible with PEP 386 is returned if possible,

  2. If impossible, None is returned.


Install from PyPI

$ pip install nextversion

Install from Github repo

$ git clone
$ cd nextversion
$ ./ install

See also


Sho Nakatani <>, a.k.a. @laysakura

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nextversion-0.3.tar.gz (6.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page