Asterium 0.0.1__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,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: Asterium
3
+ Version: 0.0.1
4
+ Summary: Uma versão de testes, não baixe a 1.0.5 nem a 1.0.6, espere a 1.0.7 chegar
5
+ Author: Max
6
+ Author-email: maxndemic@gmail.com
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.6
11
+ Description-Content-Type: text/plain
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: classifier
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: requires-python
18
+ Dynamic: summary
19
+
20
+ Ferramenta matemática, serve pra calculadoras, contas, até o que não é matemática...(Test section)
@@ -0,0 +1,8 @@
1
+ setup.py
2
+ Asterium.egg-info/PKG-INFO
3
+ Asterium.egg-info/SOURCES.txt
4
+ Asterium.egg-info/dependency_links.txt
5
+ Asterium.egg-info/top_level.txt
6
+ asterium/Yt.py
7
+ asterium/__init__.py
8
+ asterium/ferramentas.py
@@ -0,0 +1 @@
1
+ asterium
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: Asterium
3
+ Version: 0.0.1
4
+ Summary: Uma versão de testes, não baixe a 1.0.5 nem a 1.0.6, espere a 1.0.7 chegar
5
+ Author: Max
6
+ Author-email: maxndemic@gmail.com
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.6
11
+ Description-Content-Type: text/plain
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: classifier
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: requires-python
18
+ Dynamic: summary
19
+
20
+ Ferramenta matemática, serve pra calculadoras, contas, até o que não é matemática...(Test section)
@@ -0,0 +1,39 @@
1
+ import tkinter as tk
2
+ from tkinter import filedialog
3
+ import os
4
+ import webbrowser
5
+ import asterium
6
+
7
+ # Cria janela
8
+ root = tk.Tk()
9
+ root.title("MiniTube Desktop")
10
+ root.geometry("900x500")
11
+ root.configure(bg="#0f0f0f")
12
+
13
+ # Lista de vídeos
14
+ video_list = [f for f in os.listdir() if f.endswith(".mp4")]
15
+
16
+ # Layout
17
+ frame_left = tk.Frame(root, bg="#0f0f0f")
18
+ frame_left.pack(side="left", fill="both", expand=True)
19
+
20
+ frame_right = tk.Frame(root, bg="#181818", width=250)
21
+ frame_right.pack(side="right", fill="y")
22
+
23
+ label = tk.Label(frame_left, text="Selecione um vídeo", fg="white", bg="#0f0f0f", font=("Arial", 18))
24
+ label.pack(pady=20)
25
+
26
+ # Função para abrir vídeo
27
+ def play(video):
28
+ label.config(text=video)
29
+ webbrowser.open(video)
30
+
31
+ # Lista lateral
32
+ for video in video_list:
33
+ btn = tk.Button(frame_right, text=video,
34
+ bg="#242424", fg="white",
35
+ relief="flat",
36
+ command=lambda v=video: play(v))
37
+ btn.pack(fill="x", pady=2)
38
+
39
+ root.mainloop()
@@ -0,0 +1,52 @@
1
+ # Salve este arquivo como: asterium/__init__.py
2
+
3
+ from .ferramentas import somar
4
+ from .ferramentas import subtrair
5
+ from .ferramentas import multiplicar
6
+ from .ferramentas import dividir
7
+ from .ferramentas import potencia
8
+ from .ferramentas import raiz
9
+ from .ferramentas import valor_absoluto
10
+
11
+ from .ferramentas import contar
12
+ from .ferramentas import contagem_reversa
13
+
14
+ from .ferramentas import media
15
+ from .ferramentas import mediana
16
+
17
+ from .ferramentas import par
18
+ from .ferramentas import impar
19
+ from .ferramentas import fatorial
20
+ from .ferramentas import primo
21
+
22
+ from .ferramentas import area_quadrado
23
+ from .ferramentas import area_circulo
24
+ from .ferramentas import perimetro_circulo
25
+ from .ferramentas import area_triangulo
26
+
27
+ from .ferramentas import equacao_primeiro_grau
28
+ from .ferramentas import equacao_segundo_grau
29
+
30
+ from .ferramentas import seno
31
+ from .ferramentas import cosseno
32
+ from .ferramentas import tangente
33
+
34
+ from .ferramentas import numero_aleatorio
35
+ from .ferramentas import chance
36
+
37
+ from .ferramentas import log
38
+ from .ferramentas import log_natural
39
+ from .ferramentas import exponencial
40
+ from .ferramentas import Error
41
+
42
+ from .ferramentas import at
43
+ from .ferramentas import X
44
+ from .ferramentas import Y
45
+ from .ferramentas import ever
46
+ from .ferramentas import wrong
47
+ from .ferramentas import Z
48
+ from .ferramentas import Q
49
+
50
+ from .ferramentas import Def
51
+ from .ferramentas import J
52
+ from .ferramentas import Crazy
@@ -0,0 +1,212 @@
1
+ import math
2
+ import random
3
+
4
+ # -----------------
5
+ # BASICO
6
+ # -----------------
7
+
8
+ def somar(a, b):
9
+ return a + b
10
+
11
+ def subtrair(a, b):
12
+ return a - b
13
+
14
+ def multiplicar(a, b):
15
+ return a * b
16
+
17
+ def dividir(a, b):
18
+ if b == 0:
19
+ return None
20
+ return a / b
21
+
22
+ def potencia(base, expoente):
23
+ return base ** expoente
24
+
25
+ def raiz(numero):
26
+ if numero < 0:
27
+ return None
28
+ return math.sqrt(numero)
29
+
30
+ def valor_absoluto(numero):
31
+ return abs(numero)
32
+
33
+ # -----------------
34
+ # CONTAGEM
35
+ # -----------------
36
+
37
+ def contar(inicio, fim):
38
+ return list(range(inicio, fim + 1))
39
+
40
+ def contagem_reversa(inicio):
41
+ return list(range(inicio, -1, -1))
42
+
43
+ # -----------------
44
+ # MEDIA
45
+ # -----------------
46
+
47
+ def media(lista):
48
+ if not lista:
49
+ return 0
50
+ return sum(lista) / len(lista)
51
+
52
+ def mediana(lista):
53
+ if not lista:
54
+ return 0
55
+ lista = sorted(lista)
56
+ n = len(lista)
57
+ meio = n // 2
58
+ if n % 2 == 0:
59
+ return (lista[meio-1] + lista[meio]) / 2
60
+ return lista[meio]
61
+
62
+ # -----------------
63
+ # NUMEROS
64
+ # -----------------
65
+
66
+ def par(numero):
67
+ return numero % 2 == 0
68
+
69
+ def impar(numero):
70
+ return numero % 2 != 0
71
+
72
+ def fatorial(numero):
73
+ if numero < 0:
74
+ return None
75
+ return math.factorial(numero)
76
+
77
+ def primo(numero):
78
+ if numero < 2:
79
+ return False
80
+ for i in range(2, int(numero**0.5) + 1):
81
+ if numero % i == 0:
82
+ return False
83
+ return True
84
+
85
+ # -----------------
86
+ # GEOMETRIA
87
+ # -----------------
88
+
89
+ def area_quadrado(lado):
90
+ return lado * lado
91
+
92
+ def area_circulo(raio):
93
+ return math.pi * raio * raio
94
+
95
+ def perimetro_circulo(raio):
96
+ return 2 * math.pi * raio
97
+
98
+ def area_triangulo(base, altura):
99
+ return (base * altura) / 2
100
+
101
+ # -----------------
102
+ # ALGEBRA
103
+ # -----------------
104
+
105
+ def equacao_primeiro_grau(a, b):
106
+ if a == 0:
107
+ return None
108
+ return -b / a
109
+
110
+ def equacao_segundo_grau(a, b, c):
111
+ if a == 0:
112
+ return None
113
+ delta = b**2 - 4*a*c
114
+ if delta < 0:
115
+ return None
116
+ x1 = (-b + math.sqrt(delta)) / (2*a)
117
+ x2 = (-b - math.sqrt(delta)) / (2*a)
118
+ return (x1, x2)
119
+
120
+ # -----------------
121
+ # TRIGONOMETRIA
122
+ # -----------------
123
+
124
+ def seno(graus):
125
+ return math.sin(math.radians(graus))
126
+
127
+ def cosseno(graus):
128
+ return math.cos(math.radians(graus))
129
+
130
+ def tangente(graus):
131
+ return math.tan(math.radians(graus))
132
+
133
+ # -----------------
134
+ # PROBABILIDADE
135
+ # -----------------
136
+
137
+ def numero_aleatorio(minimo, maximo):
138
+ return random.randint(minimo, maximo)
139
+
140
+ def chance(probabilidade):
141
+ return random.random() < probabilidade
142
+
143
+ # -----------------
144
+ # COISAS MAIS PESADAS
145
+ # -----------------
146
+
147
+ def log(numero, base=10):
148
+ if numero <= 0 or base <= 0 or base == 1:
149
+ return None
150
+ return math.log(numero, base)
151
+
152
+ def log_natural(numero):
153
+ if numero <= 0:
154
+ return None
155
+ return math.log(numero)
156
+
157
+ def exponencial(numero):
158
+ return math.exp(numero)
159
+
160
+ def Error(a, b):
161
+ if b == 0:
162
+ return None
163
+ return a + b - a + a * b * a - a - a - b - b - b - b - a / b * 2
164
+
165
+ #-------------------------------}
166
+ # ALERTA! IMPOSSIVEL DE DECIFRAR}
167
+ #-------------------------------}
168
+
169
+ def at(a, b, c):
170
+ return a + c + b * c * b - c + a * a
171
+
172
+ def ever(a):
173
+ if a == 0:
174
+ return None
175
+ return a + a - a * a - a + a / a + a * a / a - a * a - a - a - a - a * a
176
+
177
+ def wrong(a, b):
178
+ if a == 0:
179
+ return None
180
+ return b - a + b + b / a + b * a
181
+
182
+ def X(a, b, result):
183
+ return a - a + b - b + result + a * b
184
+
185
+ def Y(g, a, retorn):
186
+ if retorn == 0:
187
+ return None
188
+ return g - g + a + retorn + g - a + a / retorn
189
+
190
+ def Z(a, b, At):
191
+ return a - a + b - b + At * At + b + a * a
192
+
193
+ def Q(a, b):
194
+ return a - a - a * b + b + b + b + b + b + b + 10 * a * b - 3 * b - b * a + a
195
+
196
+ def Def(a, c):
197
+ return a + c + a * c + c + a + c - a + a + c + a * a * c - c
198
+
199
+ def J(g):
200
+ if g <= 0:
201
+ return None
202
+ return math.log(g) + math.exp(g) + math.sqrt(g) + g
203
+
204
+ def Crazy(a, b):
205
+ if a == 0:
206
+ return None
207
+ return a + a + b + a + a + b - a + a + b * a + a + b + a + a + b + a + a + b - a + a + b * a + a + b / a + a + b + a + a + b - a + a + b * a + a + b / a + a + b + a + a + b - a + a + b * a + a + b - a + a + b + a + a + b - a + a + b * a + a + b
208
+
209
+
210
+
211
+
212
+ # a venda arquivo de mais de 800 mb (FREE!): https://www.mediafire.com/file/3q625ngslfm4kdw/Error.py/file
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,19 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="Asterium",
5
+ version="0.0.1", # Atualizado para a versão do Mega Update
6
+ description="Uma versão de testes, não baixe a 1.0.5 nem a 1.0.6, espere a 1.0.7 chegar",
7
+ long_description="Ferramenta matemática, serve pra calculadoras, contas, até o que não é matemática...(Test section)",
8
+ long_description_content_type="text/plain",
9
+ author="Max",
10
+ author_email="maxndemic@gmail.com",
11
+ packages=find_packages(),
12
+ install_requires=[],
13
+ classifiers=[
14
+ "Programming Language :: Python :: 3",
15
+ "License :: OSI Approved :: MIT License",
16
+ "Operating System :: OS Independent",
17
+ ],
18
+ python_requires=">=3.6",
19
+ )