gbind-info 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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) [2026] [Flexbasei]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,90 @@
1
+ Metadata-Version: 2.4
2
+ Name: gbind_info
3
+ Version: 1.0.0
4
+ Summary: A professional and secure SDK to check Garena account binding information
5
+ Author-email: Flexbase <flexbasei21@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Flexbasei/gbind-info
8
+ Project-URL: Bug Tracker, https://github.com/Flexbasei/gbind-info/issues
9
+ Keywords: garena,api,sdk,account-security,bind,Bind-info
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: Intended Audience :: Developers
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: requests>=2.28.0
23
+ Dynamic: license-file
24
+
25
+ Garena Bind Info SDK 🚀
26
+
27
+ gbind-info is a powerful and secure Python library designed to help developers easily retrieve binding information (current email, pending email, and request countdown) for Garena accounts.
28
+
29
+ Features ✨
30
+ Secure Requests: Automatically rotates User-Agents to prevent request blocking and detection.
31
+ Human-Readable Time: Converts raw countdown seconds into an easy-to-read Day Hour Min Sec format.
32
+ Session Management: Utilizes requests.Session for faster performance and persistent connections.
33
+ Developer Friendly: Clean API design that can be integrated into Flask, Django, or standalone scripts in seconds.
34
+
35
+
36
+ installation 🛠️
37
+ Install the library via pip:
38
+ pip install gbind_info
39
+
40
+
41
+ Quick Start 💻
42
+ Here is a simple example of how to use the library in your project:
43
+
44
+ ```python```
45
+ from gbind_info import InfoClient
46
+
47
+ # Initialize the client
48
+ client = InfoClient()
49
+
50
+ # Provide the Garena Access Token
51
+ ACCESS_TOKEN = "YOUR_GARENA_ACCESS_TOKEN"
52
+
53
+ # Fetch binding data
54
+ result = client.get_bind_info(ACCESS_TOKEN)
55
+
56
+ if result["status"] == "success":
57
+ print(f"Summary: {result['summary']}")
58
+ print(f"Current Email: {result['data']['current_email']}")
59
+ print(f"Human Countdown: {result['data']['countdown_human']}")
60
+ else:
61
+ print(f"Error: {result['message']}")
62
+
63
+
64
+ API Response Structure 📊
65
+ The library returns a structured dictionary for every request:
66
+
67
+ ```json```
68
+ {
69
+ "status": "success",
70
+ "data": {
71
+ "current_email": "user***@gmail.com",
72
+ "pending_email": "new***@gmail.com",
73
+ "countdown_human": "6 Day 23 Hour 59 Min 50 Sec",
74
+ "raw": { "original_api_response_here": "..." }
75
+ },
76
+ "summary": "Pending email confirmation: new***@gmail.com - Confirms in: 6 Day 23 Hour ..."
77
+ }
78
+
79
+
80
+ Technical Workflow
81
+
82
+
83
+ Security & Disclaimer 🛡️
84
+
85
+ This library is intended for educational and research purposes only. Accessing account information without explicit permission may violate Garena's Terms of Service. The developer is not responsible for any misuse, account bans, or legal issues resulting from the use of this software. Use it responsibly.
86
+
87
+
88
+ License 📄
89
+
90
+ Distributed under the MIT License. See LICENSE for more information.
@@ -0,0 +1,66 @@
1
+ Garena Bind Info SDK 🚀
2
+
3
+ gbind-info is a powerful and secure Python library designed to help developers easily retrieve binding information (current email, pending email, and request countdown) for Garena accounts.
4
+
5
+ Features ✨
6
+ Secure Requests: Automatically rotates User-Agents to prevent request blocking and detection.
7
+ Human-Readable Time: Converts raw countdown seconds into an easy-to-read Day Hour Min Sec format.
8
+ Session Management: Utilizes requests.Session for faster performance and persistent connections.
9
+ Developer Friendly: Clean API design that can be integrated into Flask, Django, or standalone scripts in seconds.
10
+
11
+
12
+ installation 🛠️
13
+ Install the library via pip:
14
+ pip install gbind_info
15
+
16
+
17
+ Quick Start 💻
18
+ Here is a simple example of how to use the library in your project:
19
+
20
+ ```python```
21
+ from gbind_info import InfoClient
22
+
23
+ # Initialize the client
24
+ client = InfoClient()
25
+
26
+ # Provide the Garena Access Token
27
+ ACCESS_TOKEN = "YOUR_GARENA_ACCESS_TOKEN"
28
+
29
+ # Fetch binding data
30
+ result = client.get_bind_info(ACCESS_TOKEN)
31
+
32
+ if result["status"] == "success":
33
+ print(f"Summary: {result['summary']}")
34
+ print(f"Current Email: {result['data']['current_email']}")
35
+ print(f"Human Countdown: {result['data']['countdown_human']}")
36
+ else:
37
+ print(f"Error: {result['message']}")
38
+
39
+
40
+ API Response Structure 📊
41
+ The library returns a structured dictionary for every request:
42
+
43
+ ```json```
44
+ {
45
+ "status": "success",
46
+ "data": {
47
+ "current_email": "user***@gmail.com",
48
+ "pending_email": "new***@gmail.com",
49
+ "countdown_human": "6 Day 23 Hour 59 Min 50 Sec",
50
+ "raw": { "original_api_response_here": "..." }
51
+ },
52
+ "summary": "Pending email confirmation: new***@gmail.com - Confirms in: 6 Day 23 Hour ..."
53
+ }
54
+
55
+
56
+ Technical Workflow
57
+
58
+
59
+ Security & Disclaimer 🛡️
60
+
61
+ This library is intended for educational and research purposes only. Accessing account information without explicit permission may violate Garena's Terms of Service. The developer is not responsible for any misuse, account bans, or legal issues resulting from the use of this software. Use it responsibly.
62
+
63
+
64
+ License 📄
65
+
66
+ Distributed under the MIT License. See LICENSE for more information.
@@ -0,0 +1,38 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "gbind_info"
7
+ version = "1.0.0"
8
+ description = "A professional and secure SDK to check Garena account binding information"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = {text = "MIT"}
12
+ authors = [
13
+ { name="Flexbase", email="flexbasei21@gmail.com" },
14
+ ]
15
+ keywords = ["garena", "api", "sdk", "account-security", "bind", "Bind-info"]
16
+
17
+ classifiers = [
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.8",
20
+ "Programming Language :: Python :: 3.9",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "License :: OSI Approved :: MIT License",
24
+ "Operating System :: OS Independent",
25
+ "Intended Audience :: Developers",
26
+ "Topic :: Software Development :: Libraries :: Python Modules",
27
+ ]
28
+
29
+ dependencies = [
30
+ "requests>=2.28.0",
31
+ ]
32
+
33
+ [project.urls]
34
+ "Homepage" = "https://github.com/Flexbasei/gbind-info"
35
+ "Bug Tracker" = "https://github.com/Flexbasei/gbind-info/issues"
36
+
37
+ [tool.setuptools.packages.find]
38
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ from .client import GarenaClient
@@ -0,0 +1,58 @@
1
+ import requests
2
+ from .utils import format_seconds, get_random_ua
3
+
4
+ class InfoClient:
5
+ def __init__(self, timeout=30):
6
+ self.base_url = "https://100067.connect.garena.com/game/account_security/bind:get_bind_info"
7
+ self.timeout = timeout
8
+ self.session = requests.Session()
9
+
10
+ def get_bind_info(self, access_token):
11
+ if not access_token:
12
+ return {"status": "error", "message": "Access token is required"}
13
+
14
+ params = {'app_id': "100067", 'access_token': access_token}
15
+ headers = {
16
+ 'User-Agent': get_random_ua(),
17
+ 'Connection': "Keep-Alive",
18
+ 'Accept-Encoding': "gzip"
19
+ }
20
+
21
+ try:
22
+ response = self.session.get(
23
+ self.base_url,
24
+ params=params,
25
+ headers=headers,
26
+ timeout=self.timeout
27
+ )
28
+
29
+
30
+ response.raise_for_status()
31
+ data = response.json()
32
+
33
+ email = data.get("email", "")
34
+ email_to_be = data.get("email_to_be", "")
35
+ countdown = data.get("request_exec_countdown", 0)
36
+
37
+
38
+ summary = "No recovery email set"
39
+ if email == "" and email_to_be != "":
40
+ summary = f"Pending confirmation: {email_to_be} - In: {format_seconds(countdown)}"
41
+ elif email != "":
42
+ summary = f"Email confirmed: {email}"
43
+
44
+ return {
45
+ "status": "success",
46
+ "data": {
47
+ "current_email": email,
48
+ "pending_email": email_to_be,
49
+ "countdown_human": format_seconds(countdown),
50
+ "raw": data
51
+ },
52
+ "summary": summary
53
+ }
54
+
55
+ except requests.exceptions.RequestException as e:
56
+ return {"status": "error", "message": f"Network error: {str(e)}"}
57
+ except Exception as e:
58
+ return {"status": "error", "message": f"Unexpected error: {str(e)}"}
@@ -0,0 +1,19 @@
1
+ import random
2
+
3
+ def format_seconds(s):
4
+
5
+ if not s or s <= 0: return "0"
6
+ d, h = divmod(s, 86400)
7
+ h, m = divmod(h, 3600)
8
+ m, s = divmod(m, 60)
9
+ return f"{d} Day {h} Hour {m} Min {s} Sec"
10
+
11
+ def get_random_ua():
12
+
13
+ agents = [
14
+ "GarenaMSDK/4.0.19P9(Redmi Note 5;Android 9;en;US;)",
15
+ "GarenaMSDK/4.1.0(Samsung S21;Android 12;en;US;)",
16
+ "GarenaMSDK/3.8.5(Pixel 4;Android 11;en;GB;)",
17
+ "GarenaMSDK/4.0.5(OnePlus 8;Android 10;en;IN;)"
18
+ ]
19
+ return random.choice(agents)
@@ -0,0 +1,90 @@
1
+ Metadata-Version: 2.4
2
+ Name: gbind_info
3
+ Version: 1.0.0
4
+ Summary: A professional and secure SDK to check Garena account binding information
5
+ Author-email: Flexbase <flexbasei21@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Flexbasei/gbind-info
8
+ Project-URL: Bug Tracker, https://github.com/Flexbasei/gbind-info/issues
9
+ Keywords: garena,api,sdk,account-security,bind,Bind-info
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: Intended Audience :: Developers
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: requests>=2.28.0
23
+ Dynamic: license-file
24
+
25
+ Garena Bind Info SDK 🚀
26
+
27
+ gbind-info is a powerful and secure Python library designed to help developers easily retrieve binding information (current email, pending email, and request countdown) for Garena accounts.
28
+
29
+ Features ✨
30
+ Secure Requests: Automatically rotates User-Agents to prevent request blocking and detection.
31
+ Human-Readable Time: Converts raw countdown seconds into an easy-to-read Day Hour Min Sec format.
32
+ Session Management: Utilizes requests.Session for faster performance and persistent connections.
33
+ Developer Friendly: Clean API design that can be integrated into Flask, Django, or standalone scripts in seconds.
34
+
35
+
36
+ installation 🛠️
37
+ Install the library via pip:
38
+ pip install gbind_info
39
+
40
+
41
+ Quick Start 💻
42
+ Here is a simple example of how to use the library in your project:
43
+
44
+ ```python```
45
+ from gbind_info import InfoClient
46
+
47
+ # Initialize the client
48
+ client = InfoClient()
49
+
50
+ # Provide the Garena Access Token
51
+ ACCESS_TOKEN = "YOUR_GARENA_ACCESS_TOKEN"
52
+
53
+ # Fetch binding data
54
+ result = client.get_bind_info(ACCESS_TOKEN)
55
+
56
+ if result["status"] == "success":
57
+ print(f"Summary: {result['summary']}")
58
+ print(f"Current Email: {result['data']['current_email']}")
59
+ print(f"Human Countdown: {result['data']['countdown_human']}")
60
+ else:
61
+ print(f"Error: {result['message']}")
62
+
63
+
64
+ API Response Structure 📊
65
+ The library returns a structured dictionary for every request:
66
+
67
+ ```json```
68
+ {
69
+ "status": "success",
70
+ "data": {
71
+ "current_email": "user***@gmail.com",
72
+ "pending_email": "new***@gmail.com",
73
+ "countdown_human": "6 Day 23 Hour 59 Min 50 Sec",
74
+ "raw": { "original_api_response_here": "..." }
75
+ },
76
+ "summary": "Pending email confirmation: new***@gmail.com - Confirms in: 6 Day 23 Hour ..."
77
+ }
78
+
79
+
80
+ Technical Workflow
81
+
82
+
83
+ Security & Disclaimer 🛡️
84
+
85
+ This library is intended for educational and research purposes only. Accessing account information without explicit permission may violate Garena's Terms of Service. The developer is not responsible for any misuse, account bans, or legal issues resulting from the use of this software. Use it responsibly.
86
+
87
+
88
+ License 📄
89
+
90
+ Distributed under the MIT License. See LICENSE for more information.
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/gbind_info/__init__.py
5
+ src/gbind_info/client.py
6
+ src/gbind_info/utils.py
7
+ src/gbind_info.egg-info/PKG-INFO
8
+ src/gbind_info.egg-info/SOURCES.txt
9
+ src/gbind_info.egg-info/dependency_links.txt
10
+ src/gbind_info.egg-info/requires.txt
11
+ src/gbind_info.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ requests>=2.28.0
@@ -0,0 +1 @@
1
+ gbind_info