Mercurial > repos > devteam > column_maker
changeset 2:292c605c2dc7 draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
author | devteam |
---|---|
date | Fri, 18 Dec 2015 18:52:53 -0500 |
parents | d3f10c90fc96 |
children | 35937a6b04fb |
files | column_maker.py column_maker.xml |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/column_maker.py Tue Oct 13 12:14:53 2015 -0400 +++ b/column_maker.py Fri Dec 18 18:52:53 2015 -0500 @@ -47,7 +47,7 @@ expr = expr.replace( key, value ) operators = 'is|not|or|and' -builtin_and_math_functions = 'abs|all|any|bin|chr|cmp|complex|divmod|float|hex|int|len|long|max|min|oct|ord|pow|range|reversed|round|sorted|str|sum|type|unichr|unicode|log|exp|sqrt|ceil|floor' +builtin_and_math_functions = 'abs|all|any|bin|chr|cmp|complex|divmod|float|bool|hex|int|len|long|max|min|oct|ord|pow|range|reversed|round|sorted|str|sum|type|unichr|unicode|log|exp|sqrt|ceil|floor' string_and_list_methods = [ name for name in dir('') + dir([]) if not name.startswith('_') ] whitelist = "^([c0-9\+\-\*\/\(\)\.\'\"><=,:! ]|%s|%s|%s)*$" % (operators, builtin_and_math_functions, '|'.join(string_and_list_methods)) if not re.compile(whitelist).match(expr):
--- a/column_maker.xml Tue Oct 13 12:14:53 2015 -0400 +++ b/column_maker.xml Fri Dec 18 18:52:53 2015 -0500 @@ -79,5 +79,16 @@ chr1 151077881 151077918 2 200 - False chr1 151081985 151082078 3 500 + False -</help> + +The following build-in functions are available:: + + abs | all | any | bin | bool | chr | ceil | cmp | complex + + divmod | exp | float | log | floor | hex | int | len | long + + max | min | oct | ord | pow | range | reversed + + round | sorted | sqrt | str | sum | type | unichr | unicode | + + </help> </tool>