hiddifypanel 10.80.0__py3-none-any.whl → 10.80.0.dev1__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 (69) hide show
  1. hiddifypanel/VERSION +1 -1
  2. hiddifypanel/VERSION.py +1 -1
  3. hiddifypanel/base.py +129 -43
  4. hiddifypanel/cache.py +1 -1
  5. hiddifypanel/database.py +0 -7
  6. hiddifypanel/hutils/flask.py +3 -3
  7. hiddifypanel/hutils/proxy/__init__.py +0 -1
  8. hiddifypanel/hutils/proxy/clash.py +2 -2
  9. hiddifypanel/hutils/proxy/shared.py +6 -6
  10. hiddifypanel/hutils/proxy/singbox.py +1 -1
  11. hiddifypanel/hutils/proxy/xray.py +2 -2
  12. hiddifypanel/hutils/proxy/xrayjson.py +7 -10
  13. hiddifypanel/models/config.py +1 -4
  14. hiddifypanel/models/config_enum.py +2 -2
  15. hiddifypanel/models/proxy.py +1 -1
  16. hiddifypanel/panel/__init__.py +8 -8
  17. hiddifypanel/panel/admin/AdminstratorAdmin.py +8 -7
  18. hiddifypanel/panel/admin/DomainAdmin.py +98 -132
  19. hiddifypanel/panel/admin/QuickSetup.py +8 -8
  20. hiddifypanel/panel/admin/UserAdmin.py +33 -58
  21. hiddifypanel/panel/admin/templates/index.html +4 -6
  22. hiddifypanel/panel/admin/templates/model/user_list.html +3 -11
  23. hiddifypanel/panel/cli.py +2 -11
  24. hiddifypanel/panel/commercial/restapi/v1/tgbot.py +1 -19
  25. hiddifypanel/panel/commercial/restapi/v2/admin/system_actions.py +1 -5
  26. hiddifypanel/panel/commercial/restapi/v2/admin/user_api.py +1 -2
  27. hiddifypanel/panel/common.py +1 -1
  28. hiddifypanel/panel/init_db.py +16 -19
  29. hiddifypanel/panel/usage.py +3 -13
  30. hiddifypanel/panel/user/user.py +18 -12
  31. hiddifypanel/templates/fake.html +320 -0
  32. hiddifypanel/translations/en/LC_MESSAGES/messages.mo +0 -0
  33. hiddifypanel/translations/en/LC_MESSAGES/messages.po +13 -82
  34. hiddifypanel/translations/fa/LC_MESSAGES/messages.mo +0 -0
  35. hiddifypanel/translations/fa/LC_MESSAGES/messages.po +12 -81
  36. hiddifypanel/translations/pt/LC_MESSAGES/messages.mo +0 -0
  37. hiddifypanel/translations/pt/LC_MESSAGES/messages.po +4 -73
  38. hiddifypanel/translations/ru/LC_MESSAGES/messages.mo +0 -0
  39. hiddifypanel/translations/ru/LC_MESSAGES/messages.po +9 -79
  40. hiddifypanel/translations/zh/LC_MESSAGES/messages.mo +0 -0
  41. hiddifypanel/translations/zh/LC_MESSAGES/messages.po +4 -73
  42. hiddifypanel/translations.i18n/en.json +7 -50
  43. hiddifypanel/translations.i18n/fa.json +6 -49
  44. hiddifypanel/translations.i18n/fr.json +2 -2
  45. hiddifypanel/translations.i18n/my.json +2 -2
  46. hiddifypanel/translations.i18n/pt.json +4 -47
  47. hiddifypanel/translations.i18n/ru.json +7 -50
  48. hiddifypanel/translations.i18n/zh.json +4 -47
  49. {hiddifypanel-10.80.0.dist-info → hiddifypanel-10.80.0.dev1.dist-info}/METADATA +6 -13
  50. {hiddifypanel-10.80.0.dist-info → hiddifypanel-10.80.0.dev1.dist-info}/RECORD +53 -69
  51. hiddifypanel/apps/__init__.py +0 -0
  52. hiddifypanel/apps/asgi_app.py +0 -7
  53. hiddifypanel/apps/celery_app.py +0 -3
  54. hiddifypanel/apps/wsgi_app.py +0 -5
  55. hiddifypanel/base_setup.py +0 -82
  56. hiddifypanel/celery.py +0 -45
  57. hiddifypanel/hutils/proxy/wireguard.py +0 -34
  58. hiddifypanel/panel/hlogger.py +0 -32
  59. hiddifypanel/panel/node/__init__.py +0 -9
  60. hiddifypanel/panel/node/a.py +0 -14
  61. hiddifypanel/panel/node/hello.py +0 -14
  62. hiddifypanel/panel/node/test.proto +0 -13
  63. hiddifypanel/panel/node/test_grpc.py +0 -40
  64. hiddifypanel/panel/node/test_pb2.py +0 -40
  65. hiddifypanel/panel/node/test_pb2.pyi +0 -17
  66. hiddifypanel/panel/node/test_pb2_grpc.py +0 -97
  67. {hiddifypanel-10.80.0.dist-info → hiddifypanel-10.80.0.dev1.dist-info}/LICENSE.md +0 -0
  68. {hiddifypanel-10.80.0.dist-info → hiddifypanel-10.80.0.dev1.dist-info}/WHEEL +0 -0
  69. {hiddifypanel-10.80.0.dist-info → hiddifypanel-10.80.0.dev1.dist-info}/entry_points.txt +0 -0
