vplus 1.0.0__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.
vplus-1.0.0/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2026 Vplus Team
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
vplus-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: vplus
3
+ Version: 1.0.0
4
+ Summary: کتابخانه رسمی سروش پلاس
5
+ Home-page: https://github.com/yourusername/vplus
6
+ Author: Vplus Team
7
+ Author-email: your@email.com
8
+ Project-URL: Documentation, https://github.com/yourusername/vplus
9
+ Project-URL: Source, https://github.com/yourusername/vplus
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Topic :: Communications :: Chat
18
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
+ Requires-Python: >=3.8
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: aiohttp>=3.8.0
23
+ Dynamic: author
24
+ Dynamic: author-email
25
+ Dynamic: classifier
26
+ Dynamic: description
27
+ Dynamic: description-content-type
28
+ Dynamic: home-page
29
+ Dynamic: license-file
30
+ Dynamic: project-url
31
+ Dynamic: requires-dist
32
+ Dynamic: requires-python
33
+ Dynamic: summary
34
+
35
+ # Vplus
36
+
37
+ کتابخانه رسمی و فوق‌سریع سروش‌پلاس برای پایتون
38
+
39
+ [![PyPI version](https://img.shields.io/pypi/v/vplus.svg)](https://pypi.org/project/vplus/)
40
+ [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/)
41
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
42
+
43
+ ---
44
+
45
+ ## 📖 درباره
46
+
47
+ **Vplus** یک کتابخانه کامل و قدرتمند برای ارتباط با API سروش‌پلاس است. با این کتابخانه می‌توانید به سادگی بات‌های حرفه‌ای برای پیام‌رسان سروش‌پلاس بسازید.
48
+
49
+ > direct splus > @Berlmevandi
50
+
51
+ ### ویژگی‌ها
52
+
53
+ - ✅ پشتیبانی از **همه متدهای API** رسمی سروش‌پلاس
54
+ - ✅ **دکوریتورهای ساده** برای ثبت هندلرها
55
+ - ✅ **فیلترهای پیش‌ساخته** (private, group, text, photo, video, sticker, ...)
56
+ - ✅ **مدیریت خودکار offset** (ذخیره در فایل، بدون پیام تکراری)
57
+ - ✅ **پشتیبانی کامل از asyncio**
58
+ - ✅ **Type hints** برای تجربه بهتر در IDE
59
+ - ✅ **مدیریت خطا** و **لاگینگ** داخلی
60
+ - ✅ **Lightweight** با فقط یک وابستگی (aiohttp)
61
+
62
+ ---
63
+
64
+ ## 🚀 نصب
65
+
66
+ ```bash
67
+ pip install vplus
vplus-1.0.0/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Vplus
2
+
3
+ کتابخانه رسمی و فوق‌سریع سروش‌پلاس برای پایتون
4
+
5
+ [![PyPI version](https://img.shields.io/pypi/v/vplus.svg)](https://pypi.org/project/vplus/)
6
+ [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
+
9
+ ---
10
+
11
+ ## 📖 درباره
12
+
13
+ **Vplus** یک کتابخانه کامل و قدرتمند برای ارتباط با API سروش‌پلاس است. با این کتابخانه می‌توانید به سادگی بات‌های حرفه‌ای برای پیام‌رسان سروش‌پلاس بسازید.
14
+
15
+ > direct splus > @Berlmevandi
16
+
17
+ ### ویژگی‌ها
18
+
19
+ - ✅ پشتیبانی از **همه متدهای API** رسمی سروش‌پلاس
20
+ - ✅ **دکوریتورهای ساده** برای ثبت هندلرها
21
+ - ✅ **فیلترهای پیش‌ساخته** (private, group, text, photo, video, sticker, ...)
22
+ - ✅ **مدیریت خودکار offset** (ذخیره در فایل، بدون پیام تکراری)
23
+ - ✅ **پشتیبانی کامل از asyncio**
24
+ - ✅ **Type hints** برای تجربه بهتر در IDE
25
+ - ✅ **مدیریت خطا** و **لاگینگ** داخلی
26
+ - ✅ **Lightweight** با فقط یک وابستگی (aiohttp)
27
+
28
+ ---
29
+
30
+ ## 🚀 نصب
31
+
32
+ ```bash
33
+ pip install vplus
vplus-1.0.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
vplus-1.0.0/setup.py ADDED
@@ -0,0 +1,35 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ with open("README.md", "r", encoding="utf-8") as fh:
4
+ long_description = fh.read()
5
+
6
+ setup(
7
+ name="vplus",
8
+ version="1.0.0",
9
+ author="Vplus Team",
10
+ author_email="your@email.com",
11
+ description="کتابخانه رسمی سروش پلاس",
12
+ long_description=long_description,
13
+ long_description_content_type="text/markdown",
14
+ url="https://github.com/yourusername/vplus",
15
+ packages=find_packages(),
16
+ classifiers=[
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.8",
19
+ "Programming Language :: Python :: 3.9",
20
+ "Programming Language :: Python :: 3.10",
21
+ "Programming Language :: Python :: 3.11",
22
+ "License :: OSI Approved :: MIT License",
23
+ "Operating System :: OS Independent",
24
+ "Topic :: Communications :: Chat",
25
+ "Topic :: Software Development :: Libraries :: Python Modules",
26
+ ],
27
+ python_requires=">=3.8",
28
+ install_requires=[
29
+ "aiohttp>=3.8.0",
30
+ ],
31
+ project_urls={
32
+ "Documentation": "https://github.com/yourusername/vplus",
33
+ "Source": "https://github.com/yourusername/vplus",
34
+ },
35
+ )
@@ -0,0 +1,152 @@
1
+ __version__ = "1.0.0"
2
+ __author__ = "Vplus team"
3
+ __license__ = "MIT"
4
+
5
+ from .client import VPlusClient
6
+ from .models import (
7
+ User,
8
+ Chat,
9
+ Message,
10
+ Update,
11
+ WebhookInfo,
12
+ File,
13
+ BotCommand,
14
+ UserProfilePhotos,
15
+ ChatFullInfo,
16
+ StickerSet,
17
+ )
18
+
19
+ from .errors import (
20
+ VPlusError,
21
+ VPlusAPIError,
22
+ VPlusAuthError,
23
+ VPlusRateLimitError,
24
+ VPlusNetworkError,
25
+ VPlusFileError,
26
+ VPlusTimeoutError,
27
+ VPlusValidationError,
28
+ VPlusDispatcherError,
29
+ VPlusWebhookError,
30
+ VPlusPollingError,
31
+ is_retryable_error,
32
+ get_retry_delay,
33
+ )
34
+
35
+ from .filters import (
36
+ Filter,
37
+ Filters,
38
+ FilterResult,
39
+ is_private,
40
+ is_group,
41
+ is_channel,
42
+ text,
43
+ caption,
44
+ photo,
45
+ video,
46
+ audio,
47
+ voice,
48
+ document,
49
+ animation,
50
+ sticker,
51
+ location,
52
+ contact,
53
+ dice,
54
+ video_note,
55
+ callback_query,
56
+ inline_query,
57
+ edited_message,
58
+ is_bot,
59
+ is_user,
60
+ forwarded,
61
+ reply,
62
+ media_group,
63
+ has_entities,
64
+ has_caption_entities,
65
+ command,
66
+ contains_text,
67
+ regex,
68
+ chat_id,
69
+ user_id,
70
+ )
71
+
72
+ from .dispatcher import Dispatcher
73
+ from .utils import (
74
+ build_keyboard,
75
+ build_inline_keyboard,
76
+ build_button,
77
+ escape_markdown,
78
+ escape_html,
79
+ parse_entities,
80
+ chunk_text,
81
+ format_date,
82
+ )
83
+
84
+ __all__ = [
85
+ "VPlusClient",
86
+ "User",
87
+ "Chat",
88
+ "Message",
89
+ "Update",
90
+ "WebhookInfo",
91
+ "File",
92
+ "BotCommand",
93
+ "UserProfilePhotos",
94
+ "ChatFullInfo",
95
+ "StickerSet",
96
+ "VPlusError",
97
+ "VPlusAPIError",
98
+ "VPlusAuthError",
99
+ "VPlusRateLimitError",
100
+ "VPlusNetworkError",
101
+ "VPlusFileError",
102
+ "VPlusTimeoutError",
103
+ "VPlusValidationError",
104
+ "VPlusDispatcherError",
105
+ "VPlusWebhookError",
106
+ "VPlusPollingError",
107
+ "is_retryable_error",
108
+ "get_retry_delay",
109
+ "Filter",
110
+ "Filters",
111
+ "FilterResult",
112
+ "is_private",
113
+ "is_group",
114
+ "is_channel",
115
+ "text",
116
+ "caption",
117
+ "photo",
118
+ "video",
119
+ "audio",
120
+ "voice",
121
+ "document",
122
+ "animation",
123
+ "sticker",
124
+ "location",
125
+ "contact",
126
+ "dice",
127
+ "video_note",
128
+ "callback_query",
129
+ "inline_query",
130
+ "edited_message",
131
+ "is_bot",
132
+ "is_user",
133
+ "forwarded",
134
+ "reply",
135
+ "media_group",
136
+ "has_entities",
137
+ "has_caption_entities",
138
+ "command",
139
+ "contains_text",
140
+ "regex",
141
+ "chat_id",
142
+ "user_id",
143
+ "Dispatcher",
144
+ "build_keyboard",
145
+ "build_inline_keyboard",
146
+ "build_button",
147
+ "escape_markdown",
148
+ "escape_html",
149
+ "parse_entities",
150
+ "chunk_text",
151
+ "format_date",
152
+ ]