pythagix 0.1.0__tar.gz → 0.1.3__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,60 @@
1
+ Metadata-Version: 2.4
2
+ Name: pythagix
3
+ Version: 0.1.3
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
+ ```bash
30
+ pip install pythagix
31
+ ```
32
+
33
+ ⚙️ Features
34
+
35
+ 🔢 is_prime(number) — Check if a number is prime
36
+
37
+ 📜 prime_list([list]) — Return all primes in a list
38
+
39
+ 🔎 nth_prime(n) — Get the n-th prime number
40
+
41
+ 🤝 gcd([list]) — Greatest common divisor of a list
42
+
43
+ 📏 is_perfect_square(n) — Check if n is a perfect square
44
+
45
+ 🧱 count_factors(n) — Get all factors of a number
46
+
47
+ 🔺 triangle_number(n) — Get the n-th triangle number
48
+
49
+ 🧪 Examples
50
+ ```python
51
+ from pythagix import is_prime, nth_prime, gcd, triangle_number
52
+
53
+ print(is_prime(13)) # True
54
+ print(nth_prime(10)) # 29
55
+ print(gcd([12, 18, 24])) # 6
56
+ print(triangle_number(7)) # 28
57
+ ```
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,42 @@
1
+ # 🧠 pythagix
2
+
3
+ Math utilities for number nerds.
4
+ Check primes, compute triangle numbers, find GCDs — all in one lightweight package.
5
+ Because math shouldn't be a pain 🧮✨
6
+
7
+ ---
8
+
9
+ ## 📦 Installation
10
+
11
+ ```bash
12
+ pip install pythagix
13
+ ```
14
+
15
+ ⚙️ Features
16
+
17
+ 🔢 is_prime(number) — Check if a number is prime
18
+
19
+ 📜 prime_list([list]) — Return all primes in a list
20
+
21
+ 🔎 nth_prime(n) — Get the n-th prime number
22
+
23
+ 🤝 gcd([list]) — Greatest common divisor of a list
24
+
25
+ 📏 is_perfect_square(n) — Check if n is a perfect square
26
+
27
+ 🧱 count_factors(n) — Get all factors of a number
28
+
29
+ 🔺 triangle_number(n) — Get the n-th triangle number
30
+
31
+ 🧪 Examples
32
+ ```python
33
+ from pythagix import is_prime, nth_prime, gcd, triangle_number
34
+
35
+ print(is_prime(13)) # True
36
+ print(nth_prime(10)) # 29
37
+ print(gcd([12, 18, 24])) # 6
38
+ print(triangle_number(7)) # 28
39
+ ```
40
+
41
+ 📚 Why?
42
+ 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.
@@ -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.3
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
+ ```bash
30
+ pip install pythagix
31
+ ```
32
+
33
+ ⚙️ Features
34
+
35
+ 🔢 is_prime(number) — Check if a number is prime
36
+
37
+ 📜 prime_list([list]) — Return all primes in a list
38
+
39
+ 🔎 nth_prime(n) — Get the n-th prime number
40
+
41
+ 🤝 gcd([list]) — Greatest common divisor of a list
42
+
43
+ 📏 is_perfect_square(n) — Check if n is a perfect square
44
+
45
+ 🧱 count_factors(n) — Get all factors of a number
46
+
47
+ 🔺 triangle_number(n) — Get the n-th triangle number
48
+
49
+ 🧪 Examples
50
+ ```python
51
+ from pythagix import is_prime, nth_prime, gcd, triangle_number
52
+
53
+ print(is_prime(13)) # True
54
+ print(nth_prime(10)) # 29
55
+ print(gcd([12, 18, 24])) # 6
56
+ print(triangle_number(7)) # 28
57
+ ```
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.
@@ -1,11 +1,15 @@
1
+ # -*- coding: utf-8 -*-
1
2
  from setuptools import setup, find_packages
2
3
 
4
+ with open("README.md", encoding="utf-8") as f:
5
+ long_description = f.read()
6
+
3
7
  setup(
4
8
  name="pythagix",
5
- version="0.1.0",
6
- author="Your Name",
9
+ version="0.1.3",
10
+ author="UltraQuantumScriptor",
7
11
  description="A mathy Python package with utilities like LCM, triangle numbers, etc.",
8
- long_description=open("README.md").read(),
12
+ long_description=long_description,
9
13
  long_description_content_type="text/markdown",
10
14
  packages=find_packages(),
11
15
  classifiers=[
pythagix-0.1.0/PKG-INFO DELETED
@@ -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
pythagix-0.1.0/README.md DELETED
File without changes
@@ -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
File without changes
File without changes
File without changes
File without changes