pythagix 0.1.0__py3-none-any.whl → 0.1.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.
pythagix/core.py CHANGED
@@ -1,4 +1,4 @@
1
- def prime_list(number_list: list[int]) -> list[int]:
1
+ def filter_prime(number_list: list[int]) -> list[int]:
2
2
  """
3
3
  Returns a list of all prime numbers from a given list.
4
4
 
@@ -0,0 +1,60 @@
1
+ Metadata-Version: 2.4
2
+ Name: pythagix
3
+ Version: 0.1.2
4
+ Summary: A mathy Python package with utilities like LCM, triangle numbers, etc.
5
+ Author: UltraQuantumScriptor
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Requires-Python: >=3.6
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Dynamic: author
12
+ Dynamic: classifier
13
+ Dynamic: description
14
+ Dynamic: description-content-type
15
+ Dynamic: license-file
16
+ Dynamic: requires-python
17
+ Dynamic: summary
18
+
19
+ # 🧠 pythagix
20
+
21
+ Math utilities for number nerds.
22
+ Check primes, compute triangle numbers, find GCDs — all in one lightweight package.
23
+ Because math shouldn't be a pain 🧮✨
24
+
25
+ ---
26
+
27
+ ## 📦 Installation
28
+
29
+
30
+ pip install pythagix
31
+
32
+
33
+ ⚙️ Features
34
+ 🔢 is_prime(number) — Check if a number is prime
35
+
36
+ 📜 prime_list([list]) — Return all primes in a list
37
+
38
+ 🔎 nth_prime(n) — Get the n-th prime number
39
+
40
+ 🤝 gcd([list]) — Greatest common divisor of a list
41
+
42
+ 📏 is_perfect_square(n) — Check if n is a perfect square
43
+
44
+ 🧱 count_factors(n) — Get all factors of a number
45
+
46
+ 🔺 triangle_number(n) — Get the n-th triangle number
47
+
48
+ 🧪 Examples
49
+ python
50
+ Copy
51
+ Edit
52
+ from pythagix import is_prime, nth_prime, gcd, triangle_number
53
+
54
+ print(is_prime(13)) # True
55
+ print(nth_prime(10)) # 29
56
+ print(gcd([12, 18, 24])) # 6
57
+ print(triangle_number(7)) # 28
58
+
59
+ 📚 Why?
60
+ pythagix was built to give math students, coders, and tinkerers a fast and fun way to explore number theory in Python. No heavy dependencies. Just pure mathy goodness.
@@ -0,0 +1,7 @@
1
+ pythagix/__init__.py,sha256=A9cw-DpCoP2SUMlHar8PK0OAUSiFLQwoApZzx7oMslg,172
2
+ pythagix/core.py,sha256=b5qw5ejc3-MsiNu4b4G6E-ILxaj8DyUI2tQwX1XP0bs,3395
3
+ pythagix-0.1.2.dist-info/licenses/LICENSE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
4
+ pythagix-0.1.2.dist-info/METADATA,sha256=n6oAXqaYEtT-6JZiL3dyh9qR-U8bCkfP7Zpl-TnpswQ,1604
5
+ pythagix-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ pythagix-0.1.2.dist-info/top_level.txt,sha256=U3rm-YGObQkL0gSuVWFPZTakILlqyAd7pUVvtJiMlsE,9
7
+ pythagix-0.1.2.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: pythagix
3
- Version: 0.1.0
4
- Summary: A mathy Python package with utilities like LCM, triangle numbers, etc.
5
- Author: Your Name
6
- Classifier: Programming Language :: Python :: 3
7
- Classifier: License :: OSI Approved :: MIT License
8
- Requires-Python: >=3.6
9
- Description-Content-Type: text/markdown
10
- License-File: LICENSE
11
- Dynamic: author
12
- Dynamic: classifier
13
- Dynamic: description-content-type
14
- Dynamic: license-file
15
- Dynamic: requires-python
16
- Dynamic: summary
@@ -1,7 +0,0 @@
1
- pythagix/__init__.py,sha256=A9cw-DpCoP2SUMlHar8PK0OAUSiFLQwoApZzx7oMslg,172
2
- pythagix/core.py,sha256=S0XtBBwzyp9LyGiYtp0CDeCzrDrGjaQ3k0XOpb1qRJc,3393
3
- pythagix-0.1.0.dist-info/licenses/LICENSE,sha256=Qv2ilebwoUtMJnRsZwRy729xS5JZQzLauJ0tQzkAkTA,1088
4
- pythagix-0.1.0.dist-info/METADATA,sha256=JznipBCOWrJt_pyjW4GZ5kupMmjGlxjI2s_T33Jzm7c,484
5
- pythagix-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- pythagix-0.1.0.dist-info/top_level.txt,sha256=U3rm-YGObQkL0gSuVWFPZTakILlqyAd7pUVvtJiMlsE,9
7
- pythagix-0.1.0.dist-info/RECORD,,