tiferet 1.0.0a0__py3-none-any.whl → 1.0.0a2__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 (43) hide show
  1. {app → tiferet}/configs/app.py +1 -1
  2. {app → tiferet}/contexts/container.py +2 -3
  3. {app → tiferet}/domain/app.py +7 -7
  4. {tiferet-1.0.0a0.dist-info → tiferet-1.0.0a2.dist-info}/METADATA +1 -1
  5. tiferet-1.0.0a2.dist-info/RECORD +40 -0
  6. tiferet-1.0.0a2.dist-info/top_level.txt +1 -0
  7. app/configs/container.py +0 -91
  8. tiferet-1.0.0a0.dist-info/RECORD +0 -41
  9. tiferet-1.0.0a0.dist-info/top_level.txt +0 -1
  10. {app → tiferet}/__init__.py +0 -0
  11. {app → tiferet}/clients/__init__.py +0 -0
  12. {app → tiferet}/clients/yaml.py +0 -0
  13. {app → tiferet}/commands/__init__.py +0 -0
  14. {app → tiferet}/commands/container.py +0 -0
  15. {app → tiferet}/commands/error.py +0 -0
  16. {app → tiferet}/commands/feature.py +0 -0
  17. {app → tiferet}/configs/__init__.py +0 -0
  18. {app → tiferet}/contexts/__init__.py +0 -0
  19. {app → tiferet}/contexts/app.py +0 -0
  20. {app → tiferet}/contexts/env.py +0 -0
  21. {app → tiferet}/contexts/error.py +0 -0
  22. {app → tiferet}/contexts/feature.py +0 -0
  23. {app → tiferet}/contexts/request.py +0 -0
  24. {app → tiferet}/data/__init__.py +0 -0
  25. {app → tiferet}/data/app.py +0 -0
  26. {app → tiferet}/data/container.py +0 -0
  27. {app → tiferet}/data/error.py +0 -0
  28. {app → tiferet}/data/feature.py +0 -0
  29. {app → tiferet}/domain/__init__.py +0 -0
  30. {app → tiferet}/domain/container.py +0 -0
  31. {app → tiferet}/domain/core.py +0 -0
  32. {app → tiferet}/domain/error.py +0 -0
  33. {app → tiferet}/domain/feature.py +0 -0
  34. {app → tiferet}/repos/__init__.py +0 -0
  35. {app → tiferet}/repos/app.py +0 -0
  36. {app → tiferet}/repos/container.py +0 -0
  37. {app → tiferet}/repos/error.py +0 -0
  38. {app → tiferet}/repos/feature.py +0 -0
  39. {app → tiferet}/services/__init__.py +0 -0
  40. {app → tiferet}/services/cli.py +0 -0
  41. {app → tiferet}/services/container.py +0 -0
  42. {tiferet-1.0.0a0.dist-info → tiferet-1.0.0a2.dist-info}/LICENSE +0 -0
  43. {tiferet-1.0.0a0.dist-info → tiferet-1.0.0a2.dist-info}/WHEEL +0 -0
@@ -8,7 +8,7 @@ from ..domain.app import AppRepositoryConfiguration
8
8
 
9
9
  # ** constant: APP_REPO
