tibalib 0.1.0__py3-none-any.whl

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/__init__.py 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,6 @@
1
+ TIBALIB/__init__.py,sha256=rZ6OZ5ZYwPtuFcSIK1Y0TRswdi3aM_ZBVh4madfzJyE,1823
2
+ tibalib-0.1.0.dist-info/licenses/LICENSE,sha256=xpMnlkO4zV0kgXLZwiy3z07RY6PJjIo_acJxft0-rLc,7
3
+ tibalib-0.1.0.dist-info/METADATA,sha256=Y55FXcHzU3xRA6X46nYJ9vSmeAWSURZu3CC0OLlf4T0,598
4
+ tibalib-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
5
+ tibalib-0.1.0.dist-info/top_level.txt,sha256=9R5_O8vrATAMUFl1IU_r7KEHMm1_5ItmLljJ-wt4R-s,8
6
+ tibalib-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ LICENSE
@@ -0,0 +1 @@
1
+ TIBALIB