Skip to main content

Python version management package

Project description

Versionizer

This module was created to easily manage package versions and switch to newer version based on date and time. It can be used to get current version of package and last existing version.

Examples:

  • code should be added in your_awesome_module init file:

    from versionizer import VersionManager
    from datetime import datetime
    
    current = VersionManager(
        module=__name__,
        versions={
            'v1': datetime(2020, 1, 1),
            'v2': datetime(2023, 2, 4),
            'vX': datetime(2100, 1, 1)
        }
    )
    

    or:

     from versionizer import VersionManager
     from datetime import datetime
    
     __versions = VersionManager(
         module=__name__,
         versions={
             'v1': datetime(2020, 1, 1),
             'v2': datetime(2023, 2, 4),
             'vX': datetime(2100, 1, 1)
         }
     )
    
     current = __versions.current
    
  • use (v1, v2, vX sub-modules should be created and called):

    from your_awesome_module import current
    from time import sleep
    
    while True:
        current.test_func()  # should return test_func from current version of module
        sleep(60 * 60)
    

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ruth_versionizer-2022.0.0-cp313-cp313-win_amd64.whl (41.0 kB view details)

Uploaded CPython 3.13Windows x86-64

ruth_versionizer-2022.0.0-cp313-cp313-musllinux_1_2_x86_64.whl (289.4 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

ruth_versionizer-2022.0.0-cp313-cp313-musllinux_1_2_i686.whl (279.3 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ i686

ruth_versionizer-2022.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (285.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

ruth_versionizer-2022.0.0-cp313-cp313-macosx_11_0_arm64.whl (43.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

ruth_versionizer-2022.0.0-cp312-cp312-win_amd64.whl (41.2 kB view details)

Uploaded CPython 3.12Windows x86-64

ruth_versionizer-2022.0.0-cp312-cp312-musllinux_1_2_x86_64.whl (289.5 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

ruth_versionizer-2022.0.0-cp312-cp312-musllinux_1_2_i686.whl (278.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ i686

ruth_versionizer-2022.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (288.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

ruth_versionizer-2022.0.0-cp312-cp312-macosx_11_0_arm64.whl (44.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

ruth_versionizer-2022.0.0-cp311-cp311-win_amd64.whl (41.7 kB view details)

Uploaded CPython 3.11Windows x86-64

ruth_versionizer-2022.0.0-cp311-cp311-musllinux_1_2_x86_64.whl (282.4 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

ruth_versionizer-2022.0.0-cp311-cp311-musllinux_1_2_i686.whl (273.1 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ i686

ruth_versionizer-2022.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (273.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ruth_versionizer-2022.0.0-cp311-cp311-macosx_11_0_arm64.whl (44.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file ruth_versionizer-2022.0.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3359bcf443c1144fc487ed84ebaf96a1699f0f6415cfd9c9e8b789f922d05c39
MD5 046c2b3fb45a6eae3aa64b0f5a280bff
BLAKE2b-256 6176ac4f2d560dd2ccd2382ee246873b0958dfdbc970298d89d0d3c1da929cbe

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fea68cc5ab531aa5b657b52b80eecb160af692afeb4cd2cf4222cd0a945ccaac
MD5 bc715d5f52d59c751b5402be5c8960f5
BLAKE2b-256 b6d7a72c7a78e779a56d3bbb78f50b9ee8bcda5455bf7d0555b9b1a12afceb90

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp313-cp313-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp313-cp313-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c9d70f8ad4affa04ff0a28d1aff6d16064e1413a7375b4109be4a755a3c721d3
MD5 32f82552462cc08bfac136851e0590cd
BLAKE2b-256 c8edf2a89587d5348c0f29441707aff06b3f6bac308886a86b785d6d10a4cb82

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77edfb5e2a1d80312c0c126090755fe96de910aadc24dbbff3777cb37e3bddb7
MD5 61449c52ca7f05c321aa89d3886aa896
BLAKE2b-256 39b666a8474b47a06b24aaef696c3231b1b516c6724044404af4514b6cd8a121

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 138a6b6e36ec623c45802301146f5d3876ead20a8de6b9961733afe52b3eabe3
MD5 fa7c67b2d3b78e020dc8e4f87b889e85
BLAKE2b-256 b54966e8411cc67a0cd33e30cd2c2af7c88e284ddcc1672d6935b72b9d2d6a3d

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 163fef60353f4ab31dc58d2595487058af20d9741b3e281963f289b4064028c0
MD5 f69a58c343285817940ffa40c1f0b2c1
BLAKE2b-256 a605929bfe3c425d1082eae8fda5929d6c05d8eb9b36f8a31b97e7813759968a

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2f9fb1e6c9b0ed6bc46e895154818ab8b7a8b98d5d2db3710671a0d879536c38
MD5 bc1db154db13db8d63c64a573c49899d
BLAKE2b-256 c43a585e4ba2a868cf51ab597f2fedf4cd2e85f2dc13565b6eebc3a5ae3eebe0

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp312-cp312-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 757506926ed1a949192a958fc82b87a453e4315cd010db4c2aef82c1077d3cab
MD5 1d9113626458d8e014d5e474bf2de6b9
BLAKE2b-256 92559196351c615f659df4a3a086dc148f58d50072b88285d1ab914b6aef1e30

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31769d81f2e6125091a434878745e56ed71fd6c1ada60f70a2e9c8abf47b2017
MD5 ba188db63f0082b72e90726ab4df0259
BLAKE2b-256 edb3be6bda91d3c9a561f1f5224e36c85504e948a194ccf088e135ee9c6ab0d9

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95582671501edbb00f8c5e70bdcae5965f4e909c122f15df331c554d0e7bc4d2
MD5 b2a70943d261df14ec42f986351c676e
BLAKE2b-256 ea2d37c729b0b751cf0c9b876679857a848f72008f6f7cab043d42d573afbf60

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 af6ddbff8f2cbb42adf9cb918cba266da7f735dd58ce36ec721efa3338c8d0da
MD5 6fb042cc6239a223b789c9f84fcaccbb
BLAKE2b-256 ffc3bc0a1e1e29b6d7a264e26f3c6716a7abbc0cdec7e2e7b5d936473944bc99

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e461b260e5db3804b44915365eb9b2621b3a1dc8e856834ca46e1e10a5e62d2a
MD5 599a2e101b859a31786131795d038cde
BLAKE2b-256 4673693f83f378ecf8d0a0f15d717ad9b62c3581de89cc55d6945d969b885dac

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 caed2f5d0ac75440a093c5c0b29c065358f5c0f84a540662fe44bef50298d2c3
MD5 9cad7d5bf6319f8faa24a79840ca6cb2
BLAKE2b-256 0e54337acd3799d7550287468255c4a1b51795d0dd8799c52884c130f65f0b5b

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bc110f1287464bf05e0a64fa588a43c4e34ed0174ceeee8921924e1ab14b1e76
MD5 b74d24025751cd41096b3b4dea2e66ff
BLAKE2b-256 4d858d8037e487eab0cd6943cbd46f108a632b94e9e48f023e878eaf4820a37c

See more details on using hashes here.

File details

Details for the file ruth_versionizer-2022.0.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruth_versionizer-2022.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7dfb94546567516764529c927af9fbdb9ea8e539c9419723554f7ca0effa60f1
MD5 f94d71ad49c3af73dad525c2ba59277a
BLAKE2b-256 1526087e6f3fdf85cd398a3e3793fafa927fe3db6788c7d137f2db8d94733281

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page