Ttp

Latest version: v0.9.5

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

7.1

8 Added group "del" function to delete certain keys out of group results
9 Added uptimeparse match variable function to convert strings like "4 weeks, 3days, 5 hours, 10 seconds" into seconds
10 Added group itemize function to produce list of items out of group match results
11 Added group sformat function to format strings based on group match results or template vars or global vars
12 Added support for default only groups - if group start re has default value and no results matches by that group, group default values will be added to results, if any

New Tests
1 tes1-1 now tests trailing tabs as well
2 test11 to test global variable record/set functions
3 test12 - input "commands" functions test
4 test1-31 - Added group "del" delete function
5 test 1-32-1 and 1-32-2 for uptimeparse function
6 test14 - group itemize function test
7 test13 - group sformat function tests

Docs updates
1 Updated "Writing Templates" notes on leading/trailing spaces and tabs handling
2 added drafts for input functions
3 added draft for group 'del' function
4 added docs for uptimeparse function
5 added draft for itemize function
6 added group sformat function docs draft

Bug fixes
-

0.9.5

ENHANCEMENT

1. group `to_int` function improved handling of missing keys, 109
2. group `to_int` function added support to handle list of integers conversion, 109
3. group `to_int` function improved best effort conversion logic to not fail on any conversion error at all

0.9.4

BUGS

1. Better fix for issue 103 and fix for issue 95

0.9.3

BUGS

1. Fix issue 103 - introduced login to not run validation check for group function for group tail match results
2. Fix for issue 97 - improoved path formatters handling when match variable contains `*`
3. Fix issue 98 - improoved pat formatters handling when match variable contains `\`

CHANGES

1. For debug output excluded '_ttp_' dictionary from variables, groups and template objects to not clutter the output

0.9.2

BUGS

1. Fix for issue 94

FEATURES

1. Added match variable ``copy`` funtion
2. Added new ttp parser method ``get_templates`` to emit fully constructed templates after processing all extend tags

0.9.1

BUGS

1. Fix issue 77 - problem was with start regex selection preference logic, updated that logic to account for use case when same line matched by multiple start re and one of the matches already has parent group started, selection logic updated to prefer such a match as opposed to previously it was simply continuing to next match.

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.