multilingual-password-auditor 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 Abdallah Ibrahim
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,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: multilingual-password-auditor
3
+ Version: 1.0.0
4
+ Summary: Client for the Arabic and Multilingual Password Auditor API: password strength scoring that understands Arabic, Arabizi, Egyptian mobile numbers and Arabic keyboard walks.
5
+ Author-email: Abdallah Ibrahim <abdallahibrahim@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605
8
+ Project-URL: Repository, https://github.com/shetosnet/arabic-password-patterns
9
+ Keywords: password,password-strength,security,arabic,zxcvbn-alternative,password-audit,zyla
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Security
15
+ Requires-Python: >=3.8
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Dynamic: license-file
19
+
20
+ # multilingual-password-auditor
21
+
22
+ Python client for the **[Arabic and Multilingual Password Auditor API](https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605)** - password strength scoring that understands how people actually build passwords in Arabic and English: Arabizi (`m7md`), Arabic-Indic digits (`١٢٣٤٥٦`), Egyptian mobile numbers, Arabic keyboard walks (`صثقفغع` = the Arabic `qwerty`), local names in both scripts, dates, and leetspeak.
23
+
24
+ If you use zxcvbn today: it is English-only and has not been updated since 2017. This API covers its blind spots for Arabic-speaking users.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ pip install multilingual-password-auditor
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```python
35
+ import os
36
+ from multilingual_password_auditor import PasswordAuditor
37
+
38
+ client = PasswordAuditor(os.environ["ZYLA_KEY"]) # get a key on Zyla (free trial: 50 requests)
39
+
40
+ report = client.analyze("m7md_2020")
41
+ print(report["score"], report["status"], report["resilience"])
42
+ # 52 MODERATE 5 minutes
43
+ print(report["vulnerabilities"])
44
+
45
+ client.analyze("P@ssw0rd123", check_cloud=True) # + k-anonymity breach check
46
+ client.generate(20) # strong password, score >= 90
47
+ ```
48
+
49
+ The API is stateless: passwords are analyzed in memory and never stored or logged. With `check_cloud`, only the first 5 characters of the SHA-1 hash leave the server (k-anonymity).
50
+
51
+ Zero dependencies, Python 3.8+.
52
+
53
+ ## Links
54
+
55
+ - [API listing and pricing](https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605) - 10,000 requests/month for $24.99, 7-day free trial
56
+ - [Live scored examples](https://shetosnet.github.io/arabic-password-patterns/)
57
+ - [Arabic password pattern research](https://github.com/shetosnet/arabic-password-patterns)
58
+
59
+ ## License
60
+
61
+ MIT - Abdallah Ibrahim
@@ -0,0 +1,42 @@
1
+ # multilingual-password-auditor
2
+
3
+ Python client for the **[Arabic and Multilingual Password Auditor API](https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605)** - password strength scoring that understands how people actually build passwords in Arabic and English: Arabizi (`m7md`), Arabic-Indic digits (`١٢٣٤٥٦`), Egyptian mobile numbers, Arabic keyboard walks (`صثقفغع` = the Arabic `qwerty`), local names in both scripts, dates, and leetspeak.
4
+
5
+ If you use zxcvbn today: it is English-only and has not been updated since 2017. This API covers its blind spots for Arabic-speaking users.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pip install multilingual-password-auditor
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```python
16
+ import os
17
+ from multilingual_password_auditor import PasswordAuditor
18
+
19
+ client = PasswordAuditor(os.environ["ZYLA_KEY"]) # get a key on Zyla (free trial: 50 requests)
20
+
21
+ report = client.analyze("m7md_2020")
22
+ print(report["score"], report["status"], report["resilience"])
23
+ # 52 MODERATE 5 minutes
24
+ print(report["vulnerabilities"])
25
+
26
+ client.analyze("P@ssw0rd123", check_cloud=True) # + k-anonymity breach check
27
+ client.generate(20) # strong password, score >= 90
28
+ ```
29
+
30
+ The API is stateless: passwords are analyzed in memory and never stored or logged. With `check_cloud`, only the first 5 characters of the SHA-1 hash leave the server (k-anonymity).
31
+
32
+ Zero dependencies, Python 3.8+.
33
+
34
+ ## Links
35
+
36
+ - [API listing and pricing](https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605) - 10,000 requests/month for $24.99, 7-day free trial
37
+ - [Live scored examples](https://shetosnet.github.io/arabic-password-patterns/)
38
+ - [Arabic password pattern research](https://github.com/shetosnet/arabic-password-patterns)
39
+
40
+ ## License
41
+
42
+ MIT - Abdallah Ibrahim
@@ -0,0 +1,24 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "multilingual-password-auditor"
7
+ version = "1.0.0"
8
+ description = "Client for the Arabic and Multilingual Password Auditor API: password strength scoring that understands Arabic, Arabizi, Egyptian mobile numbers and Arabic keyboard walks."
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = {text = "MIT"}
12
+ authors = [{name = "Abdallah Ibrahim", email = "abdallahibrahim@gmail.com"}]
13
+ keywords = ["password", "password-strength", "security", "arabic", "zxcvbn-alternative", "password-audit", "zyla"]
14
+ classifiers = [
15
+ "Development Status :: 5 - Production/Stable",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Programming Language :: Python :: 3",
19
+ "Topic :: Security",
20
+ ]
21
+
22
+ [project.urls]
23
+ Homepage = "https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605"
24
+ Repository = "https://github.com/shetosnet/arabic-password-patterns"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,6 @@
1
+ """Client for the Arabic and Multilingual Password Auditor API on Zyla API Hub."""
2
+
3
+ from .client import PasswordAuditor, PasswordAuditorError
4
+
5
+ __all__ = ["PasswordAuditor", "PasswordAuditorError"]
6
+ __version__ = "1.0.0"
@@ -0,0 +1,64 @@
1
+ """Zero-dependency client for the Arabic and Multilingual Password Auditor API."""
2
+
3
+ import json
4
+ from urllib import request as _req
5
+ from urllib import error as _err
6
+ from urllib import parse as _parse
7
+
8
+ _BASE = "https://zylalabs.com/api/15605/arabic+and+multilingual+password+auditor+api"
9
+ _ANALYZE_URL = _BASE + "/42105/analyze+password+strength+and+vulnerabilities"
10
+ _GENERATE_URL = _BASE + "/42106/generate+cryptographically+strong+password"
11
+
12
+
13
+ class PasswordAuditorError(Exception):
14
+ """Raised on API errors (bad key, rate limit, invalid input)."""
15
+
16
+
17
+ class PasswordAuditor:
18
+ """Synchronous client. Get an API key at the Zyla listing (see project README)."""
19
+
20
+ def __init__(self, api_key, timeout=30):
21
+ if not api_key or not isinstance(api_key, str):
22
+ raise ValueError("PasswordAuditor: an API key is required")
23
+ self._api_key = api_key
24
+ self._timeout = timeout
25
+
26
+ def analyze(self, password, check_cloud=False):
27
+ """Score a password (max 256 chars).
28
+
29
+ Returns the audit report dict: score (0-100), status
30
+ (WEAK/MODERATE/STRONG), true_entropy, resilience (time to crack),
31
+ vulnerabilities, compliance, and recommended_alternative when weak.
32
+ check_cloud=True adds a k-anonymity breach lookup.
33
+ """
34
+ if not isinstance(password, str) or not password:
35
+ raise ValueError("analyze: password must be a non-empty string")
36
+ body = json.dumps({"password": password, "check_cloud": bool(check_cloud)}).encode()
37
+ return self._call(_ANALYZE_URL, data=body)
38
+
39
+ def generate(self, length=16):
40
+ """Generate a cryptographically strong password (score >= 90, no findings)."""
41
+ url = _GENERATE_URL + "?" + _parse.urlencode({"length": length})
42
+ return self._call(url)
43
+
44
+ def _call(self, url, data=None):
45
+ req = _req.Request(url, data=data, method="POST" if data else "GET")
46
+ req.add_header("Authorization", "Bearer " + self._api_key)
47
+ if data:
48
+ req.add_header("Content-Type", "application/json")
49
+ try:
50
+ with _req.urlopen(req, timeout=self._timeout) as res:
51
+ payload = res.read().decode("utf-8")
52
+ except _err.HTTPError as e:
53
+ try:
54
+ detail = json.loads(e.read().decode("utf-8"))
55
+ msg = detail.get("error") or detail.get("message") or str(e)
56
+ except Exception:
57
+ msg = str(e)
58
+ raise PasswordAuditorError(msg) from None
59
+ except _err.URLError as e:
60
+ raise PasswordAuditorError("network error: %s" % e.reason) from None
61
+ try:
62
+ return json.loads(payload)
63
+ except ValueError:
64
+ raise PasswordAuditorError("non-JSON response from API") from None
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.4
2
+ Name: multilingual-password-auditor
3
+ Version: 1.0.0
4
+ Summary: Client for the Arabic and Multilingual Password Auditor API: password strength scoring that understands Arabic, Arabizi, Egyptian mobile numbers and Arabic keyboard walks.
5
+ Author-email: Abdallah Ibrahim <abdallahibrahim@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605
8
+ Project-URL: Repository, https://github.com/shetosnet/arabic-password-patterns
9
+ Keywords: password,password-strength,security,arabic,zxcvbn-alternative,password-audit,zyla
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Security
15
+ Requires-Python: >=3.8
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Dynamic: license-file
19
+
20
+ # multilingual-password-auditor
21
+
22
+ Python client for the **[Arabic and Multilingual Password Auditor API](https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605)** - password strength scoring that understands how people actually build passwords in Arabic and English: Arabizi (`m7md`), Arabic-Indic digits (`١٢٣٤٥٦`), Egyptian mobile numbers, Arabic keyboard walks (`صثقفغع` = the Arabic `qwerty`), local names in both scripts, dates, and leetspeak.
23
+
24
+ If you use zxcvbn today: it is English-only and has not been updated since 2017. This API covers its blind spots for Arabic-speaking users.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ pip install multilingual-password-auditor
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```python
35
+ import os
36
+ from multilingual_password_auditor import PasswordAuditor
37
+
38
+ client = PasswordAuditor(os.environ["ZYLA_KEY"]) # get a key on Zyla (free trial: 50 requests)
39
+
40
+ report = client.analyze("m7md_2020")
41
+ print(report["score"], report["status"], report["resilience"])
42
+ # 52 MODERATE 5 minutes
43
+ print(report["vulnerabilities"])
44
+
45
+ client.analyze("P@ssw0rd123", check_cloud=True) # + k-anonymity breach check
46
+ client.generate(20) # strong password, score >= 90
47
+ ```
48
+
49
+ The API is stateless: passwords are analyzed in memory and never stored or logged. With `check_cloud`, only the first 5 characters of the SHA-1 hash leave the server (k-anonymity).
50
+
51
+ Zero dependencies, Python 3.8+.
52
+
53
+ ## Links
54
+
55
+ - [API listing and pricing](https://zylalabs.com/api-marketplace/security+%26+cybersecurity/arabic+and+multilingual+password+auditor+api/15605) - 10,000 requests/month for $24.99, 7-day free trial
56
+ - [Live scored examples](https://shetosnet.github.io/arabic-password-patterns/)
57
+ - [Arabic password pattern research](https://github.com/shetosnet/arabic-password-patterns)
58
+
59
+ ## License
60
+
61
+ MIT - Abdallah Ibrahim
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/multilingual_password_auditor/__init__.py
5
+ src/multilingual_password_auditor/client.py
6
+ src/multilingual_password_auditor.egg-info/PKG-INFO
7
+ src/multilingual_password_auditor.egg-info/SOURCES.txt
8
+ src/multilingual_password_auditor.egg-info/dependency_links.txt
9
+ src/multilingual_password_auditor.egg-info/top_level.txt