marzban 0.1.7__tar.gz → 0.1.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: marzban
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Асинхронная библиотека Python для взаимодействия с MarzbanAPI
5
5
  Home-page: https://github.com/sm1ky/marzban_api
6
6
  Author: Artem
@@ -1,4 +1,4 @@
1
1
  from .api import MarzbanAPI
2
2
  from .models import *
3
3
 
4
- __version__ = "0.1.7"
4
+ __version__ = "0.1.8"
@@ -37,7 +37,7 @@ class SystemStats(BaseModel):
37
37
  outgoing_bandwidth_speed: int
38
38
 
39
39
  class ProxySettings(BaseModel):
40
- id: str
40
+ id: Optional[str] = None
41
41
  flow: Optional[str] = None
42
42
 
43
43
  class UserCreate(BaseModel):
@@ -56,25 +56,25 @@ class UserCreate(BaseModel):
56
56
  status: Optional[str] = "active"
57
57
 
58
58
  class UserResponse(BaseModel):
59
- username: str
60
- proxies: Dict[str, ProxySettings]
61
- expire: Optional[int]
62
- data_limit: int
63
- data_limit_reset_strategy: str
64
- inbounds: Dict[str, List[str]]
65
- note: Optional[str]
66
- sub_updated_at: Optional[str]
67
- sub_last_user_agent: Optional[str]
68
- online_at: Optional[str]
69
- on_hold_expire_duration: Optional[int]
70
- on_hold_timeout: Optional[str]
71
- status: str
72
- used_traffic: int
73
- lifetime_used_traffic: int
74
- created_at: str
75
- links: List[str]
76
- subscription_url: str
77
- excluded_inbounds: Dict[str, List[str]]
59
+ username: Optional[str] = None
60
+ proxies: Optional[Dict[str, ProxySettings]] = {}
61
+ expire: Optional[int] = None
62
+ data_limit: Optional[int] = None
63
+ data_limit_reset_strategy: Optional[str] = None
64
+ inbounds: Optional[Dict[str, List[str]]] = {}
65
+ note: Optional[str] = None
66
+ sub_updated_at: Optional[str] = None
67
+ sub_last_user_agent: Optional[str] = None
68
+ online_at: Optional[str] = None
69
+ on_hold_expire_duration: Optional[int] = None
70
+ on_hold_timeout: Optional[str] = None
71
+ status: Optional[str] = None
72
+ used_traffic: Optional[int] = None
73
+ lifetime_used_traffic: Optional[int] = None
74
+ created_at: Optional[str] = None
75
+ links: Optional[List[str]] = []
76
+ subscription_url: Optional[str] = None
77
+ excluded_inbounds: Optional[Dict[str, List[str]]] = {}
78
78
 
79
79
  class NodeCreate(BaseModel):
80
80
  name: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: marzban
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Асинхронная библиотека Python для взаимодействия с MarzbanAPI
5
5
  Home-page: https://github.com/sm1ky/marzban_api
6
6
  Author: Artem
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="marzban",
8
- version="0.1.7",
8
+ version="0.1.8",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "httpx>=0.23.0",
File without changes
File without changes
File without changes
File without changes