string-to-code 0.2.8__py3-none-any.whl → 0.2.10__py3-none-any.whl

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.
@@ -57,7 +57,7 @@ def get_merge_to_full_function(in_function_prefix):
57
57
 
58
58
 
59
59
  def get_main_call_fun(in_call_function_or_atom):
60
- """returns function returing code of main C or C++ function"""
60
+ """returns function returning code of main C or C++ function"""
61
61
 
62
62
  def _main_call(in_initial_call, **kwargs):
63
63
  initial_call_str = (
string_to_code/core.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  core functions of the string_to_code module
3
3
  """
4
+
4
5
  import typing
5
6
  import collections.abc
6
7
  import random
@@ -32,7 +33,7 @@ SimpleFunctions: typing.TypeAlias = typing.List[SimpleFunction]
32
33
 
33
34
 
34
35
  def str_pieces(in_str: str, in_pieces_len: typing.List[int]) -> Strings:
35
- """returns in_str splited into pieces of lengths as in in_pieces_len"""
36
+ """returns in_str split into pieces of lengths as in in_pieces_len"""
36
37
  assert all(_ > 0 for _ in in_pieces_len)
37
38
  assert sum(in_pieces_len) == len(in_str)
38
39
  cur_str = in_str
@@ -73,7 +74,7 @@ def _interesting_random_split(in_str: str) -> Strings:
73
74
  def get_function_namer(
74
75
  in_name_prefix: str = "f_",
75
76
  ) -> collections.abc.Callable[[int], str]:
76
- """returns a defult function namer"""
77
+ """returns a default function namer"""
77
78
 
78
79
  def _inner(in_id: int) -> str:
79
80
  return in_name_prefix + str(in_id)
@@ -146,5 +147,5 @@ class PrinterProgram:
146
147
 
147
148
 
148
149
  def get_printer_program(in_str: str) -> PrinterProgram:
149
- """returns a PrinterProgram object diplaying in_str"""
150
+ """returns a PrinterProgram object displaying in_str"""
150
151
  return PrinterProgram(*_prepare_printer_program(in_str))
@@ -3,6 +3,7 @@ Provides utilities related to:
3
3
  - querying available target languages,
4
4
  - calling proc-like functions, where target language is specified programmatically
5
5
  """
6
+
6
7
  import pathlib
7
8
  import importlib
8
9
 
string_to_code/to_ada.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_ada utilities
3
3
  """
4
+
4
5
  from . import utils
5
6
  from . import core
6
7
 
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_algol68 utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
 
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_ballereina utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
  from . import c_like_utils
string_to_code/to_bash.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_bash utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
 
string_to_code/to_c.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_c utilities
3
3
  """
4
+
4
5
  from . import utils
5
6
  from . import c_like_utils
6
7
 
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_cobol utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
 
string_to_code/to_cpp.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_cpp utilities
3
3
  """
4
+
4
5
  from . import utils
5
6
  from . import c_like_utils
6
7
 
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_haskell utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
 
string_to_code/to_java.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_java utilities
3
3
  """
4
+
4
5
  from . import utils
5
6
  from . import c_like_utils
6
7
 
string_to_code/to_lisp.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_lisp utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
 
string_to_code/to_nim.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_nim utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
  from . import c_like_utils
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_pascal utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
  from . import c_like_utils
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_python utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
 
string_to_code/to_rust.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  provides string_to_rust utilities
3
3
  """
4
+
4
5
  from . import core
5
6
  from . import utils
6
7
  from . import c_like_utils
string_to_code/utils.py CHANGED
@@ -6,7 +6,7 @@ from . import core
6
6
 
7
7
 
8
8
  def get_function_name_fun(in_prefix: str = "fun_"):
9
- """returns a function returing a function name based on id"""
9
+ """returns a function returning a function name based on id"""
10
10
 
11
11
  def _get_function_name(in_function_id: int, **kwargs) -> str:
12
12
  return kwargs.get("function_id_to_name", core.get_function_namer(in_prefix))(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: string-to-code
3
- Version: 0.2.8
3
+ Version: 0.2.10
4
4
  Summary: Generates a piece of messy code in a given language displaying a given string
5
5
  Home-page: https://github.com/vil02/string_to_code_proj
6
6
  License: MIT
@@ -0,0 +1,24 @@
1
+ string_to_code/README.md,sha256=A8BkDQpr-Os630YfGnaU-i_kigyVB8bNLhvLfIyzQR8,1225
2
+ string_to_code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ string_to_code/c_like_utils.py,sha256=YiRkzo1e4oKAnWjUkgEy6rxkOYb1VlFVFz52otFR4AQ,2092
4
+ string_to_code/core.py,sha256=VCiXEf7ojoc_1lxTiYlU3rav7Xcl-CGtUPuxSjYncuA,4351
5
+ string_to_code/string_to_code.py,sha256=q0IyBfeDeDI2SCwlBOM_hwHdBfF1YQ7gn642o6cHU94,1290
6
+ string_to_code/to_ada.py,sha256=cGZ8VFdAZkGYKGzEOEsAndGzfUt4bSCmZfQP04sAOF8,2265
7
+ string_to_code/to_algol68.py,sha256=Y1jvfI5xbk-PHVWYW7KG7gSIUU5GPt7gjeaMuM6JIIQ,1642
8
+ string_to_code/to_ballerina.py,sha256=Z8F8r9hLZ5mvHzsjT5XDx_2cDlojBzva7UZcrMIQca0,1876
9
+ string_to_code/to_bash.py,sha256=FJI2WTYO0gDDFSyRwHwERuLFKqOBX79y4xsXa_K_5D4,1634
10
+ string_to_code/to_c.py,sha256=CeCzih5WoNABUg4dgps82wG783H8nW3FHj-69HZ5iOU,1008
11
+ string_to_code/to_cobol.py,sha256=eOWf6I5paH4eBpwUxmgrNN9AoBPFr0weYmeJe2CkEzk,2130
12
+ string_to_code/to_cpp.py,sha256=PJYScszyoSToyHmVbWvrNFtZsRkDWFaPg49Ug0xlnzk,1026
13
+ string_to_code/to_haskell.py,sha256=8Qp-tOraIoMolCafRbs1d78jghM5wxJJkw8b5LaTyeU,1949
14
+ string_to_code/to_java.py,sha256=63LPDTrMqnukXMW0XHVX6aXHq-63NckQLiG3YmdaAYg,1865
15
+ string_to_code/to_lisp.py,sha256=BKkJorzyAbSmmOUt3otqHAapjOR6GblMM-ymekga1wY,1605
16
+ string_to_code/to_nim.py,sha256=W74i6MRjQ5eYeatGyMwE-wYNEzN06l5oOXBv3lfbXgM,1534
17
+ string_to_code/to_pascal.py,sha256=ZwOJgi3saoNP2_H7ZWpQykPg8c-jP-L8eOw_Zz2q8uc,1922
18
+ string_to_code/to_python3.py,sha256=BJwjyhRB2IBOE3-xwkkMV3vZU-e2xreppYBKQeA1whg,1589
19
+ string_to_code/to_rust.py,sha256=hTCjlortLhR7FwsBgbrFRcwXpKWA6ed2UYnz1OK8R7I,1926
20
+ string_to_code/utils.py,sha256=m1QExBHCD3q-Tjkfl3HiFgjZUbPISZYIYOcr-FB0HGU,3504
21
+ string_to_code-0.2.10.dist-info/LICENSE,sha256=LQrcSkcUyN1FtFYDxWK05puxNN9o2q8PV-_2SwFDTWc,1068
22
+ string_to_code-0.2.10.dist-info/METADATA,sha256=482iLKXvXjtYG41tnW2A6qgbOjGW6FyJ-g6P5pR1Rbw,1850
23
+ string_to_code-0.2.10.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
24
+ string_to_code-0.2.10.dist-info/RECORD,,
@@ -1,24 +0,0 @@
1
- string_to_code/README.md,sha256=A8BkDQpr-Os630YfGnaU-i_kigyVB8bNLhvLfIyzQR8,1225
2
- string_to_code/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- string_to_code/c_like_utils.py,sha256=G2HMxU6J9Lczv28yTNJSXLAeTyOHY1RV6gKltvf1h1E,2091
4
- string_to_code/core.py,sha256=oZg32ZUt_vSi1d58I-5aWd-ecXuQ8BUMOoWuozTRVUA,4350
5
- string_to_code/string_to_code.py,sha256=-znyFXS5jHin2MlqB5sKQ4tcDmcJjrbvw_qjX0PMow8,1289
6
- string_to_code/to_ada.py,sha256=-QUNxghg4KcZzqya0YgBoHJnFA2aYwnjw28Qec-EqJc,2264
7
- string_to_code/to_algol68.py,sha256=ENxJbUKIL-iOXz3QrhXdGVUhrv5b_Ogjt_1NLrYbZjY,1641
8
- string_to_code/to_ballerina.py,sha256=IocFGqWvSZ2vwEjp0WmGcbgHZsMtVNEtIsenV-kr2FM,1875
9
- string_to_code/to_bash.py,sha256=VfvtSmzqacOHVaZf8t8z7l0OKsT6qmEnq7gvgu5LCTY,1633
10
- string_to_code/to_c.py,sha256=jZWxRPCfOglGDh92CN7ndsBPIkkJ80GQVgYG-_nrzYY,1007
11
- string_to_code/to_cobol.py,sha256=KlO7t2AuEph0nH76HBZ4rTxR5tQecvWhfqvpM2vOpbE,2129
12
- string_to_code/to_cpp.py,sha256=mBtaByTuwhaEoSXBNmSOWxZ213ZRfY7Y3-hDUVaMZE0,1025
13
- string_to_code/to_haskell.py,sha256=8JEo-hbPLalx4WW184FhPPYlF14sOL_KYxHGJ21FMIo,1948
14
- string_to_code/to_java.py,sha256=4SIj3lojYZYIEiS7DyUm7Dv16XQ8wBcFn6KCO7_W0p0,1864
15
- string_to_code/to_lisp.py,sha256=66iBMh51eTaWP8NPuaRNC5e8g14CaleRVyHo8GPqqwQ,1604
16
- string_to_code/to_nim.py,sha256=QolGTXNj764qZOEkYJ0uSBhda1tdQCgnYqgUqyrVTMw,1533
17
- string_to_code/to_pascal.py,sha256=EQ1wUQ-jz5frIB0_OQ3h2v8BDitzKFhVsey_xlX3XMg,1921
18
- string_to_code/to_python3.py,sha256=ZLU29deSg-rsfR5HmlB5ZCH2pURGmGFdNDfcIZ_DdNU,1588
19
- string_to_code/to_rust.py,sha256=xbkKKhvFxbOBtSgh-5_hGJ8zSBDt4vNIqEiJW9JsoXw,1925
20
- string_to_code/utils.py,sha256=HXuN3UAxkt6YdC-4vNLDX4GfnISdCXSd-LMeOyg43DQ,3503
21
- string_to_code-0.2.8.dist-info/LICENSE,sha256=LQrcSkcUyN1FtFYDxWK05puxNN9o2q8PV-_2SwFDTWc,1068
22
- string_to_code-0.2.8.dist-info/METADATA,sha256=F9zcbov8PnBKO0lTcfamqtNz3ApcWwkGwkt-5HCirNw,1849
23
- string_to_code-0.2.8.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
24
- string_to_code-0.2.8.dist-info/RECORD,,