Skip to main content

Code versioning decorator

Project description

Build Status

Package that allows to version code paths with the use of a decorator.

Status

Currently actively used and watched.

Usage

Requirements

  • python 2.7

  • python 3.3, 3.4, 3.5

Installation

pip install versionary

Running

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.

Contributing

See the CONTRIBUTING.md file on how to contribute to this project.

Contributors

See the CONTRIBUTORS.md file for a list of contributors to the project.

Roadmap

Changelog

The changelog can be found in the CHANGELOG.md file.

In progress

  • Minor improvements

Future

  • Scoped versioning (Class methods)

Get in touch with a developer

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 opensource@wearespindle.com

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

versionary-0.3.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file versionary-0.3.tar.gz.

File metadata

  • Download URL: versionary-0.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for versionary-0.3.tar.gz
Algorithm Hash digest
SHA256 f226c762125049fc9ea3a11ba1c02a04714b09bb85789919d75eae5e38fe8eaf
MD5 5f397227f86dc6fc3b39970a7aa65bab
BLAKE2b-256 5a9b0e44fccb487861608d81240aefbd0d21d771e482b3fac0ca98e0e51c060f

See more details on using hashes here.

Provenance

Supported by

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