gaitsetpy._version API documentation

# gaitsetpy._version

Version information for GaitSetPy.

This file serves as the single source of truth for the package version. All other files should import the version from here.

View Source

     1"""
     2Version information for GaitSetPy.
     3
     4This file serves as the single source of truth for the package version.
     5All other files should import the version from here.
     6"""
     7
     8__version__ = "0.2.3"
     9
    10def _parse_version(version_string):
    11    """Parse version string into tuple of integers, ignoring non-numeric suffixes."""
    12    parts = []
    13    for part in version_string.split('.'):
    14        # Extract leading digits only, stop at first non-digit
    15        numeric = ''
    16        for c in part:
    17            if c.isdigit():
    18                numeric += c
    19            else:
    20                break
    21        if numeric:
    22            parts.append(int(numeric))
    23    return tuple(parts)
    24
    25__version_info__ = _parse_version(__version__)
    26
    27# Version metadata
    28VERSION = __version__
    29VERSION_INFO = __version_info__
    30
    31# Release information
    32RELEASE_DATE = "2025-10-03"
    33RELEASE_NOTES = "Added concurrent downloading support"
    34
    35def get_version():
    36    """Get the current version string."""
    37    return __version__
    38
    39def get_version_info():
    40    """Get the current version as a tuple of integers."""
    41    return __version_info__
    42
    43def get_release_info():
    44    """Get release information."""
    45    return {
    46        'version': __version__,
    47        'version_info': __version_info__,
    48        'release_date': RELEASE_DATE,
    49        'release_notes': RELEASE_NOTES
    50    }

VERSION = '0.2.3'
VERSION_INFO = (0, 2, 3)
RELEASE_DATE = '2025-10-03'
RELEASE_NOTES = 'Added concurrent downloading support'
def get_version(): View Source

    36def get_version():
    37    """Get the current version string."""
    38    return __version__

Get the current version string.

def get_version_info(): View Source

    40def get_version_info():
    41    """Get the current version as a tuple of integers."""
    42    return __version_info__

Get the current version as a tuple of integers.

def get_release_info(): View Source

    44def get_release_info():
    45    """Get release information."""
    46    return {
    47        'version': __version__,
    48        'version_info': __version_info__,
    49        'release_date': RELEASE_DATE,
    50        'release_notes': RELEASE_NOTES
    51    }

Get release information.