Constants (objetto.constants)
Constants.
Action Execution Phases
- objetto.constants.PRE = Phase.PRE
Phase before the changes are applied.
- Inherits from:
- objetto.constants.POST = Phase.POST
Phase after the changes are applied.
- Inherits from:
Special Values
- objetto.constants.DELETED : Special Value
Special marker that represents a deleted value. Can be used when updating
objetto.objects.Objectattributes orobjetto.objects.DictObjectvalues.
Regular Expressions
Lazy Import Paths Validation
- objetto.constants.PRE_IMPORT_PATH_VALIDATION_REGEX = '^[\\w\\-\\|\\.]+$'
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Pre import path regex validation regex.
- objetto.constants.PARTIAL_IMPORT_PATH_REGEX = '^((?:\\w+\\.{0,1})+)$'
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Partial lazy import path regex.
- objetto.constants.RELATIVE_IMPORT_PATH_REGEX = '^((?:(?:\\.+)|(?:\\.*)(?:\\w+\\.{0,1})+))\\|((?:\\w+\\.{0,1})+)$'
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Relative lazy import path regex.
- objetto.constants.IMPORT_PATH_REGEX = '^((?:\\w+\\.{0,1})+)\\|((?:\\w+\\.{0,1})+)$'
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Full lazy import path regex.
Compatibility
- objetto.constants.TEXT_TYPE = <class 'str'>
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Text type.
- objetto.constants.BASE_STRING_TYPES = (<class 'str'>,)
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
Base string types.
- objetto.constants.STRING_TYPES = (<class 'str'>,)
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
All string types.
- objetto.constants.INTEGER_TYPES = (<class 'int'>,)
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
Integer type.