@@ -1,40 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: hiddifypanel/panel/node/test.proto
5
- # Protobuf Python Version: 5.27.2
6
- """Generated protocol buffer code."""
7
- from google.protobuf import descriptor as _descriptor
8
- from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
- from google.protobuf import symbol_database as _symbol_database
11
- from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 5,
15
- 27,
16
- 2,
17
- '',
18
- 'hiddifypanel/panel/node/test.proto'
19
- )
20
- # @@protoc_insertion_point(imports)
21
-
22
- _sym_db = _symbol_database.Default()
23
-
24
-
25
-
26
-
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"hiddifypanel/panel/node/test.proto\"\x1b\n\x0cHelloRequest\x12\x0b\n\x03req\x18\x01 \x01(\t\"\x1c\n\rHelloResponse\x12\x0b\n\x03res\x18\x01 \x01(\t22\n\x05Hello\x12)\n\x08SayHello\x12\r.HelloRequest\x1a\x0e.HelloResponseb\x06proto3')
28
-
29
- _globals = globals()
30
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hiddifypanel.panel.node.test_pb2', _globals)
32
- if not _descriptor._USE_C_DESCRIPTORS:
33
- DESCRIPTOR._loaded_options = None
34
- _globals['_HELLOREQUEST']._serialized_start=38
35
- _globals['_HELLOREQUEST']._serialized_end=65
36
- _globals['_HELLORESPONSE']._serialized_start=67
37
- _globals['_HELLORESPONSE']._serialized_end=95
38
- _globals['_HELLO']._serialized_start=97
39
- _globals['_HELLO']._serialized_end=147
40
- # @@protoc_insertion_point(module_scope)
@@ -1,17 +0,0 @@
1
- from google.protobuf import descriptor as _descriptor
2
- from google.protobuf import message as _message
3
- from typing import ClassVar as _ClassVar, Optional as _Optional
4
-
5
- DESCRIPTOR: _descriptor.FileDescriptor
6
-
7
- class HelloRequest(_message.Message):
8
- __slots__ = ("req",)
9
- REQ_FIELD_NUMBER: _ClassVar[int]
10
- req: str
11
- def __init__(self, req: _Optional[str] = ...) -> None: ...
12
-
13
- class HelloResponse(_message.Message):
14
- __slots__ = ("res",)
15
- RES_FIELD_NUMBER: _ClassVar[int]
16
- res: str
17
- def __init__(self, res: _Optional[str] = ...) -> None: ...
@@ -1,97 +0,0 @@
1
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
- """Client and server classes corresponding to protobuf-defined services."""
3
- import grpc
4
- import warnings
5
-
6
- from hiddifypanel.panel.node import test_pb2 as hiddifypanel_dot_panel_dot_node_dot_test__pb2
7
-
8
- GRPC_GENERATED_VERSION = '1.67.1'
9
- GRPC_VERSION = grpc.__version__
10
- _version_not_supported = False
11
-
12
- try:
13
- from grpc._utilities import first_version_is_lower
14
- _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
- except ImportError:
16
- _version_not_supported = True
17
-
18
- if _version_not_supported:
19
- raise RuntimeError(
20
- f'The grpc package installed is at version {GRPC_VERSION},'
21
- + f' but the generated code in hiddifypanel/panel/node/test_pb2_grpc.py depends on'
22
- + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
- + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
- + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
- )
26
-
27
-
28
- class HelloStub(object):
29
- """Missing associated documentation comment in .proto file."""
30
-
31
- def __init__(self, channel):
32
- """Constructor.
33
-
34
- Args:
35
- channel: A grpc.Channel.
36
- """
37
- self.SayHello = channel.unary_unary(
38
- '/Hello/SayHello',
39
- request_serializer=hiddifypanel_dot_panel_dot_node_dot_test__pb2.HelloRequest.SerializeToString,
40
- response_deserializer=hiddifypanel_dot_panel_dot_node_dot_test__pb2.HelloResponse.FromString,
41
- )
42
-
43
-
44
- class HelloServicer(object):
45
- """Missing associated documentation comment in .proto file."""
46
-
47
- def SayHello(self, request, context):
48
- """Missing associated documentation comment in .proto file."""
49
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
50
- context.set_details('Method not implemented!')
51
- raise NotImplementedError('Method not implemented!')
52
-
53
-
54
- def add_HelloServicer_to_server(servicer, server):
55
- rpc_method_handlers = {
56
- 'SayHello': grpc.unary_unary_rpc_method_handler(
57
- servicer.SayHello,
58
- request_deserializer=hiddifypanel_dot_panel_dot_node_dot_test__pb2.HelloRequest.FromString,
59
- response_serializer=hiddifypanel_dot_panel_dot_node_dot_test__pb2.HelloResponse.SerializeToString,
60
- ),
61
- }
62
- generic_handler = grpc.method_handlers_generic_handler(
63
- 'Hello', rpc_method_handlers)
64
- server.add_generic_rpc_handlers((generic_handler,))
65
- server.add_registered_method_handlers('Hello', rpc_method_handlers)
66
-
67
-
68
- # This class is part of an EXPERIMENTAL API.
69
- class Hello(object):
70
- """Missing associated documentation comment in .proto file."""
71
-
72
- @staticmethod
73
- def SayHello(request,
74
- target,
75
- options=(),
76
- channel_credentials=None,
77
- call_credentials=None,
78
- insecure=False,
79
- compression=None,
80
- wait_for_ready=None,
81
- timeout=None,
82
- metadata=None):
83
- return grpc.experimental.unary_unary(
84
- request,
85
- target,
86
- '/Hello/SayHello',
87
- hiddifypanel_dot_panel_dot_node_dot_test__pb2.HelloRequest.SerializeToString,
88
- hiddifypanel_dot_panel_dot_node_dot_test__pb2.HelloResponse.FromString,
89
- options,
90
- channel_credentials,
91
- insecure,
92
- call_credentials,
93
- compression,
94
- wait_for_ready,
95
- timeout,
96
- metadata,
97
- )