AsiaCellFree 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.
@@ -0,0 +1 @@
1
+ from .main import AsiaCell
@@ -0,0 +1,41 @@
1
+ import requests
2
+
3
+ class AsiaCell:
4
+ def __init__(self):
5
+ self.url = "https://www.asiacell.com/api/v1"
6
+
7
+ self.hd = {
8
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
9
+ 'Deviceid': 'dbe43c8eb692a644cb18a061412f948e'
10
+ }
11
+
12
+ def hdr(self, access_token):
13
+ self.hdr = {
14
+ 'Authorization': 'Bearer '+access_token,
15
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
16
+ 'Deviceid': 'dbe43c8eb692a644cb18a061412f948e'
17
+ }
18
+
19
+ def captcha(self):
20
+ r = requests.post(f"{self.url}/captcha?lang=ar", headers=self.hd, json={}).json()
21
+ return r['captcha']['originSource'] + r['captcha']['resourceUrl']
22
+
23
+ def login(self, phone: str, code: str):
24
+ r = requests.post(f"{self.url}/login?lang=ar", headers=self.hd, json={"username": phone, "captchaCode": code}).json()
25
+ if r.get('success'):
26
+ return r['nextUrl'].split("PID=")[1] if "PID=" in r.get('nextUrl', '') else r['nextUrl']
27
+ return r
28
+
29
+ def smsvalidation(self, pid: str, passcode: str):
30
+ r = requests.post(f"{self.url}/smsvalidation?lang=ar", headers=self.hd, json={"PID": pid, "passcode": passcode}).json()
31
+ return r
32
+ def profile(self, access_token):
33
+ self.hdr(access_token)
34
+ r = requests.get(f"{self.url}/profile?lang=ar", headers=self.hdr).json()
35
+ return r
36
+ def top_up(self, msisdn: str, voucher: str, access_token: str, rechargeType: int = 1):
37
+ self.hdr(access_token)
38
+ r = requests.post(f"{self.url}/top-up?lang=ar", headers=self.hdr, json={"msisdn": msisdn, "voucher": voucher, "rechargeType": rechargeType}).json()
39
+ return r
40
+
41
+
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: AsiaCellFree
3
+ Version: 0.0.1
4
+ Summary: مكتبة بسيطة للعمليات الحسابية
5
+ Home-page: https://github.com/yourusername/my_awesome_library
6
+ Author: ALSHKA
7
+ Author-email: email@example.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: classifier
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: requires-python
20
+ Dynamic: summary
21
+
22
+ <h1 align="center">asiacell</h1>
23
+ <p align="center">It is a project that includes all social networking sites, and the most important features of the project is a private library whose work is to verify the availability of the user name if it is available or not available on more than one social site</p>
24
+
25
+ ## Installation :
26
+ ```
27
+ pip install AsiaCellFree
28
+ ```
29
+ ## ***The method of work***
30
+ * Open a file in a text editor and name the file eg
31
+ asiacell.py
32
+
33
+ ```python
34
+ from AsiaCellFree import AsiaCell
35
+
36
+ cap = AsiaCell().code()
37
+ PID = AsiaCell().login('07703433331', cap)
38
+ smsvalidation = AsiaCell().smsvalidation(PID, input('pass : '))
39
+ ok = AsiaCell().profile(smsvalidation)
40
+ print(ok)
41
+ ```
42
+
43
+ ## Follow us on social media
44
+ [![Telegram](https://img.shields.io/badge/Telegram-ALSH_3k-orange?style=for-the-badge&logo=Telegram)](https://t.me/ALSH_3K)
45
+ [![Youtube](https://img.shields.io/badge/Youtube-ALSH-orange?style=for-the-badge&logo=Youtube)](https://youtube.com/channel/UCUNbzQRjfAXGCKI1LY72DTA)
46
+ [![Instagram](https://img.shields.io/badge/Instagram-ALSH-green?style=for-the-badge&logo=instagram)](https://Instagram.com/alshka.iq)
47
+ [![Telegram](https://img.shields.io/badge/Telegram-ALSH-green?style=for-the-badge&logo=Telegram)](https://t.me/XXCBB)
48
+
49
+
@@ -0,0 +1,8 @@
1
+ README.md
2
+ setup.py
3
+ AsiaCellFree/__init__.py
4
+ AsiaCellFree/main.py
5
+ AsiaCellFree.egg-info/PKG-INFO
6
+ AsiaCellFree.egg-info/SOURCES.txt
7
+ AsiaCellFree.egg-info/dependency_links.txt
8
+ AsiaCellFree.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ AsiaCellFree
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: AsiaCellFree
3
+ Version: 0.0.1
4
+ Summary: مكتبة بسيطة للعمليات الحسابية
5
+ Home-page: https://github.com/yourusername/my_awesome_library
6
+ Author: ALSHKA
7
+ Author-email: email@example.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: classifier
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: home-page
19
+ Dynamic: requires-python
20
+ Dynamic: summary
21
+
22
+ <h1 align="center">asiacell</h1>
23
+ <p align="center">It is a project that includes all social networking sites, and the most important features of the project is a private library whose work is to verify the availability of the user name if it is available or not available on more than one social site</p>
24
+
25
+ ## Installation :
26
+ ```
27
+ pip install AsiaCellFree
28
+ ```
29
+ ## ***The method of work***
30
+ * Open a file in a text editor and name the file eg
31
+ asiacell.py
32
+
33
+ ```python
34
+ from AsiaCellFree import AsiaCell
35
+
36
+ cap = AsiaCell().code()
37
+ PID = AsiaCell().login('07703433331', cap)
38
+ smsvalidation = AsiaCell().smsvalidation(PID, input('pass : '))
39
+ ok = AsiaCell().profile(smsvalidation)
40
+ print(ok)
41
+ ```
42
+
43
+ ## Follow us on social media
44
+ [![Telegram](https://img.shields.io/badge/Telegram-ALSH_3k-orange?style=for-the-badge&logo=Telegram)](https://t.me/ALSH_3K)
45
+ [![Youtube](https://img.shields.io/badge/Youtube-ALSH-orange?style=for-the-badge&logo=Youtube)](https://youtube.com/channel/UCUNbzQRjfAXGCKI1LY72DTA)
46
+ [![Instagram](https://img.shields.io/badge/Instagram-ALSH-green?style=for-the-badge&logo=instagram)](https://Instagram.com/alshka.iq)
47
+ [![Telegram](https://img.shields.io/badge/Telegram-ALSH-green?style=for-the-badge&logo=Telegram)](https://t.me/XXCBB)
48
+
49
+
@@ -0,0 +1,28 @@
1
+ <h1 align="center">asiacell</h1>
2
+ <p align="center">It is a project that includes all social networking sites, and the most important features of the project is a private library whose work is to verify the availability of the user name if it is available or not available on more than one social site</p>
3
+
4
+ ## Installation :
5
+ ```
6
+ pip install AsiaCellFree
7
+ ```
8
+ ## ***The method of work***
9
+ * Open a file in a text editor and name the file eg
10
+ asiacell.py
11
+
12
+ ```python
13
+ from AsiaCellFree import AsiaCell
14
+
15
+ cap = AsiaCell().code()
16
+ PID = AsiaCell().login('07703433331', cap)
17
+ smsvalidation = AsiaCell().smsvalidation(PID, input('pass : '))
18
+ ok = AsiaCell().profile(smsvalidation)
19
+ print(ok)
20
+ ```
21
+
22
+ ## Follow us on social media
23
+ [![Telegram](https://img.shields.io/badge/Telegram-ALSH_3k-orange?style=for-the-badge&logo=Telegram)](https://t.me/ALSH_3K)
24
+ [![Youtube](https://img.shields.io/badge/Youtube-ALSH-orange?style=for-the-badge&logo=Youtube)](https://youtube.com/channel/UCUNbzQRjfAXGCKI1LY72DTA)
25
+ [![Instagram](https://img.shields.io/badge/Instagram-ALSH-green?style=for-the-badge&logo=instagram)](https://Instagram.com/alshka.iq)
26
+ [![Telegram](https://img.shields.io/badge/Telegram-ALSH-green?style=for-the-badge&logo=Telegram)](https://t.me/XXCBB)
27
+
28
+
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,19 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="AsiaCellFree", # اسم المكتبة (يجب أن يكون فريداً على PyPI)
5
+ version="0.0.1", # إصدار المكتبة
6
+ author="ALSHKA",
7
+ author_email="email@example.com",
8
+ description="مكتبة بسيطة للعمليات الحسابية",
9
+ long_description=open("README.md").read(),
10
+ long_description_content_type="text/markdown",
11
+ url="https://github.com/yourusername/my_awesome_library", # رابط المشروع إن وجد
12
+ packages=find_packages(), # يبحث تلقائياً عن المجلدات التي تحتوي على __init__.py
13
+ classifiers=[
14
+ "Programming Language :: Python :: 3",
15
+ "License :: OSI Approved :: MIT License",
16
+ "Operating System :: OS Independent",
17
+ ],
18
+ python_requires='>=3.6',
19
+ )