Package that allows to version code paths with the use of a decorator.
Currently actively used and watched.
- python 2.7
- python 3.3, 3.4, 3.5
pip install versionary
Usage 1.
from versionary.decorators import versioned
@versioned()
def my_func():
return 1
@versioned()
def my_func__v2:
return 2
one = my_func.v1()
two = my_func.v2()
Usage 2.
@versioned(1)
def my_func():
return 1
@versioned(2)
def my_func:
return 2
one = my_func.v1()
two = my_func.v2()
You can use the validate_module function from versionary.utils to validate correct use of the decorator in the given module.
See the CONTRIBUTING.md file on how to contribute to this project.
See the CONTRIBUTORS.md file for a list of contributors to the project.
The changelog can be found in the CHANGELOG.md file.
- Minor improvements
- Scoped versioning (Class methods)
If you want to report an issue see the CONTRIBUTING.md file for more info.
We will be happy to answer your other questions at [email protected]