pasarguard 0.0.1__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.
- pasarguard-0.0.1/.gitattributes +2 -0
- pasarguard-0.0.1/.github/workflows/publish-pypi.yml +30 -0
- pasarguard-0.0.1/PKG-INFO +13 -0
- pasarguard-0.0.1/README.md +1 -0
- pasarguard-0.0.1/pasarguard/__init__.py +96 -0
- pasarguard-0.0.1/pasarguard/api.py +606 -0
- pasarguard-0.0.1/pasarguard/models.py +434 -0
- pasarguard-0.0.1/pasarguard/utils.py +30 -0
- pasarguard-0.0.1/pyproject.toml +20 -0
- pasarguard-0.0.1/uv.lock +527 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Publish Python Package to PyPI
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [created]
|
|
5
|
+
jobs:
|
|
6
|
+
deploy:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
|
|
11
|
+
- name: Install system dependencies
|
|
12
|
+
run: |
|
|
13
|
+
sudo apt-get update
|
|
14
|
+
sudo apt-get install -y curl
|
|
15
|
+
- name: Install uv
|
|
16
|
+
run: |
|
|
17
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
18
|
+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
19
|
+
- name: Install package dependencies
|
|
20
|
+
run: |
|
|
21
|
+
uv sync
|
|
22
|
+
uv pip install twine
|
|
23
|
+
- name: Build package
|
|
24
|
+
run: uv build
|
|
25
|
+
- name: Publish package to PyPI
|
|
26
|
+
env:
|
|
27
|
+
TWINE_USERNAME: __token__
|
|
28
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
29
|
+
run: |
|
|
30
|
+
uv run twine upload dist/*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pasarguard
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Requires-Python: >=3.12
|
|
6
|
+
Requires-Dist: datetime>=5.5
|
|
7
|
+
Requires-Dist: httpx>=0.28.1
|
|
8
|
+
Requires-Dist: paramiko>=4.0.0
|
|
9
|
+
Requires-Dist: pydantic>=2.12.0
|
|
10
|
+
Requires-Dist: sshtunnel>=0.4.0
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
hi
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hi
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
from .api import PasarguardAPI
|
|
2
|
+
from .models import (
|
|
3
|
+
Admin,
|
|
4
|
+
AdminCreate,
|
|
5
|
+
AdminModify,
|
|
6
|
+
BulkGroup,
|
|
7
|
+
BulkUser,
|
|
8
|
+
BulkUsersProxy,
|
|
9
|
+
CoreCreate,
|
|
10
|
+
CoreResponse,
|
|
11
|
+
CoreResponseList,
|
|
12
|
+
CoreStats,
|
|
13
|
+
CreateUserFromTemplate,
|
|
14
|
+
GroupCreate,
|
|
15
|
+
GroupModify,
|
|
16
|
+
GroupResponse,
|
|
17
|
+
GroupsResponse,
|
|
18
|
+
HostBase,
|
|
19
|
+
HostResponse,
|
|
20
|
+
HTTPValidationError,
|
|
21
|
+
ModifyUserByTemplate,
|
|
22
|
+
NextPlanModel,
|
|
23
|
+
NodeCreate,
|
|
24
|
+
NodeModify,
|
|
25
|
+
NodeResponse,
|
|
26
|
+
NodesUsageResponse,
|
|
27
|
+
NodeUsageResponse,
|
|
28
|
+
ProxyHost,
|
|
29
|
+
ProxyInbound,
|
|
30
|
+
ProxySettings,
|
|
31
|
+
SubscriptionUserResponse,
|
|
32
|
+
SystemStats,
|
|
33
|
+
Token,
|
|
34
|
+
UserCreate,
|
|
35
|
+
UserModify,
|
|
36
|
+
UserResponse,
|
|
37
|
+
UsersResponse,
|
|
38
|
+
UserStatus,
|
|
39
|
+
UserTemplateCreate,
|
|
40
|
+
UserTemplateModify,
|
|
41
|
+
UserTemplateResponse,
|
|
42
|
+
UserUsageResponse,
|
|
43
|
+
UserUsagesResponse,
|
|
44
|
+
ValidationError,
|
|
45
|
+
)
|
|
46
|
+
from .utils import PasarguardTokenCache
|
|
47
|
+
|
|
48
|
+
__all__ = (
|
|
49
|
+
"__version__",
|
|
50
|
+
"PasarguardAPI",
|
|
51
|
+
"PasarguardTokenCache",
|
|
52
|
+
"Admin",
|
|
53
|
+
"AdminCreate",
|
|
54
|
+
"AdminModify",
|
|
55
|
+
"UserCreate",
|
|
56
|
+
"UserModify",
|
|
57
|
+
"UserResponse",
|
|
58
|
+
"UsersResponse",
|
|
59
|
+
"UserStatus",
|
|
60
|
+
"UserTemplateCreate",
|
|
61
|
+
"UserTemplateModify",
|
|
62
|
+
"UserTemplateResponse",
|
|
63
|
+
"UserUsageResponse",
|
|
64
|
+
"UserUsagesResponse",
|
|
65
|
+
"NodeUsageResponse",
|
|
66
|
+
"NodesUsageResponse",
|
|
67
|
+
"NodeCreate",
|
|
68
|
+
"NodeModify",
|
|
69
|
+
"NodeResponse",
|
|
70
|
+
"GroupCreate",
|
|
71
|
+
"GroupModify",
|
|
72
|
+
"GroupResponse",
|
|
73
|
+
"GroupsResponse",
|
|
74
|
+
"BulkGroup",
|
|
75
|
+
"HostBase",
|
|
76
|
+
"HostResponse",
|
|
77
|
+
"CoreCreate",
|
|
78
|
+
"CoreResponse",
|
|
79
|
+
"CoreResponseList",
|
|
80
|
+
"ModifyUserByTemplate",
|
|
81
|
+
"CreateUserFromTemplate",
|
|
82
|
+
"BulkUser",
|
|
83
|
+
"BulkUsersProxy",
|
|
84
|
+
"SystemStats",
|
|
85
|
+
"CoreStats",
|
|
86
|
+
"ProxySettings",
|
|
87
|
+
"ProxyHost",
|
|
88
|
+
"ProxyInbound",
|
|
89
|
+
"Token",
|
|
90
|
+
"HTTPValidationError",
|
|
91
|
+
"ValidationError",
|
|
92
|
+
"SubscriptionUserResponse",
|
|
93
|
+
"NextPlanModel",
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
__version__ = "0.1.1"
|