bare-script 3.0.10__tar.gz → 3.0.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bare-script-3.0.10/src/bare_script.egg-info → bare_script-3.0.12}/PKG-INFO +1 -1
- {bare-script-3.0.10 → bare_script-3.0.12}/setup.cfg +1 -1
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/library.py +9 -6
- {bare-script-3.0.10 → bare_script-3.0.12/src/bare_script.egg-info}/PKG-INFO +1 -1
- {bare-script-3.0.10 → bare_script-3.0.12}/LICENSE +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/README.md +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/pyproject.toml +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/__init__.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/__main__.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/bare.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/baredoc.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/data.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/model.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/options.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/parser.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/runtime.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script/value.py +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script.egg-info/SOURCES.txt +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script.egg-info/dependency_links.txt +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script.egg-info/entry_points.txt +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script.egg-info/requires.txt +0 -0
- {bare-script-3.0.10 → bare_script-3.0.12}/src/bare_script.egg-info/top_level.txt +0 -0
|
@@ -330,7 +330,7 @@ _ARRAY_SORT_ARGS = value_args_model([
|
|
|
330
330
|
# $group: Data
|
|
331
331
|
# $doc: Aggregate a data array
|
|
332
332
|
# $arg data: The data array
|
|
333
|
-
# $arg aggregation: The [aggregation model](model.html#var.vName='Aggregation')
|
|
333
|
+
# $arg aggregation: The [aggregation model](https://craigahobbs.github.io/bare-script-py/library/model.html#var.vName='Aggregation')
|
|
334
334
|
# $return: The aggregated data array
|
|
335
335
|
def _data_aggregate(args, unused_options):
|
|
336
336
|
data, aggregation = value_args_validate(_DATA_AGGREGATE_ARGS, args)
|
|
@@ -1232,7 +1232,8 @@ _REGEX_ESCAPE_ARGS = value_args_model([
|
|
|
1232
1232
|
# $doc: Find the first match of a regular expression in a string
|
|
1233
1233
|
# $arg regex: The regular expression
|
|
1234
1234
|
# $arg string: The string
|
|
1235
|
-
# $return: The [match object](model.html#var.vName='RegexMatch'),
|
|
1235
|
+
# $return: The [match object](https://craigahobbs.github.io/bare-script-py/library/model.html#var.vName='RegexMatch'),
|
|
1236
|
+
# $return: or null if no matches are found
|
|
1236
1237
|
def _regex_match(args, unused_options):
|
|
1237
1238
|
regex, string = value_args_validate(_REGEX_MATCH_ARGS, args)
|
|
1238
1239
|
match = regex.search(string)
|
|
@@ -1249,7 +1250,7 @@ _REGEX_MATCH_ARGS = value_args_model([
|
|
|
1249
1250
|
# $doc: Find all matches of regular expression in a string
|
|
1250
1251
|
# $arg regex: The regular expression
|
|
1251
1252
|
# $arg string: The string
|
|
1252
|
-
# $return: The array of [match objects](model.html#var.vName='RegexMatch')
|
|
1253
|
+
# $return: The array of [match objects](https://craigahobbs.github.io/bare-script-py/library/model.html#var.vName='RegexMatch')
|
|
1253
1254
|
def _regex_match_all(args, unused_options):
|
|
1254
1255
|
regex, string = value_args_validate(_REGEX_MATCH_ALL_ARGS, args)
|
|
1255
1256
|
return [_regex_match_groups(match) for match in regex.finditer(string)]
|
|
@@ -1755,8 +1756,10 @@ _SYSTEM_COMPARE_ARGS = value_args_model([
|
|
|
1755
1756
|
# $function: systemFetch
|
|
1756
1757
|
# $group: System
|
|
1757
1758
|
# $doc: Retrieve a URL resource
|
|
1758
|
-
# $arg url: The resource URL,
|
|
1759
|
-
# $arg url: [request model](model.html#var.vName='SystemFetchRequest')
|
|
1759
|
+
# $arg url: The resource URL,
|
|
1760
|
+
# $arg url: [request model](https://craigahobbs.github.io/bare-script-py/library/model.html#var.vName='SystemFetchRequest'),
|
|
1761
|
+
# $arg url: or array of URL and
|
|
1762
|
+
# $arg url: [request model](https://craigahobbs.github.io/bare-script-py/library/model.html#var.vName='SystemFetchRequest')
|
|
1760
1763
|
# $return: The response string or array of strings; null if an error occurred
|
|
1761
1764
|
def _system_fetch(args, options):
|
|
1762
1765
|
url, = value_args_validate(_SYSTEM_FETCH_ARGS, args)
|
|
@@ -1962,7 +1965,7 @@ _SYSTEM_TYPE_ARGS = value_args_model([
|
|
|
1962
1965
|
# $return: The encoded URL string
|
|
1963
1966
|
def _url_encode(args, unused_options):
|
|
1964
1967
|
url, extra = value_args_validate(_URL_ENCODE_ARGS, args)
|
|
1965
|
-
safe = "'
|
|
1968
|
+
safe = "':/&+(" if extra else "':/&+()"
|
|
1966
1969
|
return urllib.parse.quote(url, safe=safe)
|
|
1967
1970
|
|
|
1968
1971
|
_URL_ENCODE_ARGS = value_args_model([
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|