for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import warnings
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
from yorm import utilities
class ModelMixin:
"""Adds ORM methods to a mapped class."""
@classmethod
def create(cls, *args, **kwargs):
return utilities.create(cls, *args, **kwargs)
def new(cls, *args, **kwargs):
msg = "ModelMixin.new() has been renamed to ModelMixin.create()"
warnings.warn(msg, DeprecationWarning)
def find(cls, *args, **kwargs):
return utilities.find(cls, *args, **kwargs)
def match(cls, *args, **kwargs):
return utilities.match(cls, *args, **kwargs)
def load(self):
return utilities.load(self)
def save(self):
return utilities.save(self)
def delete(self):
return utilities.delete(self)
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.