marzban 0.1.3__py3-none-any.whl → 0.1.6__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.
- marzban/__init__.py +1 -1
- marzban/models.py +3 -3
- {marzban-0.1.3.dist-info → marzban-0.1.6.dist-info}/METADATA +1 -1
- marzban-0.1.6.dist-info/RECORD +8 -0
- marzban-0.1.3.dist-info/RECORD +0 -8
- {marzban-0.1.3.dist-info → marzban-0.1.6.dist-info}/LICENSE +0 -0
- {marzban-0.1.3.dist-info → marzban-0.1.6.dist-info}/WHEEL +0 -0
- {marzban-0.1.3.dist-info → marzban-0.1.6.dist-info}/top_level.txt +0 -0
marzban/__init__.py
CHANGED
marzban/models.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
from pydantic import BaseModel
|
2
|
-
from typing import Optional, List, Dict, Any
|
2
|
+
from typing import Optional, List, Dict, Any, ClassVar
|
3
3
|
|
4
4
|
class Token(BaseModel):
|
5
5
|
access_token: str
|
@@ -138,7 +138,7 @@ class CoreStats(BaseModel):
|
|
138
138
|
|
139
139
|
class UserModify(BaseModel):
|
140
140
|
proxies: Optional[Dict[str, ProxySettings]] = {}
|
141
|
-
expire: Optional[int]
|
141
|
+
expire: Optional[int] = 0
|
142
142
|
data_limit: Optional[int] = 0
|
143
143
|
data_limit_reset_strategy: Optional[str] = "no_reset"
|
144
144
|
inbounds: Optional[Dict[str, List[str]]] = {}
|
@@ -189,7 +189,7 @@ class UsersResponse(BaseModel):
|
|
189
189
|
total: int
|
190
190
|
|
191
191
|
class UserStatus(BaseModel):
|
192
|
-
enum = ["active", "disabled", "limited", "expired", "on_hold"]
|
192
|
+
enum: ClassVar[List[str]] = ["active", "disabled", "limited", "expired", "on_hold"]
|
193
193
|
|
194
194
|
class ValidationError(BaseModel):
|
195
195
|
loc: List[Any]
|
@@ -0,0 +1,8 @@
|
|
1
|
+
marzban/__init__.py,sha256=CB8qEgjtBB7d2a7PerWusTdQxB11nkxFQDZlhwgepwc,72
|
2
|
+
marzban/api.py,sha256=kcA60qyG7d1l3lXl5K3MI590DLfLcCi8z42DndwnyDU,12457
|
3
|
+
marzban/models.py,sha256=Ixgifwhn0gbDb5QN1ssSI1NIQARrxXBQNtgceVgWHnw,4987
|
4
|
+
marzban-0.1.6.dist-info/LICENSE,sha256=e7OchdHfXoz2OZRHj8iltLIKYwdri9J4_9PMEnov418,1061
|
5
|
+
marzban-0.1.6.dist-info/METADATA,sha256=WdnXPLiyQVgs-5NsGuMIrBPgHY-B-_nUs2T4VAjIOQQ,1111
|
6
|
+
marzban-0.1.6.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
7
|
+
marzban-0.1.6.dist-info/top_level.txt,sha256=KUmBWzTarBlzw2GZOuk-d-jM2GU4zPWo1iwvW_mXS-c,8
|
8
|
+
marzban-0.1.6.dist-info/RECORD,,
|
marzban-0.1.3.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
marzban/__init__.py,sha256=LGX3cS4tE01rQz0Cs1UKCHKYGe02j9FPrjDU-KxCbJM,72
|
2
|
-
marzban/api.py,sha256=kcA60qyG7d1l3lXl5K3MI590DLfLcCi8z42DndwnyDU,12457
|
3
|
-
marzban/models.py,sha256=7616sr43dn6tODzaT_NBN6WNPap8WXg70TFsgaJNEHs,4952
|
4
|
-
marzban-0.1.3.dist-info/LICENSE,sha256=e7OchdHfXoz2OZRHj8iltLIKYwdri9J4_9PMEnov418,1061
|
5
|
-
marzban-0.1.3.dist-info/METADATA,sha256=_Sa4qTzxayyvUEIsQYfjgJcpVer2RYUqP9t6lO0aSe0,1111
|
6
|
-
marzban-0.1.3.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
7
|
-
marzban-0.1.3.dist-info/top_level.txt,sha256=KUmBWzTarBlzw2GZOuk-d-jM2GU4zPWo1iwvW_mXS-c,8
|
8
|
-
marzban-0.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|