marzban 0.1.2__py3-none-any.whl → 0.1.5__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 CHANGED
@@ -1,4 +1,4 @@
1
- from .client.py import MarzbanAPI
2
- from .models.py import *
1
+ from .api import MarzbanAPI
2
+ from .models import *
3
3
 
4
- __version__ = "0.1.2"
4
+ __version__ = "0.1.5"
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
@@ -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]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: marzban
3
- Version: 0.1.2
3
+ Version: 0.1.5
4
4
  Summary: Асинхронная библиотека Python для взаимодействия с MarzbanAPI
5
5
  Home-page: https://github.com/sm1ky/marzban_api
6
6
  Author: Artem
@@ -0,0 +1,8 @@
1
+ marzban/__init__.py,sha256=8PMEY3g5mvh-KvtrfSZrWbELxTa2_4Fmf0IaS5O6dxY,72
2
+ marzban/api.py,sha256=kcA60qyG7d1l3lXl5K3MI590DLfLcCi8z42DndwnyDU,12457
3
+ marzban/models.py,sha256=NgtIYxP6x_07KJLyGkqe8JVdian7OoG3FEk2WbaRhes,4983
4
+ marzban-0.1.5.dist-info/LICENSE,sha256=e7OchdHfXoz2OZRHj8iltLIKYwdri9J4_9PMEnov418,1061
5
+ marzban-0.1.5.dist-info/METADATA,sha256=rVm8nfrSIj1DerirhfhdhlDNfVM0sJMYS_-CBioL2eg,1111
6
+ marzban-0.1.5.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
7
+ marzban-0.1.5.dist-info/top_level.txt,sha256=KUmBWzTarBlzw2GZOuk-d-jM2GU4zPWo1iwvW_mXS-c,8
8
+ marzban-0.1.5.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- marzban/__init__.py,sha256=exQkmVPbMtVfWsL-pqPiwsAHdAXM-XONyVdVSE6DrFg,81
2
- marzban/clients.py,sha256=kcA60qyG7d1l3lXl5K3MI590DLfLcCi8z42DndwnyDU,12457
3
- marzban/models.py,sha256=7616sr43dn6tODzaT_NBN6WNPap8WXg70TFsgaJNEHs,4952
4
- marzban-0.1.2.dist-info/LICENSE,sha256=e7OchdHfXoz2OZRHj8iltLIKYwdri9J4_9PMEnov418,1061
5
- marzban-0.1.2.dist-info/METADATA,sha256=PkXIOqqKqUCLSL89GMsKdjT6IRxKjQi0aCE7li3WgrY,1111
6
- marzban-0.1.2.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
7
- marzban-0.1.2.dist-info/top_level.txt,sha256=KUmBWzTarBlzw2GZOuk-d-jM2GU4zPWo1iwvW_mXS-c,8
8
- marzban-0.1.2.dist-info/RECORD,,
File without changes