bare-script 0.9.11__tar.gz → 3.0.0__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-0.9.11/src/bare_script.egg-info → bare-script-3.0.0}/PKG-INFO +24 -4
  2. {bare-script-0.9.11 → bare-script-3.0.0}/README.rst +21 -2
  3. {bare-script-0.9.11 → bare-script-3.0.0}/setup.cfg +3 -2
  4. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/data.py +1 -1
  5. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/model.py +3 -3
  6. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/parser.py +2 -2
  7. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/runtime.py +3 -4
  8. {bare-script-0.9.11 → bare-script-3.0.0/src/bare_script.egg-info}/PKG-INFO +24 -4
  9. {bare-script-0.9.11 → bare-script-3.0.0}/LICENSE +0 -0
  10. {bare-script-0.9.11 → bare-script-3.0.0}/pyproject.toml +0 -0
  11. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/__init__.py +0 -0
  12. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/__main__.py +0 -0
  13. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/bare.py +0 -0
  14. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/baredoc.py +0 -0
  15. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/library.py +0 -0
  16. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/options.py +0 -0
  17. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script/value.py +0 -0
  18. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script.egg-info/SOURCES.txt +0 -0
  19. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script.egg-info/dependency_links.txt +0 -0
  20. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script.egg-info/entry_points.txt +0 -0
  21. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script.egg-info/requires.txt +0 -0
  22. {bare-script-0.9.11 → bare-script-3.0.0}/src/bare_script.egg-info/top_level.txt +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bare-script
3
- Version: 0.9.11
3
+ Version: 3.0.0
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
7
7
  Author-email: craigahobbs@gmail.com
8
8
  License: MIT
9
9
  Keywords: bare-script
10
- Classifier: Development Status :: 4 - Beta
10
+ 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
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Interpreters
19
20
  Classifier: Topic :: Utilities
20
21
  Description-Content-Type: text/x-rst
21
22
  License-File: LICENSE
@@ -42,7 +43,22 @@ bare-script
42
43
 
43
44
  |badge-status| |badge-version| |badge-license| |badge-python|
44
45
 
45
- BareScript is a light-weight scripting and expression language.
46
+ `BareScript <https://craigahobbs.github.io/bare-script/language/>`__
47
+ is a simple, lightweight, and portable programming language. Its Pythonic syntax is influenced by
48
+ JavaScript, C, and the Unix Shell. BareScript also has a
49
+ `library of built-in functions <#the-barescript-library>`__
50
+ for common programming operations. BareScript can be
51
+ `embedded within applications <#markdownup-a-markdown-viewer-with-barescript>`__
52
+ or used as a
53
+ stand-alone programming language using the
54
+ `command-line interface <#the-barescript-command-line-interface-cli>`__.
55
+
56
+ There are two implementations of BareScript:
57
+ `BareScript for Python <https://github.com/craigahobbs/bare-script-py#readme>`__
58
+ (this package) and
59
+ `BareScript for JavaScript <https://github.com/craigahobbs/bare-script#readme>`__.
60
+ Both implementations have 100% unit test coverage with identical unit test suites, so you can be
61
+ confident that BareScript will execute the same regardless of the underlying runtime environment.
46
62
 
47
63
 
48
64
  Links
@@ -109,7 +125,7 @@ functions.
109
125
  ...
110
126
  >>> # Execute the script
111
127
  ... print(execute_script(script, {'fetchFn': fetch_http}))
112
- The BareScript Library has 106 functions
128
+ The BareScript Library has 105 functions
113
129
 
114
130
 
115
131
  Evaluating BareScript Expressions
@@ -153,6 +169,10 @@ files use the ".bare" file extension.
153
169
  **Note:** In the BareScript CLI, import statements and the
154
170
  `systemFetch <https://craigahobbs.github.io/bare-script-py/library/#var.vGroup='System'&systemfetch>`__
155
171
  function read non-URL paths from the local file system.
172
+ `systemFetch <https://craigahobbs.github.io/bare-script-py/library/#var.vGroup='System'&systemfetch>`__
173
+ calls with a non-URL path and a
174
+ `request body <https://craigahobbs.github.io/bare-script-py/library/model.html#var.vName='SystemFetchRequest'>`__
175
+ write the body to the path.
156
176
 
157
177
 
158
178
  MarkdownUp, a Markdown Viewer with BareScript
@@ -19,7 +19,22 @@ bare-script
19
19
 
20
20
  |badge-status| |badge-version| |badge-license| |badge-python|
21
21
 
22
- BareScript is a light-weight scripting and expression language.
22
+ `BareScript <https://craigahobbs.github.io/bare-script/language/>`__
23
+ is a simple, lightweight, and portable programming language. Its Pythonic syntax is influenced by
24
+ JavaScript, C, and the Unix Shell. BareScript also has a
25
+ `library of built-in functions <#the-barescript-library>`__
26
+ for common programming operations. BareScript can be
27
+ `embedded within applications <#markdownup-a-markdown-viewer-with-barescript>`__
28
+ or used as a
29
+ stand-alone programming language using the
30
+ `command-line interface <#the-barescript-command-line-interface-cli>`__.
31
+
32
+ There are two implementations of BareScript:
33
+ `BareScript for Python <https://github.com/craigahobbs/bare-script-py#readme>`__
34
+ (this package) and
35
+ `BareScript for JavaScript <https://github.com/craigahobbs/bare-script#readme>`__.
36
+ Both implementations have 100% unit test coverage with identical unit test suites, so you can be
37
+ confident that BareScript will execute the same regardless of the underlying runtime environment.
23
38
 
