kececinumbers 0.4.0__py3-none-any.whl → 0.4.2__py3-none-any.whl

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.
kececinumbers/__init__.py CHANGED
@@ -20,7 +20,7 @@ import warnings
20
20
  # importlib.reload(kececinumbers) # F821 undefined name 'kececinumbers'
21
21
 
22
22
  # Paket sürüm numarası
23
- __version__ = "0.4.0"
23
+ __version__ = "0.4.1"
24
24
  __author__ = "Mehmet Keçeci"
25
25
  __email__ = "mkececi@yaani.com"
26
26
 
kececinumbers/_version.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # _version.py
2
2
 
3
- __version__ = "0.4.0"
3
+ __version__ = "0.4.1"
4
4
  __license__ = "MIT"
5
5
  __description__ = "Keçeci Numbers: An Exploration of a Dynamic Sequence Across Diverse Number Sets."
6
6
  __author__ = "Mehmet Keçeci"
@@ -39,6 +39,7 @@ import numpy as np
39
39
  import quaternion
40
40
  import random
41
41
  import re
42
+ import sympy
42
43
  from typing import Any, Dict, List, Optional, Tuple
43
44
 
44
45
 
@@ -301,7 +302,24 @@ def _get_integer_representation(n_input: Any) -> Optional[int]:
301
302
  return None
302
303
 
303
304
  def is_prime(n_input: Any) -> bool:
304
- """Checks if a given number (or its principal component) is prime."""
305
+ """
306
+ Checks if a given number (or its principal component) is prime
307
+ using the robust sympy.isprime function.
308
+ """
309
+ # Adım 1: Karmaşık sayı türünden tamsayıyı çıkarma (Bu kısım aynı kalıyor)
310
+ value_to_check = _get_integer_representation(n_input)
311
+
312
+ # Adım 2: Tamsayı geçerli değilse False döndür
313
+ if value_to_check is None:
314
+ return False
315
+
316
+ # Adım 3: Asallık testini sympy'ye bırak
317
+ # sympy.isprime, 2'den küçük sayılar (1, 0, negatifler) için zaten False döndürür.
318
+ return sympy.isprime(value_to_check)
319
+
320
+ """
321
+ def is_prime(n_input: Any) -> bool:
322
+ #Checks if a given number (or its principal component) is prime.
305
323
  value_to_check = _get_integer_representation(n_input)
306
324
  if value_to_check is None or value_to_check < 2:
307
325
  return False
@@ -313,6 +331,7 @@ def is_prime(n_input: Any) -> bool:
313
331
  if value_to_check % i == 0:
314
332
  return False
315
333
  return True
334
+ """
316
335
 
317
336
  def _is_divisible(value: Any, divisor: int, kececi_type: int) -> bool:
318
337
  """Helper to check divisibility for different number types."""
@@ -1,35 +1,63 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececinumbers
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Keçeci Numbers: An Exploration of a Dynamic Sequence Across Diverse Number Sets
5
5
  Home-page: https://github.com/WhiteSymmetry/kececinumbers
6
6
  Author: Mehmet Keçeci
7
- Author-email: mkececi@yaani.com
7
+ Author-email: Mehmet Keçeci <mkececi@yaani.com>
8
8
  Maintainer: Mehmet Keçeci
9
9
  Maintainer-email: mkececi@yaani.com
10
- License: MIT
10
+ License: MIT License
11
+
12
+ Copyright (c) 2025 Mehmet Keçeci
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+
32
+ Project-URL: Homepage, https://github.com/WhiteSymmetry/kececinumbers
33
+ Project-URL: Bug Tracker, https://github.com/WhiteSymmetry/kececinumbers/issues
11
34
  Classifier: Programming Language :: Python :: 3
12
35
  Classifier: License :: OSI Approved :: MIT License
13
36
  Classifier: Operating System :: OS Independent
37
+ Classifier: Intended Audience :: Science/Research
38
+ Classifier: Topic :: Scientific/Engineering :: Visualization
14
39
  Requires-Python: >=3.9
15
40
  Description-Content-Type: text/markdown
16
41
  License-File: LICENSE
17
42
  Requires-Dist: numpy
18
43
  Requires-Dist: matplotlib
19
44
  Requires-Dist: numpy-quaternion
45
+ Requires-Dist: sympy
46
+ Provides-Extra: test
47
+ Requires-Dist: pytest; extra == "test"
48
+ Requires-Dist: pytest-cov; extra == "test"
49
+ Requires-Dist: pytest-mock; extra == "test"
50
+ Requires-Dist: ruff; extra == "test"
51
+ Requires-Dist: numpy; extra == "test"
52
+ Requires-Dist: matplotlib; extra == "test"
53
+ Requires-Dist: numpy-quaternion; extra == "test"
54
+ Requires-Dist: sympy; extra == "test"
20
55
  Dynamic: author
21
- Dynamic: author-email
22
- Dynamic: classifier
23
- Dynamic: description
24
- Dynamic: description-content-type
25
56
  Dynamic: home-page
26
- Dynamic: license
27
57
  Dynamic: license-file
28
58
  Dynamic: maintainer
29
59
  Dynamic: maintainer-email
30
- Dynamic: requires-dist
31
60
  Dynamic: requires-python
32
- Dynamic: summary
33
61
 
34
62
  # Keçeci Numbers: Keçeci Sayıları
35
63
  ---
@@ -0,0 +1,8 @@
1
+ kececinumbers/__init__.py,sha256=OMsN087Zs4HBKUZvOOo7357Wae9GIlzJgx1czQIuHSA,3509
2
+ kececinumbers/_version.py,sha256=qsnb57lop0P84-XWlHWnog8Wvz4HRh0jRq6J1RM6B6U,428
3
+ kececinumbers/kececinumbers.py,sha256=xCEc-nj8wj4jd290nkdInytaSMNS56bUJo7VZIpzUFM,39565
4
+ kececinumbers-0.4.2.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
5
+ kececinumbers-0.4.2.dist-info/METADATA,sha256=tGErqeZ6D7-OYbJ3h4fGPIc_S2b1BGn40OL-OTfcR90,32996
6
+ kececinumbers-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ kececinumbers-0.4.2.dist-info/top_level.txt,sha256=VvlbQKmTjOlzBbvq54-AaXp_WPRZ5dOhw91lV-ytPRQ,14
8
+ kececinumbers-0.4.2.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- kececinumbers/__init__.py,sha256=9KyNTIE5g5P57htb-y2gSkKeVeJ5Y87y8OxAc4AghRI,3509
2
- kececinumbers/_version.py,sha256=PDst6Oqe7Wkg3Vrgc3Rs5vJGmzJuWsQoN9My-YwUeHY,428
3
- kececinumbers/kececinumbers.py,sha256=24-FWgIYuHBjD9-pK1qsoFuulUQWwauSiiYP3y4JgeA,38930
4
- kececinumbers-0.4.0.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
5
- kececinumbers-0.4.0.dist-info/METADATA,sha256=VlEBY_EszFF5wnT7xoer0zzcXqC4wc5nLBJa0sqISls,31263
6
- kececinumbers-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- kececinumbers-0.4.0.dist-info/top_level.txt,sha256=VvlbQKmTjOlzBbvq54-AaXp_WPRZ5dOhw91lV-ytPRQ,14
8
- kececinumbers-0.4.0.dist-info/RECORD,,