bare-script 3.0.13__tar.gz → 3.0.15__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.
Files changed (22) hide show
  1. {bare_script-3.0.13/src/bare_script.egg-info → bare_script-3.0.15}/PKG-INFO +2 -2
  2. {bare_script-3.0.13 → bare_script-3.0.15}/setup.cfg +2 -2
  3. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/library.py +20 -0
  4. {bare_script-3.0.13 → bare_script-3.0.15/src/bare_script.egg-info}/PKG-INFO +2 -2
  5. {bare_script-3.0.13 → bare_script-3.0.15}/LICENSE +0 -0
  6. {bare_script-3.0.13 → bare_script-3.0.15}/README.md +0 -0
  7. {bare_script-3.0.13 → bare_script-3.0.15}/pyproject.toml +0 -0
  8. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/__init__.py +0 -0
  9. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/__main__.py +0 -0
  10. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/bare.py +0 -0
  11. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/baredoc.py +0 -0
  12. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/data.py +0 -0
  13. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/model.py +0 -0
  14. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/options.py +0 -0
  15. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/parser.py +0 -0
  16. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/runtime.py +0 -0
  17. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script/value.py +0 -0
  18. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script.egg-info/SOURCES.txt +0 -0
  19. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script.egg-info/dependency_links.txt +0 -0
  20. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script.egg-info/entry_points.txt +0 -0
  21. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script.egg-info/requires.txt +0 -0
  22. {bare_script-3.0.13 → bare_script-3.0.15}/src/bare_script.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bare-script
3
- Version: 3.0.13
3
+ Version: 3.0.15
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
@@ -11,11 +11,11 @@ Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: MIT License
13
13
  Classifier: Operating System :: OS Independent
14
- Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
15
  Classifier: Programming Language :: Python :: 3.10
17
16
  Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Topic :: Software Development :: Interpreters
20
20
  Classifier: Topic :: Utilities
21
21
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = bare-script
3
- version = 3.0.13
3
+ version = 3.0.15
4
4
  url = https://github.com/craigahobbs/bare-script
5
5
  author = Craig A. Hobbs
6
6
  author_email = craigahobbs@gmail.com
@@ -14,11 +14,11 @@ classifiers =
14
14
  Intended Audience :: Developers
15
15
  License :: OSI Approved :: MIT License
16
16
  Operating System :: OS Independent
17
- Programming Language :: Python :: 3.8
18
17
  Programming Language :: Python :: 3.9
19
18
  Programming Language :: Python :: 3.10
20
19
  Programming Language :: Python :: 3.11
21
20
  Programming Language :: Python :: 3.12
21
+ Programming Language :: Python :: 3.13
22
22
  Topic :: Software Development :: Interpreters
23
23
  Topic :: Utilities
24
24
 
@@ -46,6 +46,25 @@ _ARRAY_COPY_ARGS = value_args_model([
46
46
  ])
47
47
 
48
48
 
49
+ # $function: arrayDelete
50
+ # $group: Array
51
+ # $doc: Delete an array element
52
+ # $arg array: The array
53
+ # $arg index: The array element's index
54
+ # $return: The array element
55
+ def _array_delete(args, unused_options):
56
+ array, index = value_args_validate(_ARRAY_DELETE_ARGS, args)
57
+ if index >= len(array):
58
+ raise ValueArgsError('index', index)
59
+
60
+ del array[int(index)]
61
+
62
+ _ARRAY_DELETE_ARGS = value_args_model([
63
+ {'name': 'array', 'type': 'array'},
64
+ {'name': 'index', 'type': 'number', 'integer': True, 'gte': 0}
65
+ ])
66
+
67
+
49
68
  # $function: arrayExtend
50
69
  # $group: Array
51
70
  # $doc: Extend one array with another
@@ -1988,6 +2007,7 @@ _URL_ENCODE_COMPONENT_ARGS = value_args_model([
1988
2007
  # The built-in script functions
1989
2008
  SCRIPT_FUNCTIONS = {
1990
2009
  'arrayCopy': _array_copy,
2010
+ 'arrayDelete': _array_delete,
1991
2011
  'arrayExtend': _array_extend,
1992
2012
  'arrayGet': _array_get,
1993
2013
  'arrayIndexOf': _array_index_of,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bare-script
3
- Version: 3.0.13
3
+ Version: 3.0.15
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
@@ -11,11 +11,11 @@ Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: MIT License
13
13
  Classifier: Operating System :: OS Independent
14
- Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
15
  Classifier: Programming Language :: Python :: 3.10
17
16
  Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Topic :: Software Development :: Interpreters
20
20
  Classifier: Topic :: Utilities
21
21
  Description-Content-Type: text/markdown
File without changes
File without changes