24
39
 
25
40
  Links
@@ -86,7 +101,7 @@ functions.
86
101
  ...
87
102
  >>> # Execute the script
88
103
  ... print(execute_script(script, {'fetchFn': fetch_http}))
89
- The BareScript Library has 106 functions
104
+ The BareScript Library has 105 functions
90
105
 
91
106
 
92
107
  Evaluating BareScript Expressions
@@ -130,6 +145,10 @@ files use the ".bare" file extension.
130
145
  **Note:** In the BareScript CLI, import statements and the
131
146
  `systemFetch <https://craigahobbs.github.io/bare-script-py/library/#var.vGroup='System'&systemfetch>`__
132
147
  function read non-URL paths from the local file system.
148
+ `systemFetch <https://craigahobbs.github.io/bare-script-py/library/#var.vGroup='System'&systemfetch>`__
149
+ calls with a non-URL path and a
150
+ `request body <https://craigahobbs.github.io/bare-script-py/library/model.html#var.vName='SystemFetchRequest'>`__
151
+ write the body to the path.
133
152
 
134
153
 
135
154
  MarkdownUp, a Markdown Viewer with BareScript
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = bare-script
3
- version = 0.9.11
3
+ version = 3.0.0
4
4
  url = https://github.com/craigahobbs/bare-script
5
5
  author = Craig A. Hobbs
6
6
  author_email = craigahobbs@gmail.com
@@ -10,7 +10,7 @@ long_description = file:README.rst
10
10
  long_description_content_type = text/x-rst
11
11
  keywords = bare-script
12
12
  classifiers =
13
- Development Status :: 4 - Beta
13
+ Development Status :: 5 - Production/Stable
14
14
  Intended Audience :: Developers
15
15
  License :: OSI Approved :: MIT License
16
16
  Operating System :: OS Independent
@@ -19,6 +19,7 @@ classifiers =
19
19
  Programming Language :: Python :: 3.10
20
20
  Programming Language :: Python :: 3.11
21
21
  Programming Language :: Python :: 3.12
22
+ Topic :: Software Development :: Interpreters
22
23
  Topic :: Utilities
23
24
 
24
25
  [options]
@@ -303,7 +303,7 @@ def aggregate_data(data, aggregation):
303
303
 
304
304
  :param data: The data array
305
305
  :type data: list[dict]
306
- :param aggregation: The `aggregation model <https://craigahobbs.github.io/bare-script/library/model.html#var.vName='Aggregation'>`__
306
+ :param aggregation: The `aggregation model <./library/model.html#var.vName='Aggregation'>`__
307
307
  :type aggregation: dict
308
308
  :return: The aggregated data array
309
309
  :rtype: list[dict]
@@ -223,7 +223,7 @@ def validate_script(script):
223
223
  """
224
224
  Validate a BareScript script model
225
225
 
226
- :param script: The `BareScript model <https://craigahobbs.github.io/bare-script-py/model/#var.vName='BareScript'>`__
226
+ :param script: The `BareScript model <./model/#var.vName='BareScript'>`__
227
227
  :type script: dict
228
228
  :return: The validated BareScript model
229
229
  :rtype: dict
@@ -236,7 +236,7 @@ def validate_expression(expr):
236
236
  """
237
237
  Validate an expression model
238
238
 
239
- :param script: The `expression model <https://craigahobbs.github.io/bare-script-py/model/#var.vName='Expression'>`__
239
+ :param script: The `expression model <./model/#var.vName='Expression'>`__
240
240
  :type script: dict
241
241
  :return: The validated expression model
242
242
  :rtype: dict
@@ -249,7 +249,7 @@ def lint_script(script):
249
249
  """
250
250
  Lint a BareScript script model
251
251
 
252
- :param script: The `BareScript model <https://craigahobbs.github.io/bare-script-py/model/#var.vName='BareScript'>`__
252
+ :param script: The `BareScript model <./model/#var.vName='BareScript'>`__
253
253
  :type script: dict
254
254
  :return: The list of lint warnings
255
255
  :rtype: list[str]
@@ -16,7 +16,7 @@ def parse_script(script_text, start_line_number=1):
16
16
  :type script_text: str or ~collections.abc.Iterable(str)
17
17
  :param start_line_number: The script's starting line number
18
18
  :type start_line_number: int, optional
19
- :return: The `BareScript model <https://craigahobbs.github.io/bare-script-py/model/#var.vName='BareScript'>`__
19
+ :return: The `BareScript model <./model/#var.vName='BareScript'>`__
20
20
  :rtype: dict
21
21
  :raises BareScriptParserError: A parsing error occurred
22
22
  """
@@ -437,7 +437,7 @@ def parse_expression(expr_text):
437
437
 
438
438
  :param expr_text: The `expression text <https://craigahobbs.github.io/bare-script/language/#expressions>`__
439
439
  :type expr_text: str or ~collections.abc.Iterable(str)
440
- :return: The `expression model <https://craigahobbs.github.io/bare-script-py/model/#var.vName='Expression'>`__
440
+ :return: The `expression model <./model/#var.vName='Expression'>`__
441
441
  :rtype: dict
442
442
  :raises BareScriptParserError: A parsing error occurred
443
443
  """
@@ -19,7 +19,7 @@ def execute_script(script, options=None):
19
19
  """
20
20
  Execute a BareScript model
21
21
 
22
- :param script: The `BareScript model <https://craigahobbs.github.io/bare-script-py/model/#var.vName='BareScript'>`__
22
+ :param script: The `BareScript model <./model/#var.vName='BareScript'>`__
23
23
  :type script: dict
24
24
  :param options: The :class:`script execution options <ExecuteScriptOptions>`
25
25
  :type options: dict or None, optional
@@ -168,14 +168,13 @@ def evaluate_expression(expr, options=None, locals_=None, builtins=True):
168
168
  """
169
169
  Evaluate an expression model
170
170
 
171
- :param script: The `expression model <https://craigahobbs.github.io/bare-script-py/model/#var.vName='Expression'>`__
171
+ :param script: The `expression model <./model/#var.vName='Expression'>`__
172
172
  :type script: dict
173
173
  :param options: The :class:`script execution options <ExecuteScriptOptions>`
174
174
  :type options: dict or None, optional
175
175
  :param locals_: The local variables
176
176
  :type locals_: dict or None, optional
177
- :param builtins: If true, include the
178
- `built-in expression functions <https://craigahobbs.github.io/bare-script-py/library/expression.html>`__
177
+ :param builtins: If true, include the `built-in expression functions <library/expression.html>`__
179
178
  :type builtins: bool, optional
180
179
  :returns: The expression result
181
180
  :raises BareScriptRuntimeError: A script runtime error occurred
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bare-script
3
- Version: 0.9.11
3
+ Version: 3.0.0
4
4
  Summary: bare-script
5
5
  Home-page: https://github.com/craigahobbs/bare-script
6
6
  Author: Craig A. Hobbs
7
7
  Author-email: craigahobbs@gmail.com
8
8
  License: MIT
9
9
  Keywords: bare-script
10
- Classifier: Development Status :: 4 - Beta
10
+ 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
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
17
  Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Interpreters
19
20
  Classifier: Topic :: Utilities
20
21
  Description-Content-Type: text/x-rst
21
22
  License-File: LICENSE
@@ -42,7 +43,22 @@ bare-script
42
43
 
43
44
  |badge-status| |badge-version| |badge-license| |badge-python|
44
45
 
45
- BareScript is a light-weight scripting and expression language.
46
+ `BareScript <https://craigahobbs.github.io/bare-script/language/>`__
47
+ is a simple, lightweight, and portable programming language. Its Pythonic syntax is influenced by
48
+ JavaScript, C, and the Unix Shell. BareScript also has a
49
+ `library of built-in functions <#the-barescript-library>`__
50
+ for common programming operations. BareScript can be
51
+ `embedded within applications <#markdownup-a-markdown-viewer-with-barescript>`__
52
+ or used as a
53
+ stand-alone programming language using the
54
+ `command-line interface <#the-barescript-command-line-interface-cli>`__.
55
+
56
+ There are two implementations of BareScript:
57
+ `BareScript for Python <https://github.com/craigahobbs/bare-script-py#readme>`__
58
+ (this package) and
59
+ `BareScript for JavaScript <https://github.com/craigahobbs/bare-script#readme>`__.
60
+ Both implementations have 100% unit test coverage with identical unit test suites, so you can be
61
+ confident that BareScript will execute the same regardless of the underlying runtime environment.
46
62
 
47
63
 
48
64
  Links
@@ -109,7 +125,7 @@ functions.
109
125
  ...
110
126
  >>> # Execute the script
111
127
  ... print(execute_script(script, {'fetchFn': fetch_http}))
112
- The BareScript Library has 106 functions
128
+ The BareScript Library has 105 functions
113
129
 
114
130
 
115
131
  Evaluating BareScript Expressions
@@ -153,6 +169,10 @@ files use the ".bare" file extension.
153
169
  **Note:** In the BareScript CLI, import statements and the
154
170
  `systemFetch <https://craigahobbs.github.io/bare-script-py/library/#var.vGroup='System'&systemfetch>`__
155
171
  function read non-URL paths from the local file system.
172
+ `systemFetch <https://craigahobbs.github.io/bare-script-py/library/#var.vGroup='System'&systemfetch>`__
173
+ calls with a non-URL path and a
174
+ `request body <https://craigahobbs.github.io/bare-script-py/library/model.html#var.vName='SystemFetchRequest'>`__
175
+ write the body to the path.
156
176
 
157
177
 
158
178
  MarkdownUp, a Markdown Viewer with BareScript
File without changes
File without changes