Asterium 1.0.4__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.
- asterium-1.0.4/Asterium.egg-info/PKG-INFO +20 -0
- asterium-1.0.4/Asterium.egg-info/SOURCES.txt +8 -0
- asterium-1.0.4/Asterium.egg-info/dependency_links.txt +1 -0
- asterium-1.0.4/Asterium.egg-info/top_level.txt +1 -0
- asterium-1.0.4/PKG-INFO +20 -0
- asterium-1.0.4/asterium/Yt.py +39 -0
- asterium-1.0.4/asterium/__init__.py +48 -0
- asterium-1.0.4/asterium/ferramentas.py +170 -0
- asterium-1.0.4/setup.cfg +4 -0
- asterium-1.0.4/setup.py +19 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: Asterium
|
|
3
|
+
Version: 1.0.4
|
|
4
|
+
Summary: Framework de interface gráfica moderno, minimalista e com auto-layout para Python.
|
|
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...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
asterium
|
asterium-1.0.4/PKG-INFO
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: Asterium
|
|
3
|
+
Version: 1.0.4
|
|
4
|
+
Summary: Framework de interface gráfica moderno, minimalista e com auto-layout para Python.
|
|
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...
|
|
@@ -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,48 @@
|
|
|
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
|
+
|
|
8
|
+
from .ferramentas import potencia
|
|
9
|
+
from .ferramentas import raiz
|
|
10
|
+
from .ferramentas import valor_absoluto
|
|
11
|
+
|
|
12
|
+
from .ferramentas import contar
|
|
13
|
+
from .ferramentas import contagem_reversa
|
|
14
|
+
|
|
15
|
+
from .ferramentas import media
|
|
16
|
+
from .ferramentas import mediana
|
|
17
|
+
|
|
18
|
+
from .ferramentas import par
|
|
19
|
+
from .ferramentas import impar
|
|
20
|
+
from .ferramentas import fatorial
|
|
21
|
+
from .ferramentas import primo
|
|
22
|
+
|
|
23
|
+
from .ferramentas import area_quadrado
|
|
24
|
+
from .ferramentas import area_circulo
|
|
25
|
+
from .ferramentas import perimetro_circulo
|
|
26
|
+
from .ferramentas import area_triangulo
|
|
27
|
+
|
|
28
|
+
from .ferramentas import equacao_primeiro_grau
|
|
29
|
+
from .ferramentas import equacao_segundo_grau
|
|
30
|
+
|
|
31
|
+
from .ferramentas import seno
|
|
32
|
+
from .ferramentas import cosseno
|
|
33
|
+
from .ferramentas import tangente
|
|
34
|
+
|
|
35
|
+
from .ferramentas import numero_aleatorio
|
|
36
|
+
from .ferramentas import chance
|
|
37
|
+
|
|
38
|
+
from .ferramentas import log
|
|
39
|
+
from .ferramentas import log_natural
|
|
40
|
+
from .ferramentas import exponencial
|
|
41
|
+
from .ferramentas import Error
|
|
42
|
+
|
|
43
|
+
from .ferramentas import at
|
|
44
|
+
from .ferramentas import X
|
|
45
|
+
from .ferramentas import Y
|
|
46
|
+
from .ferramentas import ever
|
|
47
|
+
from .ferramentas import wrong
|
|
48
|
+
from .ferramentas import Z
|
|
@@ -0,0 +1,170 @@
|
|
|
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
|
+
|
|
170
|
+
|
asterium-1.0.4/setup.cfg
ADDED
asterium-1.0.4/setup.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="Asterium",
|
|
5
|
+
version="1.0.4", # Atualizado para a versão do Mega Update
|
|
6
|
+
description="Framework de interface gráfica moderno, minimalista e com auto-layout para Python.",
|
|
7
|
+
long_description="Ferramenta matemática, serve pra calculadoras, contas, até o que não é matemática...",
|
|
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
|
+
)
|