omlish 0.0.0.dev267__py3-none-any.whl → 0.0.0.dev269__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.
Files changed (34) hide show
  1. omlish/__about__.py +2 -2
  2. omlish/dataclasses/__init__.py +7 -0
  3. omlish/dataclasses/impl/metaclass.py +1 -0
  4. omlish/dataclasses/impl/simple.py +1 -1
  5. omlish/formats/toml/parser.py +593 -594
  6. omlish/lang/classes/abstract.py +3 -0
  7. omlish/lang/comparison.py +3 -0
  8. omlish/lang/datetimes.py +3 -0
  9. omlish/lang/generators.py +2 -2
  10. omlish/lang/maybes.py +3 -0
  11. omlish/lang/resolving.py +3 -0
  12. omlish/lang/sys.py +3 -0
  13. omlish/marshal/objects/dataclasses.py +1 -1
  14. omlish/marshal/polymorphism/metadata.py +9 -3
  15. omlish/sql/alchemy/__init__.py +31 -0
  16. omlish/sql/alchemy/apiadapter.py +121 -0
  17. omlish/sql/api/__init__.py +39 -0
  18. omlish/sql/api/base.py +1 -0
  19. omlish/sql/parsing/parsing.py +1 -1
  20. omlish/sql/queries/__init__.py +4 -0
  21. omlish/sql/queries/base.py +113 -2
  22. omlish/sql/queries/exprs.py +15 -2
  23. omlish/sql/queries/inserts.py +2 -1
  24. omlish/sql/queries/marshal.py +7 -1
  25. omlish/sql/queries/params.py +3 -2
  26. omlish/sql/queries/rendering.py +16 -4
  27. omlish/sql/queries/selects.py +17 -2
  28. omlish/testing/testing.py +0 -1
  29. {omlish-0.0.0.dev267.dist-info → omlish-0.0.0.dev269.dist-info}/METADATA +1 -1
  30. {omlish-0.0.0.dev267.dist-info → omlish-0.0.0.dev269.dist-info}/RECORD +34 -33
  31. {omlish-0.0.0.dev267.dist-info → omlish-0.0.0.dev269.dist-info}/WHEEL +0 -0
  32. {omlish-0.0.0.dev267.dist-info → omlish-0.0.0.dev269.dist-info}/entry_points.txt +0 -0
  33. {omlish-0.0.0.dev267.dist-info → omlish-0.0.0.dev269.dist-info}/licenses/LICENSE +0 -0
  34. {omlish-0.0.0.dev267.dist-info → omlish-0.0.0.dev269.dist-info}/top_level.txt +0 -0
omlish/__about__.py CHANGED
@@ -1,5 +1,5 @@
1
- __version__ = '0.0.0.dev267'
2
- __revision__ = '9dca65827e8e4dae7ca1296a78c7a4d88a946259'
1
+ __version__ = '0.0.0.dev269'
2
+ __revision__ = 'af5e4b0620a8094b2e2ddbeb4b54f37eaddc0fc2'
3
3
 
4
4
 
5
5
  #
@@ -39,6 +39,13 @@ from .impl.as_ import ( # noqa
39
39
  from .impl.params import ( # noqa
40
40
  FieldExtras,
41
41
  get_field_extras,
42
+
43
+ get_params,
44
+
45
+ get_params_extras,
46
+
47
+ MetaclassParams,
48
+ get_metaclass_params,
42
49
  )
43
50
 
44
51
  from .impl.replace import ( # noqa
@@ -25,6 +25,7 @@ T = ta.TypeVar('T')
25
25
 
26
26
 
27
27
  _CONFER_PARAMS: tuple[str, ...] = (
28
+ 'eq',
28
29
  'frozen',
29
30
  'kw_only',
30
31
  )
@@ -15,7 +15,7 @@ class EqProcessor(Processor):
15
15
  # self_tuple = tuple_str('self', flds)
16
16
  # other_tuple = tuple_str('other', flds)
17
17
  # set_new_attribute(cls, '__eq__', _cmp_fn('__eq__', '==', self_tuple, other_tuple, globals=globals))
18
- cmp_fields = (field for field in self._info.instance_fields if field.compare)
18
+ cmp_fields = [field for field in self._info.instance_fields if field.compare]
19
19
  terms = [f'self.{field.name} == other.{field.name}' for field in cmp_fields]
20
20
  field_comparisons = ' and '.join(terms) or 'True'
21
21
  body = [