tibalib 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.
- tibalib-0.1.0/LICENSE +1 -0
- tibalib-0.1.0/PKG-INFO +21 -0
- tibalib-0.1.0/README.md +6 -0
- tibalib-0.1.0/pyproject.toml +23 -0
- tibalib-0.1.0/setup.cfg +4 -0
- tibalib-0.1.0/src/TIBALIB/__init__.py +63 -0
- tibalib-0.1.0/src/tibalib.egg-info/PKG-INFO +21 -0
- tibalib-0.1.0/src/tibalib.egg-info/SOURCES.txt +9 -0
- tibalib-0.1.0/src/tibalib.egg-info/dependency_links.txt +1 -0
- tibalib-0.1.0/src/tibalib.egg-info/requires.txt +2 -0
- tibalib-0.1.0/src/tibalib.egg-info/top_level.txt +1 -0
tibalib-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
LICENSE
|
tibalib-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tibalib
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Mi primera libreria. Hace graficas qr y mas
|
|
5
|
+
Author: TIBA
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: matplotlib
|
|
13
|
+
Requires-Dist: qrcode
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
#TIBALIB
|
|
17
|
+
Mi primera libreria de python que emocion
|
|
18
|
+
Hace graficas, qr y mas funciones basicas pero utiles como atajo
|
|
19
|
+
##Instalacion
|
|
20
|
+
'''bash
|
|
21
|
+
pip install TIBALIB
|
tibalib-0.1.0/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
[project]
|
|
5
|
+
name = "tibalib"
|
|
6
|
+
version = "0.1.0"
|
|
7
|
+
authors = [
|
|
8
|
+
{name="TIBA" },
|
|
9
|
+
]
|
|
10
|
+
description = "Mi primera libreria. Hace graficas qr y mas"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
requires-python = ">=3.8"
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
]
|
|
18
|
+
dependencies = [
|
|
19
|
+
"matplotlib",
|
|
20
|
+
"qrcode",
|
|
21
|
+
]
|
|
22
|
+
[tool.setuptools.packages.find]
|
|
23
|
+
where = ["src"]
|
tibalib-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import math
|
|
2
|
+
import matplotlib.pyplot as plt
|
|
3
|
+
import webbrowser
|
|
4
|
+
import os
|
|
5
|
+
import qrcode
|
|
6
|
+
def mayor():
|
|
7
|
+
cont=0
|
|
8
|
+
while True:
|
|
9
|
+
try:
|
|
10
|
+
ed=int(input("Dime tu edad: "))
|
|
11
|
+
if ed<0:
|
|
12
|
+
raise ValueError("No existen edades negativos")
|
|
13
|
+
elif ed==0:
|
|
14
|
+
raise ValueError("No puedes poner 0")
|
|
15
|
+
else:
|
|
16
|
+
print("Bienvenido")
|
|
17
|
+
break
|
|
18
|
+
except ValueError as e:
|
|
19
|
+
print(f"Error: {e}")
|
|
20
|
+
cont+=1
|
|
21
|
+
if cont==3:
|
|
22
|
+
print("Gastaste tus intentos")
|
|
23
|
+
break
|
|
24
|
+
def salud(nomb):
|
|
25
|
+
return f"Que onda w, {nomb} gracias por descargar mi libreria bro"
|
|
26
|
+
def sum(a, b):
|
|
27
|
+
res=a+b
|
|
28
|
+
return res
|
|
29
|
+
def teorema_de_pitagoras(cata, catb):
|
|
30
|
+
cataf=cata*cata
|
|
31
|
+
catbf=catb*catb
|
|
32
|
+
catc=math.sqrt(cataf+catbf)
|
|
33
|
+
return f"Cateto c: {catc}"
|
|
34
|
+
def promedio(*num):
|
|
35
|
+
if len(num)==0:
|
|
36
|
+
return "No pusiste numeros w"
|
|
37
|
+
return sum(num)/len(num)
|
|
38
|
+
def graficar(eti, val, titu="Mi grafica"):
|
|
39
|
+
if len(eti)!=len(val):
|
|
40
|
+
return "Debes ingresar la misma cantidad de datos y etiquetas"
|
|
41
|
+
plt.bar(eti, val)
|
|
42
|
+
plt.title(titu)
|
|
43
|
+
plt.xlabel("Categorias")
|
|
44
|
+
plt.ylabel("Valores")
|
|
45
|
+
plt.show()
|
|
46
|
+
def abrir_pagina(u):
|
|
47
|
+
if not u.startswith("http"):
|
|
48
|
+
u="https://"+u
|
|
49
|
+
webbrowser.open(u)
|
|
50
|
+
return f"Abriendo {u}"
|
|
51
|
+
def contar_archivo(car):
|
|
52
|
+
arch=os.listdir(car)
|
|
53
|
+
return f"Hay {len(arch)} archivos en esta carpeta"
|
|
54
|
+
def crear_carpeta(no):
|
|
55
|
+
os.makedirs(no, exist_ok=True)
|
|
56
|
+
return f"Carpeta {no} creada"
|
|
57
|
+
def qr(tex, nom="mi_qr.png"):
|
|
58
|
+
img=qrcode.make(tex)
|
|
59
|
+
img.save(nom)
|
|
60
|
+
return f"QR guardado como {nom}"
|
|
61
|
+
def tabla_multiplicar(nume):
|
|
62
|
+
for i in range(11):
|
|
63
|
+
print(f"{nume} por {i} = {nume*i}")
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tibalib
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Mi primera libreria. Hace graficas qr y mas
|
|
5
|
+
Author: TIBA
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: matplotlib
|
|
13
|
+
Requires-Dist: qrcode
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
#TIBALIB
|
|
17
|
+
Mi primera libreria de python que emocion
|
|
18
|
+
Hace graficas, qr y mas funciones basicas pero utiles como atajo
|
|
19
|
+
##Instalacion
|
|
20
|
+
'''bash
|
|
21
|
+
pip install TIBALIB
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TIBALIB
|