omserv 0.0.0.dev188__py3-none-any.whl → 0.0.0.dev189__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.
- omserv/nginx/build.py +4 -0
- omserv/nginx/configs.py +2 -19
- {omserv-0.0.0.dev188.dist-info → omserv-0.0.0.dev189.dist-info}/METADATA +2 -2
- {omserv-0.0.0.dev188.dist-info → omserv-0.0.0.dev189.dist-info}/RECORD +12 -12
- /omserv/{node → nodes}/__init__.py +0 -0
- /omserv/{node → nodes}/models.py +0 -0
- /omserv/{node → nodes}/registry.py +0 -0
- /omserv/{node → nodes}/sql.py +0 -0
- {omserv-0.0.0.dev188.dist-info → omserv-0.0.0.dev189.dist-info}/LICENSE +0 -0
- {omserv-0.0.0.dev188.dist-info → omserv-0.0.0.dev189.dist-info}/WHEEL +0 -0
- {omserv-0.0.0.dev188.dist-info → omserv-0.0.0.dev189.dist-info}/entry_points.txt +0 -0
- {omserv-0.0.0.dev188.dist-info → omserv-0.0.0.dev189.dist-info}/top_level.txt +0 -0
omserv/nginx/build.py
CHANGED
omserv/nginx/configs.py
CHANGED
@@ -8,6 +8,7 @@ https://nginx.org/en/docs/example.html
|
|
8
8
|
|
9
9
|
https://github.com/yandex/gixy
|
10
10
|
"""
|
11
|
+
import collections.abc
|
11
12
|
import dataclasses as dc
|
12
13
|
import typing as ta
|
13
14
|
|
@@ -37,7 +38,7 @@ class Item(lang.Final):
|
|
37
38
|
def of(cls, obj: ta.Any) -> 'Item':
|
38
39
|
if isinstance(obj, Item):
|
39
40
|
return obj
|
40
|
-
args = check.isinstance(obj,
|
41
|
+
args = check.isinstance(check.not_isinstance(obj, str), collections.abc.Sequence)
|
41
42
|
name, args = check.isinstance(args[0], str), args[1:]
|
42
43
|
if args and not isinstance(args[-1], str):
|
43
44
|
block, args = Items.of(args[-1]), args[:-1]
|
@@ -66,21 +67,3 @@ def render(wr: IndentWriter, obj: ta.Any) -> None:
|
|
66
67
|
|
67
68
|
else:
|
68
69
|
raise TypeError(obj)
|
69
|
-
|
70
|
-
|
71
|
-
def _main() -> None:
|
72
|
-
conf = Items.of([
|
73
|
-
('user', 'www', 'www'),
|
74
|
-
('worker_processes', '2'),
|
75
|
-
('events', [
|
76
|
-
('worker_connections', '2000'),
|
77
|
-
]),
|
78
|
-
])
|
79
|
-
|
80
|
-
wr = IndentWriter()
|
81
|
-
render(wr, conf)
|
82
|
-
print(wr.getvalue())
|
83
|
-
|
84
|
-
|
85
|
-
if __name__ == '__main__':
|
86
|
-
_main()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: omserv
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev189
|
4
4
|
Summary: omserv
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -12,7 +12,7 @@ Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Operating System :: POSIX
|
13
13
|
Requires-Python: >=3.12
|
14
14
|
License-File: LICENSE
|
15
|
-
Requires-Dist: omlish==0.0.0.
|
15
|
+
Requires-Dist: omlish==0.0.0.dev189
|
16
16
|
Provides-Extra: all
|
17
17
|
Requires-Dist: h11~=0.14; extra == "all"
|
18
18
|
Requires-Dist: h2~=4.1; extra == "all"
|
@@ -10,16 +10,16 @@ omserv/apps/sessions.py,sha256=glruQSbOSbCYLPp6nDRNSHCyp5hj4oiOPhh3R0F9BTM,1537
|
|
10
10
|
omserv/apps/templates.py,sha256=PBRZHIF9UbnFnq-4EC6RmPeRkeH8lCBbpJkSdseHs6A,2125
|
11
11
|
omserv/daemon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
omserv/nginx/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
omserv/nginx/build.py,sha256=
|
14
|
-
omserv/nginx/configs.py,sha256=
|
13
|
+
omserv/nginx/build.py,sha256=2LzI5eM3U2V0CbUHEOHx4zwnMl5CU2lhu-odPrI7idU,3203
|
14
|
+
omserv/nginx/configs.py,sha256=eelbm_9dc0TCAx3XYNDkrh11hSCjtiA5PNIlF6G0zc4,1769
|
15
15
|
omserv/nginx/logs.py,sha256=cODPsG1j3EQiXbb9SR20NpB9MjGdWN0ArFZ-TA9xf-c,1840
|
16
16
|
omserv/nginx/stubstatus.py,sha256=_VnXZdXxSA7jIelYSwJLf9mOnt_UOvpWghAPWtlWSLw,1857
|
17
17
|
omserv/nginx/patches/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
18
|
omserv/nginx/patches/nginx-1.27.3_http_status.patch,sha256=bEDSczpBLcdjcBp_X1m73oxvt8KPeons7v_sUxqBSXM,4335
|
19
|
-
omserv/
|
20
|
-
omserv/
|
21
|
-
omserv/
|
22
|
-
omserv/
|
19
|
+
omserv/nodes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
|
+
omserv/nodes/models.py,sha256=EOaq-aW1rbGOzHTmTULhbVwV5j_burL07qh2QO9smdM,1273
|
21
|
+
omserv/nodes/registry.py,sha256=y67VMowll9IuLiTVgauAcbP8-evFJNqpwocwwt7kZL4,3478
|
22
|
+
omserv/nodes/sql.py,sha256=vy7RP50JiH3jQHMVa7Hxk0pFJK3QcbGeTvyNppB1W4I,2826
|
23
23
|
omserv/server/LICENSE,sha256=VKPNmbyrS9wcwcx20hBlVtLP01brb2dByHrWHeNLPag,1050
|
24
24
|
omserv/server/__init__.py,sha256=jrFdrxfnQwjK5DW5y9w0alw6IKToGn2IQyZDhsuGHv4,372
|
25
25
|
omserv/server/config.py,sha256=oGWL1kuk45bJ6sVr8n3ow5Q-1nz9EqByjoykU2iOHIY,1189
|
@@ -48,9 +48,9 @@ omserv/server/streams/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
48
48
|
omserv/server/streams/httpstream.py,sha256=0DeiAPLGbEGNa0fHTs8lUpi_CFZs4M5_QB-TiS8mobQ,8015
|
49
49
|
omserv/server/streams/utils.py,sha256=aMOrqWIg_Hht5W4kLg3y7oR5AEkVvMrZhyjzo6U5owE,1527
|
50
50
|
omserv/server/streams/wsstream.py,sha256=3Vyzox7dCE1tDSXjb6xBubWo41ZF9d38Hrsrlj6h1J8,15482
|
51
|
-
omserv-0.0.0.
|
52
|
-
omserv-0.0.0.
|
53
|
-
omserv-0.0.0.
|
54
|
-
omserv-0.0.0.
|
55
|
-
omserv-0.0.0.
|
56
|
-
omserv-0.0.0.
|
51
|
+
omserv-0.0.0.dev189.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
52
|
+
omserv-0.0.0.dev189.dist-info/METADATA,sha256=Yw_q1f2w9xvE6i1-hbR293pbuirXdz47QVuhzv7xDT8,983
|
53
|
+
omserv-0.0.0.dev189.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
54
|
+
omserv-0.0.0.dev189.dist-info/entry_points.txt,sha256=ivSrdA_ahEbI-eVMu-XZS-z4VrnQISvpecIkOqC9zFM,35
|
55
|
+
omserv-0.0.0.dev189.dist-info/top_level.txt,sha256=HXehpnxeKscKNULzKNzZ27oNawBrsh1PaNAirbX-XNA,7
|
56
|
+
omserv-0.0.0.dev189.dist-info/RECORD,,
|
File without changes
|
/omserv/{node → nodes}/models.py
RENAMED
File without changes
|
File without changes
|
/omserv/{node → nodes}/sql.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|