valar 1.2.4__tar.gz → 1.2.5__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.

Potentially problematic release.


This version of valar might be problematic. Click here for more details.

Files changed (52) hide show
  1. {valar-1.2.4/src/valar.egg-info → valar-1.2.5}/PKG-INFO +23 -13
  2. {valar-1.2.4 → valar-1.2.5}/README.md +22 -12
  3. {valar-1.2.4 → valar-1.2.5}/setup.py +1 -1
  4. {valar-1.2.4 → valar-1.2.5/src/valar.egg-info}/PKG-INFO +23 -13
  5. {valar-1.2.4 → valar-1.2.5}/LICENSE +0 -0
  6. {valar-1.2.4 → valar-1.2.5}/setup.cfg +0 -0
  7. {valar-1.2.4 → valar-1.2.5}/src/valar/__init__.py +0 -0
  8. {valar-1.2.4 → valar-1.2.5}/src/valar/apps.py +0 -0
  9. {valar-1.2.4 → valar-1.2.5}/src/valar/channels/__init__.py +0 -0
  10. {valar-1.2.4 → valar-1.2.5}/src/valar/channels/consumer.py +0 -0
  11. {valar-1.2.4 → valar-1.2.5}/src/valar/channels/counter.py +0 -0
  12. {valar-1.2.4 → valar-1.2.5}/src/valar/channels/executer.py +0 -0
  13. {valar-1.2.4 → valar-1.2.5}/src/valar/channels/mapping.py +0 -0
  14. {valar-1.2.4 → valar-1.2.5}/src/valar/channels/sender.py +0 -0
  15. {valar-1.2.4 → valar-1.2.5}/src/valar/channels/views.py +0 -0
  16. {valar-1.2.4 → valar-1.2.5}/src/valar/classes/__init__.py +0 -0
  17. {valar-1.2.4 → valar-1.2.5}/src/valar/classes/app_mixins/__init__.py +0 -0
  18. {valar-1.2.4 → valar-1.2.5}/src/valar/classes/app_mixins/auto_migration_mixin.py +0 -0
  19. {valar-1.2.4 → valar-1.2.5}/src/valar/classes/app_mixins/auto_urlpatterns_mixin.py +0 -0
  20. {valar-1.2.4 → valar-1.2.5}/src/valar/classes/singleton_meta.py +0 -0
  21. {valar-1.2.4 → valar-1.2.5}/src/valar/classes/valar_minio.py +0 -0
  22. {valar-1.2.4 → valar-1.2.5}/src/valar/classes/valar_response.py +0 -0
  23. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/__init__.py +0 -0
  24. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/abstract.py +0 -0
  25. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/defaults/__init__.py +0 -0
  26. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/defaults/field_keys_default.py +0 -0
  27. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/defaults/field_values_default.py +0 -0
  28. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/defaults/view_defaults.py +0 -0
  29. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/engine.py +0 -0
  30. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/frame.py +0 -0
  31. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/meta.py +0 -0
  32. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/mon_dao.py +0 -0
  33. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/mon_field.py +0 -0
  34. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/orm_dao.py +0 -0
  35. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/orm_field.py +0 -0
  36. {valar-1.2.4 → valar-1.2.5}/src/valar/dao/query.py +0 -0
  37. {valar-1.2.4 → valar-1.2.5}/src/valar/migrations/__init__.py +0 -0
  38. {valar-1.2.4 → valar-1.2.5}/src/valar/models/__init__.py +0 -0
  39. {valar-1.2.4 → valar-1.2.5}/src/valar/models/core.py +0 -0
  40. {valar-1.2.4 → valar-1.2.5}/src/valar/models/frame.py +0 -0
  41. {valar-1.2.4 → valar-1.2.5}/src/valar/models/meta.py +0 -0
  42. {valar-1.2.4 → valar-1.2.5}/src/valar/models/test.py +0 -0
  43. {valar-1.2.4 → valar-1.2.5}/src/valar/urls.py +0 -0
  44. {valar-1.2.4 → valar-1.2.5}/src/valar/views/__init__.py +0 -0
  45. {valar-1.2.4 → valar-1.2.5}/src/valar/views/file.py +0 -0
  46. {valar-1.2.4 → valar-1.2.5}/src/valar/views/handler.py +0 -0
  47. {valar-1.2.4 → valar-1.2.5}/src/valar/views/meta.py +0 -0
  48. {valar-1.2.4 → valar-1.2.5}/src/valar/views/rest.py +0 -0
  49. {valar-1.2.4 → valar-1.2.5}/src/valar.egg-info/SOURCES.txt +0 -0
  50. {valar-1.2.4 → valar-1.2.5}/src/valar.egg-info/dependency_links.txt +0 -0
  51. {valar-1.2.4 → valar-1.2.5}/src/valar.egg-info/requires.txt +0 -0
  52. {valar-1.2.4 → valar-1.2.5}/src/valar.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: valar
3
- Version: 1.2.4
3
+ Version: 1.2.5
4
4
  Summary: valar for morghulis
5
5
  Home-page: https://gitee.com/GRIFFIN120/valar_dev
6
6
  Author: LYP
@@ -30,11 +30,20 @@ valar for morghulis
30
30
 
31
31
  # 1. installation
32
32
 
33
+ - you need to install valar in a django project
34
+
33
35
  ```shell
34
36
  pip install valar
35
37
  ```
36
38
 
37
- # 1. settings
39
+ # 2. root app
40
+
41
+ - you only need 3 files in your root app
42
+ - settings.py
43
+ - asgi.py
44
+ - urls.py
45
+
46
+ ## 2.1 settings.py
38
47
 
39
48
  ```python
40
49
  from pathlib import Path
@@ -99,7 +108,7 @@ MINIO_ROOT = "https://host:9001"
99
108
 
100
109
  ```
101
110
 
102
- # 2. asgi
111
+ ## 2.2 asgi.py
103
112
 
104
113
  ```python
105
114
  from django.core.asgi import get_asgi_application
@@ -118,18 +127,19 @@ application = ProtocolTypeRouter({
118
127
 
119
128
  ```
120
129
 
121
- # 3. migrate
130
+ ## 2.3 urls.py
122
131
 
123
- - no need to makemigrations and migrate for valar, valar will auto migration
132
+ - no need to provide urls for Valar, Valar will auto set urlpatterns for Morghulis (
133
+ see https://www.npmjs.com/package/morghulis)
134
+ - go to section 4 to see how to register channel handlers (a Vue - Django async communication tool) in urls.
124
135
 
125
- # 4. root urls
136
+ # 3. migrate
126
137
 
127
- no need to provide urls for val, valar will auto set urlpatterns for Morghulis (
128
- see https://www.npmjs.com/package/morghulis)
138
+ - no need to makemigrations and migrate for valar, valar will auto migration
129
139
 
130
- # 5. how to register a channel handler for Morghulis async methods
140
+ # 4. how to register a channel handler for Morghulis async methods
131
141
 
132
- ## 5.1 create a handler
142
+ ## 4.1 create a handler
133
143
 
134
144
  ```python
135
145
  import time
@@ -148,7 +158,7 @@ def valar_test_handler(sender: ValarChannelSender):
148
158
  sender.load(tick)
149
159
  ```
150
160
 
151
- ### 5.2 create a dict (e.g. using the name 'channel_mapping') to save your handler
161
+ ### 4.2 create a dict (e.g. using the name 'channel_mapping') to save your handler
152
162
 
153
163
  - I'd like to put it in the root urls.py, you can put it anywhere
154
164
 
@@ -158,13 +168,13 @@ channel_mapping = {
158
168
  }
159
169
  ```
160
170
 
161
- ## 5.2 register the channel_mapping in the settings.py
171
+ ## 4.3 register the channel_mapping in the settings.py
162
172
 
163
173
  ```python
164
174
  HANDLER_MAPPING = "%s.urls.channel_mapping" % BASE_APP
165
175
  ```
166
176
 
167
- ### 5.4 you can copy the following codes to your urls.py
177
+ ### 4.4 you can copy the following codes to your urls.py
168
178
 
169
179
  ```python
170
180
  import json
@@ -2,11 +2,20 @@ valar for morghulis
2
2
 
3
3
  # 1. installation
4
4
 
5
+ - you need to install valar in a django project
6
+
5
7
  ```shell
6
8
  pip install valar
7
9
  ```
8
10
 
9
- # 1. settings
11
+ # 2. root app
12
+
13
+ - you only need 3 files in your root app
14
+ - settings.py
15
+ - asgi.py
16
+ - urls.py
17
+
18
+ ## 2.1 settings.py
10
19
 
11
20
  ```python
12
21
  from pathlib import Path
@@ -71,7 +80,7 @@ MINIO_ROOT = "https://host:9001"
71
80
 
72
81
  ```
73
82
 
74
- # 2. asgi
83
+ ## 2.2 asgi.py
75
84
 
76
85
  ```python
77
86
  from django.core.asgi import get_asgi_application
@@ -90,18 +99,19 @@ application = ProtocolTypeRouter({
90
99
 
91
100
  ```
92
101
 
93
- # 3. migrate
102
+ ## 2.3 urls.py
94
103
 
95
- - no need to makemigrations and migrate for valar, valar will auto migration
104
+ - no need to provide urls for Valar, Valar will auto set urlpatterns for Morghulis (
105
+ see https://www.npmjs.com/package/morghulis)
106
+ - go to section 4 to see how to register channel handlers (a Vue - Django async communication tool) in urls.
96
107
 
97
- # 4. root urls
108
+ # 3. migrate
98
109
 
99
- no need to provide urls for val, valar will auto set urlpatterns for Morghulis (
100
- see https://www.npmjs.com/package/morghulis)
110
+ - no need to makemigrations and migrate for valar, valar will auto migration
101
111
 
102
- # 5. how to register a channel handler for Morghulis async methods
112
+ # 4. how to register a channel handler for Morghulis async methods
103
113
 
104
- ## 5.1 create a handler
114
+ ## 4.1 create a handler
105
115
 
106
116
  ```python
107
117
  import time
@@ -120,7 +130,7 @@ def valar_test_handler(sender: ValarChannelSender):
120
130
  sender.load(tick)
121
131
  ```
122
132
 
123
- ### 5.2 create a dict (e.g. using the name 'channel_mapping') to save your handler
133
+ ### 4.2 create a dict (e.g. using the name 'channel_mapping') to save your handler
124
134
 
125
135
  - I'd like to put it in the root urls.py, you can put it anywhere
126
136
 
@@ -130,13 +140,13 @@ channel_mapping = {
130
140
  }
131
141
  ```
132
142
 
133
- ## 5.2 register the channel_mapping in the settings.py
143
+ ## 4.3 register the channel_mapping in the settings.py
134
144
 
135
145
  ```python
136
146
  HANDLER_MAPPING = "%s.urls.channel_mapping" % BASE_APP
137
147
  ```
138
148
 
139
- ### 5.4 you can copy the following codes to your urls.py
149
+ ### 4.4 you can copy the following codes to your urls.py
140
150
 
141
151
  ```python
142
152
  import json
@@ -16,7 +16,7 @@ requires = [
16
16
 
17
17
  setup(
18
18
  name="valar", # 包名
19
- version="1.2.4", # 版本号
19
+ version="1.2.5", # 版本号
20
20
  author="LYP", # 作者
21
21
  author_email="liuyinpeng@buaa.edu.cn", # 邮箱
22
22
  description="valar for morghulis", # 简短描述
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: valar
3
- Version: 1.2.4
3
+ Version: 1.2.5
4
4
  Summary: valar for morghulis
5
5
  Home-page: https://gitee.com/GRIFFIN120/valar_dev
6
6
  Author: LYP
@@ -30,11 +30,20 @@ valar for morghulis
30
30
 
31
31
  # 1. installation
32
32
 
33
+ - you need to install valar in a django project
34
+
33
35
  ```shell
34
36
  pip install valar
35
37
  ```
36
38
 
37
- # 1. settings
39
+ # 2. root app
40
+
41
+ - you only need 3 files in your root app
42
+ - settings.py
43
+ - asgi.py
44
+ - urls.py
45
+
46
+ ## 2.1 settings.py
38
47
 
39
48
  ```python
40
49
  from pathlib import Path
@@ -99,7 +108,7 @@ MINIO_ROOT = "https://host:9001"
99
108
 
100
109
  ```
101
110
 
102
- # 2. asgi
111
+ ## 2.2 asgi.py
103
112
 
104
113
  ```python
105
114
  from django.core.asgi import get_asgi_application
@@ -118,18 +127,19 @@ application = ProtocolTypeRouter({
118
127
 
119
128
  ```
120
129
 
121
- # 3. migrate
130
+ ## 2.3 urls.py
122
131
 
123
- - no need to makemigrations and migrate for valar, valar will auto migration
132
+ - no need to provide urls for Valar, Valar will auto set urlpatterns for Morghulis (
133
+ see https://www.npmjs.com/package/morghulis)
134
+ - go to section 4 to see how to register channel handlers (a Vue - Django async communication tool) in urls.
124
135
 
125
- # 4. root urls
136
+ # 3. migrate
126
137
 
127
- no need to provide urls for val, valar will auto set urlpatterns for Morghulis (
128
- see https://www.npmjs.com/package/morghulis)
138
+ - no need to makemigrations and migrate for valar, valar will auto migration
129
139
 
130
- # 5. how to register a channel handler for Morghulis async methods
140
+ # 4. how to register a channel handler for Morghulis async methods
131
141
 
132
- ## 5.1 create a handler
142
+ ## 4.1 create a handler
133
143
 
134
144
  ```python
135
145
  import time
@@ -148,7 +158,7 @@ def valar_test_handler(sender: ValarChannelSender):
148
158
  sender.load(tick)
149
159
  ```
150
160
 
151
- ### 5.2 create a dict (e.g. using the name 'channel_mapping') to save your handler
161
+ ### 4.2 create a dict (e.g. using the name 'channel_mapping') to save your handler
152
162
 
153
163
  - I'd like to put it in the root urls.py, you can put it anywhere
154
164
 
@@ -158,13 +168,13 @@ channel_mapping = {
158
168
  }
159
169
  ```
160
170
 
161
- ## 5.2 register the channel_mapping in the settings.py
171
+ ## 4.3 register the channel_mapping in the settings.py
162
172
 
163
173
  ```python
164
174
  HANDLER_MAPPING = "%s.urls.channel_mapping" % BASE_APP
165
175
  ```
166
176
 
167
- ### 5.4 you can copy the following codes to your urls.py
177
+ ### 4.4 you can copy the following codes to your urls.py
168
178
 
169
179
  ```python
170
180
  import json
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