Skip to content

version

VersionResource

Bases: ConfigurableResource

A resource for setting up the version release.

Source code in bag3d/common/resources/version.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
class VersionResource(ConfigurableResource):
    """
    A resource for setting up the version release.
    """

    version: str

    def __init__(
        self,
        version: Optional[str] = None,
    ):
        super().__init__(
            version=version
            or "".join(random.choice(string.ascii_letters) for _ in range(8))
        )