10
10
  APP_REPO = AppRepositoryConfiguration.new(
11
- module_path='app.repositories.app',
11
+ module_path='tiferet.repos.app',
12
12
  class_name='YamlProxy',
13
13
  params=dict(
14
14
  app_config_file='app/configs/app.yaml'
@@ -4,7 +4,6 @@
4
4
  from typing import Any
5
5
 
6
6
  # ** app
7
- from ..configs import container
8
7
  from ..domain import *
9
8
  from ..services import container_service
10
9
  from ..repos.container import ContainerRepository
@@ -76,8 +75,8 @@ class ContainerContext(Model):
76
75
  self.feature_flag = feature_flag
77
76
  self.data_flag = data_flag
78
77
 
79
- # Add the default container attributes first if any.
80
- self.attributes = vars(container)
78
+ # Add the attributes as an empty dictionary.
79
+ self.attributes = {}
81
80
 
82
81
  # Get and set attributes and constants.
83
82
  attrs, consts = container_repo.list_all()
@@ -88,7 +88,7 @@ class AppInterface(Entity):
88
88
  required=True,
89
89
  default=AppDependency.new(
90
90
  attribute_id='feature_context',
91
- module_path='app.contexts.feature',
91
+ module_path='tiferet.contexts.feature',
92
92
  class_name='FeatureContext',
93
93
  ),
94
94
  metadata=dict(
@@ -102,7 +102,7 @@ class AppInterface(Entity):
102
102
  required=True,
103
103
  default=AppDependency.new(
104
104
  attribute_id='container_context',
105
- module_path='app.contexts.container',
105
+ module_path='tiferet.contexts.container',
106
106
  class_name='ContainerContext',
107
107
  ),
108
108
  metadata=dict(
@@ -116,7 +116,7 @@ class AppInterface(Entity):
116
116
  required=True,
117
117
  default=AppDependency.new(
118
118
  attribute_id='error_context',
119
- module_path='app.contexts.error',
119
+ module_path='tiferet.contexts.error',
120
120
  class_name='ErrorContext',
121
121
  ),
122
122
  metadata=dict(
@@ -130,7 +130,7 @@ class AppInterface(Entity):
130
130
  required=True,
131
131
  default=AppDependency.new(
132
132
  attribute_id='feature_repo',
133
- module_path='app.repositories.feature',
133
+ module_path='tiferet.repos.feature',
134
134
  class_name='FeatureRepository',
135
135
  ),
136
136
  metadata=dict(
@@ -144,7 +144,7 @@ class AppInterface(Entity):
144
144
  required=True,
145
145
  default=AppDependency.new(
146
146
  attribute_id='container_repo',
147
- module_path='app.repositories.container',
147
+ module_path='tiferet.repos.container',
148
148
  class_name='ContainerRepository',
149
149
  ),
150
150
  metadata=dict(
@@ -158,7 +158,7 @@ class AppInterface(Entity):
158
158
  required=True,
159
159
  default=AppDependency.new(
160
160
  attribute_id='error_repo',
161
- module_path='app.repositories.error',
161
+ module_path='tiferet.repos.error',
162
162
  class_name='ErrorRepository',
163
163
  ),
164
164
  metadata=dict(
@@ -227,7 +227,7 @@ class AppRepositoryConfiguration(ModuleDependency):
227
227
  # * attribute: module_path
228
228
  module_path = StringType(
229
229
  required=True,
230
- default='app.repositories.app',
230
+ default='tiferet.repos.app',
231
231
  metadata=dict(
232
232
  description='The module path for the application repository.'
233
233
  ),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tiferet
3
- Version: 1.0.0a0
3
+ Version: 1.0.0a2
4
4
  Summary: A multi-purpose application framework embodying beauty in form.
5
5
  Home-page: https://github.com/greatstrength/app
6
6
  Download-URL: https://github.com/greatstrength/app
@@ -0,0 +1,40 @@
1
+ tiferet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ tiferet/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tiferet/clients/yaml.py,sha256=-Eo8PX2oPpVxv1c-cpkNOrGhxx9T7XPYoAyGi1DxMi4,2454
4
+ tiferet/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ tiferet/commands/container.py,sha256=L2IKJqEbRglw_LC144oYAkARr2Rixj8IFuC6Ro1jAqA,1789
6
+ tiferet/commands/error.py,sha256=ixMYH0yrEWlMAVGDSRke3IGoWaOShfmiXntrUC2b3wY,573
7
+ tiferet/commands/feature.py,sha256=tXa-MDf14ByIJqwQFeSUu2QLUjHPdsyvFNhj1XeaQVk,2507
8
+ tiferet/configs/__init__.py,sha256=NfT6XFNcJznOLXjMuNmj3XeaOPVWwbc-N4kVWaVjuD0,845
9
+ tiferet/configs/app.py,sha256=XMBbwHS2y_Wm-scxVJ2mcAtBy0cRj5e0WLbi1F3R1Q4,299
10
+ tiferet/contexts/__init__.py,sha256=0HzyDBIyyF8fZ0gOXekzfzHWVkbLFUx9eLLzuooEzFs,63
11
+ tiferet/contexts/app.py,sha256=MPRFu3ut7DOmc3i3PqLR96ymvWMShW6BUbY9eG8i6Eg,3296
12
+ tiferet/contexts/container.py,sha256=zGCGm1lF0mI6AmEa9WK-N_Gwyv1oHSqUCOmLnkqvFyc,4871
13
+ tiferet/contexts/env.py,sha256=bbvZzDy075SuKL2ZIfDEE5yD1Hbk-4XLGe4eC_tT8e8,3080
14
+ tiferet/contexts/error.py,sha256=VO3Wgkmf5bdK6LoT0xhQn1WeSAVulQwUhvBAsoUPd1c,2503
15
+ tiferet/contexts/feature.py,sha256=u7wEhdfTLeWKIv5i2nzBcu4cAcVkm6iqNNznczPmHjc,2293
16
+ tiferet/contexts/request.py,sha256=TOECa0V1wKuNGCYFIRKxwsZVpLtP0FS_Nm96DaEVsWU,2726
17
+ tiferet/data/__init__.py,sha256=ts3bkFftArKTgUJj7q65Sob4fC6jOqfYNxm6cqjFr_w,74
18
+ tiferet/data/app.py,sha256=8kv7tDJUjl70bqdpiMXXs6e89zDQIvtlDSOq42iyyX0,6312
19
+ tiferet/data/container.py,sha256=jTQlT4D-lLC_QLNAmMara6O78g667GXk1LU_EyuX_HU,5180
20
+ tiferet/data/error.py,sha256=lfGO3SjtsxSv6d7iKDeVw3vXfocCk29g4-uwC3jnaig,2377
21
+ tiferet/data/feature.py,sha256=s_aqVYhH7VKzXpWM3d-uvSv3_r8A0LgObv3Agg-CKoc,3697
22
+ tiferet/domain/__init__.py,sha256=uC1lHXzRnpoHqfgPcUraea5F_T1Nsx0wBau0paslsQg,146
23
+ tiferet/domain/app.py,sha256=2iEjj74o_VJt2kHwJLgQkGrDtFywyWjX4fUF0meYSOQ,8528
24
+ tiferet/domain/container.py,sha256=Kw_xNn5_tWghcx3Dl_vPEdwZ2b8u23ZpbgMQ_bkUKaw,3666
25
+ tiferet/domain/core.py,sha256=a1nJvH7bCqP_JvGrkMDClH8nef2L3WHpmTV6ksmdZ4c,4600
26
+ tiferet/domain/error.py,sha256=myUpdB4rgmbVBwIP8Pa88uastTSjPFGqrSwqR9C-VYg,3371
27
+ tiferet/domain/feature.py,sha256=RhedOKb8nG1D0J9b_aPVtJc_rQjLXwOpwpIsmzrH21o,4552
28
+ tiferet/repos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
+ tiferet/repos/app.py,sha256=VptevFxeST5slbk_em7dazXgz5U8f_XLDsGdM0Gq3qE,2696
30
+ tiferet/repos/container.py,sha256=2Medggn4BZrelnZ-cDZfFFwHaDB80R7iFJ5OF-6E62g,4811
31
+ tiferet/repos/error.py,sha256=c3Bs2QTktMuJWGSRF8rKeTN5vFEsaOycUdYD7QSIDEc,4224
32
+ tiferet/repos/feature.py,sha256=uR4s-n28J4WCO4Npi6AzOxk5R9I6HuUMHDzoK1Xo_80,4361
33
+ tiferet/services/__init__.py,sha256=CIyUCm2oFrhZvCLPCPz3UG-eghdkIBgqayxoOr-QrdE,151
34
+ tiferet/services/cli.py,sha256=aqrn7kxqe2xTJWBSs5hDiyD0ND50mPVDIJf_C87YgRk,5364
35
+ tiferet/services/container.py,sha256=yZU09pziCMz74UIRqiM_gHNqNE4Hml555WEuNoJlEDA,1048
36
+ tiferet-1.0.0a2.dist-info/LICENSE,sha256=e8_GutFM0sxbRlgUaeVsGvJ5uE-KvruLApOzIoHy_zU,1513
37
+ tiferet-1.0.0a2.dist-info/METADATA,sha256=e3DgHkPSVMV_DChs1vgru2iwfIYWdmZavd4MjOYx5JE,386
38
+ tiferet-1.0.0a2.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
39
+ tiferet-1.0.0a2.dist-info/top_level.txt,sha256=g19Qw0j_VxPw-fgPF1TMPwbtHjnEhNQs0fa69wJZ6IM,8
40
+ tiferet-1.0.0a2.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ tiferet
app/configs/container.py DELETED
@@ -1,91 +0,0 @@
1
- # *** imports
2
-
3
- # ** app
4
- from ..domain.container import ContainerAttribute, ContainerDependency
5
-
6
-
7
- # *** configs (container_attribute)
8
-
9
- # ** config: feature_repo
10
- feature_repo = ContainerAttribute.new(
11
- id='feature_repo',
12
- type='data',
13
- flags=[
14
- ContainerDependency.new(
15
- flag='yaml',
16
- module_path='app.repositories.feature',
17
- class_name='YamlProxy',
18
- parameters={
19
- 'feature_config_file': 'app/configs/features.yml'
20
- }
21
- )
22
- ]
23
- )
24
-
25
- # ** config: error_repo
26
- error_repo = ContainerAttribute.new(
27
- id='error_repo',
28
- type='data',
29
- flags=[
30
- ContainerDependency.new(
31
- flag='yaml',
32
- module_path='app.repositories.error',
33
- class_name='YamlProxy',
34
- parameters={
35
- 'error_config_file': 'app/configs/errors.yml'
36
- }
37
- )
38
- ]
39
- )
40
-
41
- # ** config: set_container_attribute
42
- set_container_attribute = ContainerAttribute.new(
43
- id='set_container_attribute',
44
- type='feature',
45
- flags=[
46
- ContainerDependency.new(
47
- flag='core',
48
- module_path='app.commands.container',
49
- class_name='SetContainerAttribute'
50
- )
51
- ]
52
- )
53
-
54
- # ** config: add_new_feature
55
- add_new_feature = ContainerAttribute.new(
56
- id='add_new_feature',
57
- type='feature',
58
- flags=[
59
- ContainerDependency.new(
60
- flag='core',
61
- module_path='app.commands.feature',
62
- class_name='AddNewFeature'
63
- )
64
- ]
65
- )
66
-
67
- # ** config: add_feature_command
68
- add_feature_command = ContainerAttribute.new(
69
- id='add_feature_command',
70
- type='feature',
71
- flags=[
72
- ContainerDependency.new(
73
- flag='core',
74
- module_path='app.commands.feature',
75
- class_name='AddFeatureCommand'
76
- )
77
- ]
78
- )
79
-
80
- # ** config: add_new_error
81
- add_new_error = ContainerAttribute.new(
82
- id='add_new_error',
83
- type='feature',
84
- flags=[
85
- ContainerDependency.new(
86
- flag='core',
87
- module_path='app.commands.error',
88
- class_name='AddNewError'
89
- )
90
- ]
91
- )
@@ -1,41 +0,0 @@
1
- app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- app/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- app/clients/yaml.py,sha256=-Eo8PX2oPpVxv1c-cpkNOrGhxx9T7XPYoAyGi1DxMi4,2454
4
- app/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- app/commands/container.py,sha256=L2IKJqEbRglw_LC144oYAkARr2Rixj8IFuC6Ro1jAqA,1789
6
- app/commands/error.py,sha256=ixMYH0yrEWlMAVGDSRke3IGoWaOShfmiXntrUC2b3wY,573
7
- app/commands/feature.py,sha256=tXa-MDf14ByIJqwQFeSUu2QLUjHPdsyvFNhj1XeaQVk,2507
8
- app/configs/__init__.py,sha256=NfT6XFNcJznOLXjMuNmj3XeaOPVWwbc-N4kVWaVjuD0,845
9
- app/configs/app.py,sha256=YWKVPTCaCVwpmTbdUdeZya-IfJvxxenGQpcUD7YbU54,302
10
- app/configs/container.py,sha256=x9JwWi7XRRnoVahf858REYNY3ZxCaznjGJUqoAK1FZs,2106
11
- app/contexts/__init__.py,sha256=0HzyDBIyyF8fZ0gOXekzfzHWVkbLFUx9eLLzuooEzFs,63
12
- app/contexts/app.py,sha256=MPRFu3ut7DOmc3i3PqLR96ymvWMShW6BUbY9eG8i6Eg,3296
13
- app/contexts/container.py,sha256=RI33tK9XF18PaUfOp64ddMZGOCMIy3XNgQMUtJ_jYNE,4924
14
- app/contexts/env.py,sha256=bbvZzDy075SuKL2ZIfDEE5yD1Hbk-4XLGe4eC_tT8e8,3080
15
- app/contexts/error.py,sha256=VO3Wgkmf5bdK6LoT0xhQn1WeSAVulQwUhvBAsoUPd1c,2503
16
- app/contexts/feature.py,sha256=u7wEhdfTLeWKIv5i2nzBcu4cAcVkm6iqNNznczPmHjc,2293
17
- app/contexts/request.py,sha256=TOECa0V1wKuNGCYFIRKxwsZVpLtP0FS_Nm96DaEVsWU,2726
18
- app/data/__init__.py,sha256=ts3bkFftArKTgUJj7q65Sob4fC6jOqfYNxm6cqjFr_w,74
19
- app/data/app.py,sha256=8kv7tDJUjl70bqdpiMXXs6e89zDQIvtlDSOq42iyyX0,6312
20
- app/data/container.py,sha256=jTQlT4D-lLC_QLNAmMara6O78g667GXk1LU_EyuX_HU,5180
21
- app/data/error.py,sha256=lfGO3SjtsxSv6d7iKDeVw3vXfocCk29g4-uwC3jnaig,2377
22
- app/data/feature.py,sha256=s_aqVYhH7VKzXpWM3d-uvSv3_r8A0LgObv3Agg-CKoc,3697
23
- app/domain/__init__.py,sha256=uC1lHXzRnpoHqfgPcUraea5F_T1Nsx0wBau0paslsQg,146
24
- app/domain/app.py,sha256=t_TcemJfpSa_CQfjcSfRRo2iFS1ilanfpHTiHx1vM8w,8528
25
- app/domain/container.py,sha256=Kw_xNn5_tWghcx3Dl_vPEdwZ2b8u23ZpbgMQ_bkUKaw,3666
26
- app/domain/core.py,sha256=a1nJvH7bCqP_JvGrkMDClH8nef2L3WHpmTV6ksmdZ4c,4600
27
- app/domain/error.py,sha256=myUpdB4rgmbVBwIP8Pa88uastTSjPFGqrSwqR9C-VYg,3371
28
- app/domain/feature.py,sha256=RhedOKb8nG1D0J9b_aPVtJc_rQjLXwOpwpIsmzrH21o,4552
29
- app/repos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- app/repos/app.py,sha256=VptevFxeST5slbk_em7dazXgz5U8f_XLDsGdM0Gq3qE,2696
31
- app/repos/container.py,sha256=2Medggn4BZrelnZ-cDZfFFwHaDB80R7iFJ5OF-6E62g,4811
32
- app/repos/error.py,sha256=c3Bs2QTktMuJWGSRF8rKeTN5vFEsaOycUdYD7QSIDEc,4224
33
- app/repos/feature.py,sha256=uR4s-n28J4WCO4Npi6AzOxk5R9I6HuUMHDzoK1Xo_80,4361
34
- app/services/__init__.py,sha256=CIyUCm2oFrhZvCLPCPz3UG-eghdkIBgqayxoOr-QrdE,151
35
- app/services/cli.py,sha256=aqrn7kxqe2xTJWBSs5hDiyD0ND50mPVDIJf_C87YgRk,5364
36
- app/services/container.py,sha256=yZU09pziCMz74UIRqiM_gHNqNE4Hml555WEuNoJlEDA,1048
37
- tiferet-1.0.0a0.dist-info/LICENSE,sha256=e8_GutFM0sxbRlgUaeVsGvJ5uE-KvruLApOzIoHy_zU,1513
38
- tiferet-1.0.0a0.dist-info/METADATA,sha256=kxGZQgEojSufeAWAvLtuL0RV4-Z58KIBcI9hUkbQ5kE,386
39
- tiferet-1.0.0a0.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
40
- tiferet-1.0.0a0.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
41
- tiferet-1.0.0a0.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- app
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes