moremaths 0.1.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,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: moremaths
3
+ Version: 0.1.0
4
+ Summary: custom tkinter but easier
5
+ Author-email: Pedro Davi <pdavi.santosdesouza@gmail.com>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ \#Easiest ctk ever
10
+
11
+ A edit of ctk in python to make it easier
12
+
13
+
14
+
15
+ \## Como instalar
16
+
17
+ ```bash
18
+
19
+ pip install .
20
+
21
+
22
+
@@ -0,0 +1,14 @@
1
+ \#Easiest ctk ever
2
+
3
+ A edit of ctk in python to make it easier
4
+
5
+
6
+
7
+ \## Como instalar
8
+
9
+ ```bash
10
+
11
+ pip install .
12
+
13
+
14
+
@@ -0,0 +1,20 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "moremaths"
7
+ version = "0.1.0"
8
+ description = "custom tkinter but easier"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ authors = [
12
+ { name="Pedro Davi", email="pdavi.santosdesouza@gmail.com" },
13
+ ]
14
+
15
+ dependencies = [
16
+ ]
17
+
18
+
19
+ [project.scripts]
20
+
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ from .core import isprime, iseven, isperfsquar, hapri, execute
@@ -0,0 +1,72 @@
1
+ import time as t
2
+ import sys
3
+ sys.set_int_max_str_digits(0)
4
+ def isprime(n):
5
+ try:
6
+ n = int(n)
7
+ if n < 2: return False
8
+ if n == 2 or n == 3: return True
9
+ if n % 2 == 0 or n % 3 == 0: return False
10
+ i = 5
11
+ while i * i <= n:
12
+ if n % i == 0 or n % (i + 2) == 0: return False
13
+ i += 6
14
+ return True
15
+ except:
16
+ return False
17
+ def iseven(n):
18
+ try:
19
+ n=int(n)
20
+ if n%2==0:
21
+ return True
22
+ else:
23
+ return False
24
+ except: return False
25
+ def isperfsquar(n):
26
+ try:
27
+ n=int(n)
28
+ t=1
29
+ while t*t<=n:
30
+ a=n/t
31
+ if n==1:
32
+ return True
33
+ if a==t:
34
+ return True
35
+ t+=1
36
+ return False
37
+ except: return False
38
+ def hapri(n, rn):
39
+ try:
40
+ n=int(n)
41
+ rn=int(rn)
42
+ t=1
43
+ i='b'
44
+ while t**rn<=n:
45
+ a=n//t
46
+ b=t**(rn-1)
47
+ if n==1:
48
+ return True
49
+ if a==b:
50
+ return True
51
+ t+=1
52
+ return False
53
+ except: return False
54
+ def execute(n):
55
+ try:
56
+ n=int(n)
57
+ a={}
58
+ a['number']=n
59
+ if iseven(n):
60
+ a['even']=True
61
+ else:
62
+ a['even']=False
63
+ if isprime(n):
64
+ a['prime']=True
65
+ else:
66
+ a['prime']=False
67
+ if isperfsquar(n):
68
+ a['perfect square']=True
69
+ else:
70
+ a['perfect square']=False
71
+ return a
72
+ except: return None
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: moremaths
3
+ Version: 0.1.0
4
+ Summary: custom tkinter but easier
5
+ Author-email: Pedro Davi <pdavi.santosdesouza@gmail.com>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ \#Easiest ctk ever
10
+
11
+ A edit of ctk in python to make it easier
12
+
13
+
14
+
15
+ \## Como instalar
16
+
17
+ ```bash
18
+
19
+ pip install .
20
+
21
+
22
+
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/moremaths/__init__.py
4
+ src/moremaths/core.py
5
+ src/moremaths.egg-info/PKG-INFO
6
+ src/moremaths.egg-info/SOURCES.txt
7
+ src/moremaths.egg-info/dependency_links.txt
8
+ src/moremaths.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ moremaths