Asterium 0.6.7__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.6.7
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.6.7
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,42 @@
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
+ from .ferramentas import contar
11
+ from .ferramentas import contagem_reversa
12
+ from .ferramentas import media
13
+ from .ferramentas import mediana
14
+ from .ferramentas import par
15
+ from .ferramentas import impar
16
+ from .ferramentas import fatorial
17
+ from .ferramentas import primo
18
+ from .ferramentas import area_quadrado
19
+ from .ferramentas import area_circulo
20
+ from .ferramentas import perimetro_circulo
21
+ from .ferramentas import area_triangulo
22
+ from .ferramentas import equacao_primeiro_grau
23
+ from .ferramentas import equacao_segundo_grau
24
+ from .ferramentas import seno
25
+ from .ferramentas import cosseno
26
+ from .ferramentas import tangente
27
+ from .ferramentas import numero_aleatorio
28
+ from .ferramentas import chance
29
+ from .ferramentas import log
30
+ from .ferramentas import log_natural
31
+ from .ferramentas import exponencial
32
+ from .ferramentas import Error
33
+ from .ferramentas import at
34
+ from .ferramentas import X
35
+ from .ferramentas import Y
36
+ from .ferramentas import ever
37
+ from .ferramentas import wrong
38
+ from .ferramentas import Z
39
+ from .ferramentas import Crazy
40
+ from .ferramentas import Q
41
+ from .ferramentas import Def
42
+ from .ferramentas import J
@@ -0,0 +1,195 @@
1
+
2
+ import math
3
+ import random
4
+
5
+
6
+ # -----------------
7
+ # BASICO
8
+ # -----------------
9
+
10
+ def somar(a, b):
11
+ return a + b
12
+
13
+ def subtrair(a, b):
14
+ return a - b
15
+
16
+ def multiplicar(a, b):
17
+ return a * b
18
+
19
+ def dividir(a, b):
20
+ return a / b
21
+
22
+ def potencia(base, expoente):
23
+ return base ** expoente
24
+
25
+ def raiz(numero):
26
+ return math.sqrt(numero)
27
+
28
+ def valor_absoluto(numero):
29
+ return abs(numero)
30
+
31
+ # -----------------
32
+ # CONTAGEM
33
+ # -----------------
34
+
35
+ def contar(inicio, fim):
36
+ return list(range(inicio, fim + 1))
37
+
38
+ def contagem_reversa(inicio):
39
+ return list(range(inicio, -1, -1))
40
+
41
+ # -----------------
42
+ # MEDIA
43
+ # -----------------
44
+
45
+ def media(lista):
46
+ return sum(lista) / len(lista)
47
+
48
+ def mediana(lista):
49
+ lista = sorted(lista)
50
+ n = len(lista)
51
+ meio = n // 2
52
+ if n % 2 == 0:
53
+ return (lista[meio-1] + lista[meio]) / 2
54
+ return lista[meio]
55
+
56
+ # -----------------
57
+ # NUMEROS
58
+ # -----------------
59
+
60
+ def par(numero):
61
+ return numero % 2 == 0
62
+
63
+ def impar(numero):
64
+ return numero % 2 != 0
65
+
66
+ def fatorial(numero):
67
+ return math.factorial(numero)
68
+
69
+ def primo(numero):
70
+ if numero < 2:
71
+ return False
72
+ for i in range(2, int(numero**0.5) + 1):
73
+ if numero % i == 0:
74
+ return False
75
+ return True
76
+
77
+ # -----------------
78
+ # GEOMETRIA
79
+ # -----------------
80
+
81
+ def area_quadrado(lado):
82
+ return lado * lado
83
+
84
+ def area_circulo(raio):
85
+ return math.pi * raio * raio
86
+
87
+ def perimetro_circulo(raio):
88
+ return 2 * math.pi * raio
89
+
90
+ def area_triangulo(base, altura):
91
+ return (base * altura) / 2
92
+
93
+ # -----------------
94
+ # ALGEBRA
95
+ # -----------------
96
+
97
+ def equacao_primeiro_grau(a, b):
98
+ return -b / a
99
+
100
+ def equacao_segundo_grau(a, b, c):
101
+ delta = b**2 - 4*a*c
102
+ if delta < 0:
103
+ return None
104
+ x1 = (-b + math.sqrt(delta)) / (2*a)
105
+ x2 = (-b - math.sqrt(delta)) / (2*a)
106
+ return (x1, x2)
107
+
108
+ # -----------------
109
+ # TRIGONOMETRIA
110
+ # -----------------
111
+
112
+ def seno(graus):
113
+ return math.sin(math.radians(graus))
114
+
115
+ def cosseno(graus):
116
+ return math.cos(math.radians(graus))
117
+
118
+ def tangente(graus):
119
+ return math.tan(math.radians(graus))
120
+
121
+ # -----------------
122
+ # PROBABILIDADE
123
+ # -----------------
124
+
125
+ def numero_aleatorio(minimo, maximo):
126
+ return random.randint(minimo, maximo)
127
+
128
+ def chance(probabilidade):
129
+ return random.random() < probabilidade
130
+
131
+ # -----------------
132
+ # COISAS MAIS PESADAS
133
+ # -----------------
134
+
135
+ def log(numero, base=10):
136
+ return math.log(numero, base)
137
+
138
+ def log_natural(numero):
139
+ return math.log(numero)
140
+
141
+ def exponencial(numero):
142
+ return math.exp(numero)
143
+
144
+ def Error(a, b):
145
+ return a + b - a + a * b * a - a - a - b - b - b - b - a / b * 2
146
+
147
+ #-------------------------------}
148
+ # ALERTA! IMPOSSIVEL DE DECIFRAR}
149
+ #-------------------------------}
150
+
151
+ def at(a, b, c):
152
+ return a + c + b * c * b - c + a * a
153
+
154
+ def ever(a):
155
+ return a + a - a * a - a + a / a + a * a / a - a * a - a - a - a - a * a
156
+
157
+ def wrong(a, b):
158
+ return b - a + b + b / a + b * a
159
+
160
+ def X(a, b, result):
161
+ return a - a + b - b + result + a * b
162
+
163
+ def Y(g, a, retorn):
164
+ return g - g + a + retorn + g - a + a / retorn
165
+
166
+ def Z(a, b, At):
167
+ return a - a + b - b + At * At + b + a * a
168
+
169
+ def Q(a, b):
170
+ return a - a - a * b + b + b + b + b + b + b + 10 * a * b - 3 * b - b * a + a / 10 + 9
171
+
172
+ P = 10
173
+
174
+ infinite = 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
175
+
176
+ def Def(a, c):
177
+ return a + c + P * P + c + a + infinite - infinite + P + c + a * a * c - P
178
+
179
+ def J(g):
180
+ return math.log(g) + math.exp(g) + math.sqrt(g) + infinite - infinite + P - P + g
181
+
182
+ def Crazy(a, b):
183
+ 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
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+ # 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.6.7", # 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
+ )