-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APP-4482] [API] Updated transforms to support new static methods.
- Loading branch information
1 parent
b82854c
commit d3a492b
Showing
6 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""TcEx Framework Module""" | ||
|
||
__license__ = 'Apache-2.0' | ||
__version__ = '4.0.5' | ||
__version__ = '4.0.6' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"""TcEx Framework Module""" | ||
|
||
# first-party | ||
from tcex.util import Util | ||
|
||
to_upper_case = str.upper | ||
to_lower_case = str.lower | ||
to_title_case = str.title | ||
|
||
prepend = '{prefix} {}'.format | ||
append = '{} {suffix}'.format | ||
|
||
|
||
def replace(value: str, find: str, replace_with: str) -> str: | ||
"""Replace value in string.""" | ||
return value.replace(find, replace_with) | ||
|
||
|
||
def format_datetime(value: str): | ||
"""Format datetime.""" | ||
return Util.any_to_datetime(value).strftime('%Y-%m-%dT%H:%M:%SZ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters