sbdl 1.18.1__tar.gz → 1.18.3__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.
- sbdl-1.18.3/PKG-INFO +23 -0
- sbdl-1.18.3/sbdl.egg-info/PKG-INFO +23 -0
- {sbdl-1.18.1 → sbdl-1.18.3}/sbdl.py +13 -3
- {sbdl-1.18.1 → sbdl-1.18.3}/setup.py +1 -1
- sbdl-1.18.1/PKG-INFO +0 -9
- sbdl-1.18.1/sbdl.egg-info/PKG-INFO +0 -9
- {sbdl-1.18.1 → sbdl-1.18.3}/csv-to-sbdl.py +0 -0
- {sbdl-1.18.1 → sbdl-1.18.3}/sbdl +0 -0
- {sbdl-1.18.1 → sbdl-1.18.3}/sbdl.egg-info/SOURCES.txt +0 -0
- {sbdl-1.18.1 → sbdl-1.18.3}/sbdl.egg-info/dependency_links.txt +0 -0
- {sbdl-1.18.1 → sbdl-1.18.3}/sbdl.egg-info/requires.txt +0 -0
- {sbdl-1.18.1 → sbdl-1.18.3}/sbdl.egg-info/top_level.txt +0 -0
- {sbdl-1.18.1 → sbdl-1.18.3}/sbdl_server.py +0 -0
- {sbdl-1.18.1 → sbdl-1.18.3}/setup.cfg +0 -0
sbdl-1.18.3/PKG-INFO
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sbdl
|
|
3
|
+
Version: 1.18.3
|
|
4
|
+
Summary: System Behaviour Description Language (Compiler)
|
|
5
|
+
Home-page: https://sbdl.dev
|
|
6
|
+
Author: Michael A. Hicks
|
|
7
|
+
Author-email: michael@mahicks.org
|
|
8
|
+
License: Proprietary
|
|
9
|
+
Requires-Python: >=3.6
|
|
10
|
+
Requires-Dist: networkx
|
|
11
|
+
Requires-Dist: matplotlib
|
|
12
|
+
Requires-Dist: docx2txt
|
|
13
|
+
Requires-Dist: pandas
|
|
14
|
+
Requires-Dist: openpyxl
|
|
15
|
+
Requires-Dist: docxtpl
|
|
16
|
+
Requires-Dist: jinja2
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: license
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: requires-python
|
|
23
|
+
Dynamic: summary
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sbdl
|
|
3
|
+
Version: 1.18.3
|
|
4
|
+
Summary: System Behaviour Description Language (Compiler)
|
|
5
|
+
Home-page: https://sbdl.dev
|
|
6
|
+
Author: Michael A. Hicks
|
|
7
|
+
Author-email: michael@mahicks.org
|
|
8
|
+
License: Proprietary
|
|
9
|
+
Requires-Python: >=3.6
|
|
10
|
+
Requires-Dist: networkx
|
|
11
|
+
Requires-Dist: matplotlib
|
|
12
|
+
Requires-Dist: docx2txt
|
|
13
|
+
Requires-Dist: pandas
|
|
14
|
+
Requires-Dist: openpyxl
|
|
15
|
+
Requires-Dist: docxtpl
|
|
16
|
+
Requires-Dist: jinja2
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: author-email
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: license
|
|
21
|
+
Dynamic: requires-dist
|
|
22
|
+
Dynamic: requires-python
|
|
23
|
+
Dynamic: summary
|
|
@@ -215,8 +215,8 @@ _B=None
|
|
|
215
215
|
_A=True
|
|
216
216
|
import argparse,base64,datetime,csv,functools,getpass,hashlib,importlib,io,json,os,pathlib,platform,re,shlex,string,subprocess,sys,tarfile,tempfile,textwrap,time,traceback,types,unittest,urllib.request,urllib.parse,warnings,zlib,zipfile
|
|
217
217
|
__NAME=_j
|
|
218
|
-
__VERSION='1.18.
|
|
219
|
-
__VERSION_DEV='
|
|
218
|
+
__VERSION='1.18.3'
|
|
219
|
+
__VERSION_DEV='062b082'
|
|
220
220
|
__VERSION_DSL='25.6'
|
|
221
221
|
__VERSION_REST_API='1.1.0'
|
|
222
222
|
__AUTHOR='contact@sbdl.dev'
|
|
@@ -644,6 +644,16 @@ class SBDL_Parser:
|
|
|
644
644
|
else:result_l=''.join(result_l)
|
|
645
645
|
return result_l,index
|
|
646
646
|
def fudge_recurse(possible_directive):nonlocal errors;fudge_value=SBDL_Parser.Tokens.macro_delimeters[0]+possible_directive+SBDL_Parser.Tokens.macro_delimeters[1];fudged_value,errors_l=self.replace_directives(fudge_value,macro_definitions,throw_error,print_l);errors+=errors_l;return fudged_value if fudged_value!=fudge_value else possible_directive
|
|
647
|
+
def smart_flatten_macro_definition(macro_content):
|
|
648
|
+
resultant_content=macro_content
|
|
649
|
+
if isinstance(macro_content,str):resultant_content=macro_content
|
|
650
|
+
elif isinstance(macro_content,list):resultant_content=SBDL_Parser.Attributes.separator.join([smart_flatten_macro_definition(x)for x in macro_content])
|
|
651
|
+
elif isinstance(macro_content,dict):
|
|
652
|
+
if SBDL_Parser.Attributes.identifier in macro_content:
|
|
653
|
+
m_identifier=macro_content[SBDL_Parser.Attributes.identifier];resultant_content=m_identifier
|
|
654
|
+
if SBDL_Parser.Attributes.stereotype in macro_content:m_stereotype=macro_content[SBDL_Parser.Attributes.stereotype];resultant_content=f"{m_identifier}{SBDL_Parser.Tokens.stereotype_separator}{m_stereotype}"
|
|
655
|
+
else:resultant_content=m_identifier
|
|
656
|
+
return resultant_content
|
|
647
657
|
if get_config_value(_A4,number=_A)and result!=_B and isinstance(result,str):
|
|
648
658
|
if get_config_value(_AP,number=_A):macro_definitions[SBDL_Parser.Macros.define]=define_directive;macro_definitions[SBDL_Parser.Macros.define_append]=define_directive_append;macro_definitions[SBDL_Parser.Macros.define_from_func]=define_directive_from_function;macro_definitions[SBDL_Parser.Macros.define_from_index]=define_directive_from_index;macro_definitions[SBDL_Parser.Macros.define_from_file]=define_directive_from_file;macro_definitions[SBDL_Parser.Macros.define_from_file_hash]=define_directive_from_file_hash
|
|
649
659
|
else:macro_definitions.pop(SBDL_Parser.Macros.define,_B);macro_definitions.pop(SBDL_Parser.Macros.define_append,_B);macro_definitions.pop(SBDL_Parser.Macros.define_from_func,_B);macro_definitions.pop(SBDL_Parser.Macros.define_from_index,_B);macro_definitions.pop(SBDL_Parser.Macros.define_from_file,_B);macro_definitions.pop(SBDL_Parser.Macros.define_from_file_hash,_B)
|
|
@@ -668,7 +678,7 @@ class SBDL_Parser:
|
|
|
668
678
|
print_l(B.format('[Index Not Found]'),debug=_A);errors+=1
|
|
669
679
|
if throw_error:raise self.MacroReplaceException('Attempted replacement for non-existent definition index: "{}:{}"'.format(macro,index_fudge))
|
|
670
680
|
print_l('C_DEF REPLACE: "{}" --> "{}"'.format(input_str,replace_content),debug=_A)
|
|
671
|
-
if replace_content!=_B and replace_content!=str(_B)and errors==0:result=result.replace(amatch,str(replace_content))
|
|
681
|
+
if replace_content!=_B and replace_content!=str(_B)and errors==0:result=result.replace(amatch,str(smart_flatten_macro_definition(replace_content)))
|
|
672
682
|
else:
|
|
673
683
|
print_l(B.format('[Definition Not Found]'),debug=_A);errors+=1
|
|
674
684
|
if throw_error:raise self.MacroReplaceException('Attempted replacement for non-existent definition: "{}"'.format(macro),first_pass_can_ignore=_A)
|
sbdl-1.18.1/PKG-INFO
DELETED
|
File without changes
|
{sbdl-1.18.1 → sbdl-1.18.3}/sbdl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|