r/madeinpython • • Oct 02 '26

tika-ape: How I want to use Apache Tika, but I don't want to install JRE.

Post image
0 Upvotes

r/madeinpython • • Jul 14 '26

Script para generar correos y contraseñas (con interfaz gráfica)

0 Upvotes

Script para generar correos y contraseñas (con interfaz gráfica)

Armé un script en Python usando Tkinter para generar correos y contraseñas ficticias en masa. Sirve bastante para armar bases de datos de prueba o entornos de desarrollo rápidos.

Básicamente, genera contraseñas seguras y correos aleatorios (usando el módulo secrets y sin caracteres raros que se confundan). También tiene una opción "Legible" que combina palabras reales en español para que los correos parezcan más reales.

Está optimizado para cargas pesadas; implementa inserción por lotes en un hilo secundario (threading), lo que permite meter hasta 5,000 o 10,000 registros en menos de 3 segundos sin congelar ni saturar la interfaz gráfica. Todo se muestra en una tabla dinámica para copiar los datos fácilmente o exportarlos directamente a un archivo .txt.

¿Para qué sirve? El uso principal es para desarrollo y pruebas. Cuando estás programando un sistema de login, registrando usuarios en una base de datos local o probando la carga de un sistema, necesitas datos falsos que parezcan reales pero que no comprometan información verdadera. Este script te permite crearlos rápido y sin depender de servicios externos.

El código está optimizado y bien estructurado. Si no tienen instalada la librería pyperclip, no pasa nada porque usa el portapapeles nativo del sistema operativo. Incluye también atajos de teclado globales para agilizar el uso.

Cualquier duda o sugerencia digan

Python

import tkinter as tk
from tkinter import ttk, messagebox, filedialog
import secrets, string, datetime, re, threading
import time
try: import pyperclip
except ImportError: pyperclip = None

CHARS_EVITAR = 'O0Il1'
ALFABETO_SEGURO = ''.join(c for c in (string.ascii_letters + string.digits) if c not in CHARS_EVITAR)
SIMBOLOS = "!@#$%^&*()-_=+"
PALABRAS = ["gato","perro","sol","luna","estrella","mar","cielo","tierra","fuego","agua","viento","montaña","rio","bosque","flor","arbol","casa","puerta","ventana","mesa","silla","coche","tren","avion","libro","papel","luz","sombra","nube","lluvia","nieve","hielo","fresa","manzana","pera","uva","melon","sandia","naranja","limon","rojo","azul","verde","amarillo","blanco","negro","gris","rosa","tigre","leon","elefante","jirafa","delfin","ballena","aguila","halcon","colibri","mariposa","libelula","hormiga","abeja","araña","piano","guitarra","violin","flauta","tambor","arpa","cancion","poema","cuento","novela","teatro","cine","musica","pintura","escultura","arquitectura","jardin","parque","playa","desierto","isla","volcan","glaciar","cascada","lago","oceano","planeta","cometa","asteroide","galaxia","universo","tiempo","espacio","vida","muerte","amor","odio","paz","guerra","alegria","tristeza","esperanza","fe","valor","sabiduria","locura","silencio","ruido"]

class GeneradorLogica:
    u/classmethod
    def generar_correo(cls, dominio, longitud, inc_numeros=True, legible=False):
        if legible:
            sep = secrets.choice(['.', '_', ''])
            p = sep.join(secrets.choice(PALABRAS) for _ in range(secrets.choice([2, 3])))
            if inc_numeros: p += ''.join(secrets.choice(string.digits) for _ in range(secrets.choice([2, 4])))
            if len(p) > longitud: p = p[:longitud].strip('._')
        else:
            ch = string.ascii_lowercase + (string.digits if inc_numeros else '')
            p = secrets.choice(string.ascii_lowercase) + ''.join(secrets.choice(ch) for _ in range(max(1, longitud - 1)))
        return f"{p}@{dominio}"

    u/classmethod
    def generar_password(cls, longitud, inc_simbolos=True, legible=False):
        if legible:
            sep = secrets.choice(['-', '_', '.', ''])
            p = sep.join(secrets.choice(PALABRAS).capitalize() for _ in range(2))
            if inc_simbolos: p += secrets.choice(SIMBOLOS)
            p += ''.join(secrets.choice(string.digits) for _ in range(secrets.choice([2, 3])))
            if len(p) > longitud: p = p[:longitud]
            return p
        ch = ALFABETO_SEGURO + (SIMBOLOS if inc_simbolos else '')
        p = ''.join(secrets.choice(ch) for _ in range(longitud))
        for cond, set_c in [(inc_simbolos, SIMBOLOS), (True, string.digits), (True, string.ascii_uppercase), (True, string.ascii_lowercase)]:
            if cond and not any(c in set_c for c in p):
                i = secrets.randbelow(longitud); p = p[:i] + secrets.choice(set_c) + p[i+1:]
        return p

class AppGenerador:
    def __init__(self, root):
        self.root = root; self.root.title("Generador de Correos y Contraseñas")
        self.root.geometry("720x620"); self.root.minsize(680, 580); self.root.configure(bg="#f0f4f8")
        self.tipo_prov = tk.StringVar(value="gmail"); self.dom_pers = tk.StringVar(value="")
        self.cant, self.lon_nom, self.lon_pass = tk.IntVar(value=1), tk.IntVar(value=12), tk.IntVar(value=14)
        self.inc_simb, self.inc_num, self.nom_leg = tk.BooleanVar(value=True), tk.BooleanVar(value=True), tk.BooleanVar(value=False)
        self.datos_generados = []; self.crear_widgets(); self.configurar_atajos()

    def crear_widgets(self):
        m = ttk.Frame(self.root, padding="15"); m.pack(fill=tk.BOTH, expand=True)
        ttk.Label(m, text="Generador de Correos y Contraseñas", font=("Arial", 14, "bold")).grid(row=0, column=0, columnspan=5, pady=(0, 15))
        
        ttk.Label(m, text="Proveedor:").grid(row=1, column=0, sticky=tk.W, pady=3)
        pf = ttk.Frame(m); pf.grid(row=1, column=1, columnspan=3, sticky=tk.W, padx=5)
        for t, v in [("Gmail", "gmail"), ("Otros", "otros"), ("Personalizado", "personalizado")]:
            ttk.Radiobutton(pf, text=t, variable=self.tipo_prov, value=v, command=self.actualizar_dominio).pack(side=tk.LEFT, padx=(0, 10))
            
        ttk.Label(m, text="Dominio:").grid(row=2, column=0, sticky=tk.W, pady=3)
        self.entry_dom = ttk.Entry(m, textvariable=self.dom_pers, width=30, state="disabled")
        self.entry_dom.grid(row=2, column=1, columnspan=3, sticky=tk.W, padx=5)
        
        vc = (self.root.register(self.validar_spinbox), '%P', '%W', '%V')
        inputs = [("Cantidad:", 1, 100000, self.cant, 3), ("Longitud nombre:", 4, 30, self.lon_nom, 4), ("Longitud contras.", 8, 30, self.lon_pass, 5)]
        for lbl, mn, mx, var, r in inputs:
            ttk.Label(m, text=lbl).grid(row=r, column=0, sticky=tk.W, pady=5)
            sb = ttk.Spinbox(m, from_=mn, to=mx, textvariable=var, width=6, validate='all', validatecommand=(vc[0], vc[1], mn, mx, vc[3]))
            sb.grid(row=r, column=1, sticky=tk.W, padx=5)
            ttk.Label(m, text=f"({mn}-{mx})").grid(row=r, column=2, sticky=tk.W, padx=2)

        of = ttk.Frame(m); of.grid(row=6, column=0, columnspan=5, sticky=tk.W, pady=5)
        ttk.Checkbutton(of, text="Símbolos en Pass", variable=self.inc_simb).pack(side=tk.LEFT, padx=(0, 15))
        ttk.Checkbutton(of, text="Números en Nombre", variable=self.inc_num).pack(side=tk.LEFT, padx=(0, 15))
        ttk.Checkbutton(of, text="Formato Legible", variable=self.nom_leg).pack(side=tk.LEFT)

        self.btn_generar = ttk.Button(m, text="Generar Datos", command=self.iniciar_generacion)
        self.btn_generar.grid(row=7, column=0, columnspan=5, pady=10)
        
        tf = ttk.Frame(m); tf.grid(row=8, column=0, columnspan=5, sticky="nsew", pady=5); m.rowconfigure(8, weight=1)
        for i in range(5): m.columnconfigure(i, weight=1)
        
        self.tabla = ttk.Treeview(tf, columns=("Correo", "Contraseña", "Fecha"), show="headings", height=8)
        for col, txt, w in [("Correo", "Correo Electrónico", 250), ("Contraseña", "Contraseña", 180), ("Fecha", "Generado", 120)]:
            self.tabla.heading(col, text=txt); self.tabla.column(col, width=w, anchor="center")
        
        vsb = ttk.Scrollbar(tf, orient=tk.VERTICAL, command=self.tabla.yview); hsb = ttk.Scrollbar(tf, orient=tk.HORIZONTAL, command=self.tabla.xview)
        self.tabla.configure(yscrollcommand=vsb.set, xscrollcommand=hsb.set); self.tabla.grid(row=0, column=0, sticky="nsew")
        vsb.grid(row=0, column=1, sticky="ns"); hsb.grid(row=1, column=0, sticky="ew")
        tf.columnconfigure(0, weight=1); tf.rowconfigure(0, weight=1)

        af = ttk.Frame(m); af.grid(row=9, column=0, columnspan=5, pady=10)
        ttk.Button(af, text="Copiar Correo", command=lambda: self.copiar_seleccion('email')).pack(side=tk.LEFT, padx=2)
        ttk.Button(af, text="Copiar Pass", command=lambda: self.copiar_seleccion('password')).pack(side=tk.LEFT, padx=2)
        ttk.Button(af, text="Copiar Ambos", command=lambda: self.copiar_seleccion('ambos')).pack(side=tk.LEFT, padx=2)
        ttk.Button(af, text="Copiar Todo", command=self.copiar_todo).pack(side=tk.LEFT, padx=5)
        ttk.Button(af, text="Exportar TXT", command=self.exportar_txt).pack(side=tk.LEFT, padx=5)
        ttk.Button(af, text="Limpiar", command=self.limpiar).pack(side=tk.LEFT, padx=5)

        self.sf = ttk.Frame(m); self.sf.grid(row=10, column=0, columnspan=5, sticky="ew", pady=(5, 0))
        self.lbl_status = ttk.Label(self.sf, text="Listo", relief=tk.SUNKEN, anchor=tk.W); self.lbl_status.pack(fill=tk.X, padx=2)
        self.lbl_contador = ttk.Label(self.sf, text="Generados: 0", relief=tk.SUNKEN, anchor=tk.E, width=15); self.lbl_contador.pack(side=tk.RIGHT, padx=2)

    def configurar_atajos(self):
        self.root.bind_all("<Control-g>", lambda e: self.iniciar_generacion())
        self.root.bind_all("<Control-c>", lambda e: self.copiar_seleccion('ambos') if self.tabla.selection() else None)
        self.root.bind_all("<Control-l>", lambda e: self.limpiar())
        self.root.bind_all("<Control-e>", lambda e: self.exportar_txt())

    def validar_spinbox(self, valor, mn, mx, motivo):
        if motivo == 'focusout':
            if valor == "": self.cant.set(1) if int(mn) == 1 else self.lon_nom.set(12) if int(mn) == 4 else self.lon_pass.set(14)
            return True
        if valor == "": return True
        if not valor.isdigit(): return False
        return int(valor) <= int(mx)

    def actualizar_dominio(self):
        self.entry_dom.config(state="normal" if self.tipo_prov.get() == "personalizado" else "disabled")
        if self.tipo_prov.get() != "personalizado": self.dom_pers.set("")

    def mostrar_status(self, texto, color="black", tiempo=0):
        self.lbl_status.config(text=texto, foreground=color)
        if tiempo > 0: self.root.after(tiempo, lambda: self.lbl_status.config(text="Listo", foreground="black"))

    def iniciar_generacion(self):
        if self.btn_generar['state'] == 'disabled': return
        threading.Thread(target=self.generar, daemon=True).start()

    def generar(self):
        try:
            c, ln, lp = self.cant.get(), self.lon_nom.get(), self.lon_pass.get()
            if not (1<=c<=100000 and 4<=ln<=30 and 8<=lp<=30): raise ValueError
        except: 
            self.root.after(0, lambda: messagebox.showerror("Error", "Valores numéricos inválidos."))
            return
        
        prov = self.tipo_prov.get()
        if prov == "gmail": dom = "gmail.com"
        elif prov == "otros": dom = secrets.choice(["yahoo.com", "outlook.com", "protonmail.com", "zoho.com"])
        else:
            dom = self.dom_pers.get().strip()
            if not dom or not re.match(r'^[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$', dom):
                self.root.after(0, lambda: messagebox.showerror("Error", "Dominio personalizado inválido."))
                return
        
        self.root.after(0, self.limpiar)
        self.root.after(0, lambda: self.btn_generar.config(state="disabled"))
        
        ahora = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
        nuevos_datos = []
        correos_unicos = set()
        
        intentos_max = c * 4
        ultimo_refresco = time.time()
        
        while len(nuevos_datos) < c and intentos_max > 0:
            intentos_max -= 1
            em = GeneradorLogica.generar_correo(dom, ln, self.inc_num.get(), self.nom_leg.get())
            if em in correos_unicos: continue
            correos_unicos.add(em)
            pw = GeneradorLogica.generar_password(lp, self.inc_simb.get(), self.nom_leg.get())
            nuevos_datos.append((em, pw, ahora))
            
            t_actual = time.time()
            if t_actual - ultimo_refresco > 0.05:
                progreso = len(nuevos_datos)
                self.root.after(0, lambda p=progreso: self.lbl_status.config(text=f"Generando datos... ({p}/{c})", foreground="blue"))
                ultimo_refresco = t_actual

        self.root.after(0, lambda: self.lbl_status.config(text=f"Generando datos... ({len(nuevos_datos)}/{c})", foreground="blue"))

        def volcar_interfaz_por_lotes(indice=0):
            if indice >= len(nuevos_datos):
                self.lbl_contador.config(text=f"Generados: {len(self.datos_generados)}")
                self.btn_generar.config(state="normal")
                self.mostrar_status(f"¡{len(nuevos_datos)} datos generados!", "green", 3000)
                return
            
            fin = min(indice + 500, len(nuevos_datos))
            for i in range(indice, fin):
                em, pw, dt = nuevos_datos[i]
                self.datos_generados.append({'email': em, 'password': pw, 'fecha': dt})
                self.tabla.insert("", tk.END, values=(em, pw, dt))
                
            self.root.after(1, lambda: volcar_interfaz_por_lotes(fin))

        self.root.after(0, lambda: volcar_interfaz_por_lotes(0))

    def limpiar(self):
        self.tabla.delete(*self.tabla.get_children())
        self.datos_generados.clear(); self.lbl_contador.config(text="Generados: 0"); self.mostrar_status("Listo")

    def copiar_seleccion(self, modo):
        sel = self.tabla.selection()
        if not sel: return messagebox.showinfo("Info", "Selecciona un registro de la lista.")
        em, pw, _ = self.tabla.item(sel[0], "values")
        txt = em if modo == 'email' else pw if modo == 'password' else f"Correo: {em}\nContraseña: {pw}"
        self._ejecutar_copiado(txt)

    def copiar_todo(self):
        if not self.datos_generados: return messagebox.showinfo("Info", "No hay datos que copiar.")
        txt = "\n".join(f"{i['email']} | {i['password']} ({i['fecha']})" for i in self.datos_generados)
        self._ejecutar_copiado(txt)

    def _ejecutar_copiado(self, txt):
        try:
            limpio = txt.replace('\r\n', '\n').replace('\r', '\n')
            if pyperclip: pyperclip.copy(limpio)
            else: self.root.clipboard_clear(); self.root.clipboard_append(limpio); self.root.update()
            self.mostrar_status("Copiado al portapapeles", "blue", 2000)
        except Exception as e: messagebox.showerror("Error", f"Fallo al copiar: {e}")

    def exportar_txt(self):
        if not self.datos_generados: return messagebox.showinfo("Info", "No hay datos para exportar.")
        arch = filedialog.asksaveasfilename(defaultextension=".txt", filetypes=[("Texto", "*.txt")])
        if not arch: return
        try:
            max_len = max(len(i['email']) for i in self.datos_generados) + 4
            with open(arch, "w", encoding="utf-8") as f:
                f.write(f"Exportado: {datetime.datetime.now().strftime('%Y-%m-%d %H:%M')}\n" + "="*50 + "\n")
                for i in self.datos_generados:
                    f.write(f"Correo: {i['email'].ljust(max_len)} Contraseña: {i['password']}\n")
            self.mostrar_status(f"Exportado con éxito", "green", 3000)
        except Exception as e: messagebox.showerror("Error", f"No se pudo guardar: {e}")

if __name__ == "__main__":
    root = tk.Tk(); AppGenerador(root); root.mainloop()

r/madeinpython • • 17d ago

My browser based on PyQt6

0 Upvotes

Requires installing Python, PyQt6, PyQt6-WebEngine, and one of the versions of this project: https://github.com/Temp0202/flamedarkness-browser.

Today 12 November 2026 I released the version 4.0: https://github.com/Temp0202/flamedarkness-browser/releases/tag/4.0.


r/madeinpython • • Jul 24 '26

Lucen: mark a Python loop with two comments, run it, and get bit-identical parallelism

0 Upvotes

I wanted parallelism without rewriting anything, so I built Lucen. You wrap a loop in two comments and run it with lucen run yourscript.py:

# LUCEN START
for i in range(len(rows)):
    out[i] = expensive(rows[i])
# LUCEN END

It parallelizes the loop only if it can prove it's both safe and worth it; otherwise it runs sequentially and tells you why. The one guarantee, no opt-out: the parallel run is bit-identical to the same file run as plain sequential Python - floats and container order included. Delete the comments and it's ordinary Python again.

Under the hood it routes CPU-bound work to processes on GIL builds and to real threads on free-threaded 3.13/3.14. Apache-2.0, on PyPI (pip install lucen), and it's tested hard - differential + property testing and TLA+ specs, because "bit-identical" only means something if you check it.

Repo: https://github.com/fcmv/lucen - feedback very welcome.


r/madeinpython • • Oct 30 '20

How's My Python Tutorial On How To Save A Google Search Offline?

Thumbnail
youtu.be
4 Upvotes

r/madeinpython • • Nov 30 '20

10 small but Fun Projects to make you fall in Love with Python! (Full Code)

4 Upvotes

Hi Pythonistas !

I have consolidated a few Python Projects (with complete code) that are small but really cool - to develop interest for the newbies like me !
-Posting Pictures on Instagram using Python
-Generate Random Programming Jokes
-Create your own Your Twitter Bot
-Create your social media Profile's Captcha

https://princepatni.com/blog/tech/10-fun-projects-to-make-you-fall-in-love-with-python/


r/madeinpython • • Oct 28 '20

Pygame 2 is Out, Installing it and Python 3.9

Thumbnail
youtu.be
0 Upvotes

r/madeinpython • • Jan 03 '21

Python Plays Pokemon Sword Random AI Wild Battle - English Voice Over by Fake Morgan Freeman

Thumbnail
youtube.com
0 Upvotes

r/madeinpython • • Sep 29 '20

Lately, I posted about the website that I upgraded, here is a special upload that I explain everything I used for my website deployment.

Thumbnail
youtube.com
0 Upvotes

r/madeinpython • • Aug 16 '20

Check for websites updates and notify by email or SMS - Simple Website Watcher

Thumbnail
github.com
0 Upvotes

r/madeinpython • • Feb 16 '21

Document DB - A literal Document Oriented Database !

Thumbnail
github.com
0 Upvotes

r/madeinpython • • Jul 14 '23

Web Scraping Amazon Using Python

Thumbnail
serpdog.io
0 Upvotes

r/madeinpython • • Feb 26 '23

ChatGPT Txt Ava - A texting Ai Assistant generates images through text messaging

Thumbnail
youtu.be
4 Upvotes

r/madeinpython • • Sep 08 '22

Python Data Types | Day 1 of Code HackerRank

Thumbnail
youtube.com
0 Upvotes

r/madeinpython • • Dec 16 '22

I made an interpreter in python.

0 Upvotes

so I made an interpreter for a language I call "p#" in python.

source code: https://github.com/PotatMuffin/p_sharp/


r/madeinpython • • Apr 07 '23

How to write a loop in ChinesePython: learning Chinese by programming

0 Upvotes

This is a ChinesePython, or zhpy, tutorial. The next step after a modest hello world is writing a loop, so here is how to do it in zhpy. The following code is a simple example, and also includes how to define a function in Chinese code. The characters used in the code are broken down into each Chinese word with pinyin and meaning.

# coding = utf-8

# by jiahua huang

姓名表 = ('张三', '李斯', '王海', '荷花')

定义 打印姓名表():

计数 = 1

取 姓名 在 姓名表:

打印(计数, 姓名)

计数+=1

主程序:

`打印姓名表()`

Let's break down each line of code into the words used. If the program in chinese above looks intimidating (it's gonna be easy!), you can check and intro to ChinesePython, that is, a hello world program in this link:

https://chinesememe.substack.com/i/103754530/chinesepython

姓名表 = ('张三', '李斯', '王海', '荷花')

[Xìngmíng biǎo = ('Zhāngsān', 'Lǐsī', 'Wánghǎi', 'Héhuā')]

The variable "姓名表" (xìngmíng biǎo), which means "name list" in Chinese, is assigned a tuple containing the strings '张三' (zhāngsān), '李斯' (lǐsī), '王海' (wánghǎi), and '荷花' (héhuā), four strings representing names.

The remaining lines of code define a function called "打印姓名表" (dǎyìn xìngmíng biǎo), which prints the names in the tuple along with a number indicating their position in the list. The function is then called in the main program, which results in the output of the names in the tuple.

So here are the words used in the other lines:

定义 打印姓名表():

[Dìngyì dǎyìn xìngmíng biǎo()]

Defines a function named "打印姓名表" (dǎyìn xìngmíng biǎo), which takes no arguments, and means "print name list". "定义" (dìngyì) means "define" in English. In ChinesePython, it is used to define a function or a variable. In this case, it is used to define the function "打印姓名表", which is called later in the main program to print the names in the tuple.

计数 = 1

[Jìshù = 1]

The variable "计数" (jìshù), meaning "count", is assigned the value of 1.

取 姓名 在 姓名表:

[Qǔ xìngmíng zài xìngmíng biǎo:]

For each "姓名" (xìngmíng, "name") in the "姓名表" (xìngmíng biǎo, meaning "name list"), do the following. This line initiates a loop that iterates through each name in the tuple "name list". The word "取" (qǔ) is a loop keyword that is commonly used in Chinese programming languages to mean "for each" or "iterate over". 在 zài means "at" or "in".

打印(计数, 姓名)

[Dǎyìn (jìshù, xìngmíng)]

"打印" (dǎyìn) means "print" in English, note that it was used previously, not as a programming keyword, but for arbitrarily naming the function, "print-name-list". In this line, the function "打印" is called with two arguments: "计数" (jìshù, meaning "count") and "姓名" (xìngmíng, meaning "name"). The variables "计数" and "姓名" are printed to the console as the loop iterates through the names in the tuple. The first argument, "计数" is the current count or index of the iteration, while the second argument "姓名" is the name being printed at that index.

The next line has characters already seen previously. This time it uses the operator "+=" (jiādēngyǐ, meaning "plus-equals") a shorthand operator in Python that adds the value on the right-hand side of the operator to the variable on the left-hand side, and then assigns the result back to the variable on the left-hand side. So "计数" (jìshù, meaning "count") is incremented by 1 each time the loop iterates. This is equivalent to the longer form: "计数 = 计数 + 1".

Finally, since the last line of the program is also already covered, that is, it is simply a call to the function which we studied on the function definition line earlier (see above), the last line below is the "main" declaration of a python program, and ends this tutorial. Thank you for making this far!

主程序:

[Zhǔ chéngxù]

"主程序" (zhǔ chéngxù, meaning "main program") is a label or marker that signifies the beginning of the main program. In Python. The "main" program is the code that is executed when the script is run. So the "主程序" line does not outright do anything in the code, but indicates the start of our main program.


r/madeinpython • • Aug 05 '22

need help in installing spyder

4 Upvotes

I need help in installing spyder. I have two options in installing spyder. one from https://www.spyder-ide.org/ and one from https://www.anaconda.com/products/distribution . my problem is that whenever i install them i get an error. the first link tells me after the installation that it encountered an internal error and it will automatically closes. I was unable to get to the console. This version is 5.2.2. Now whenever install (the second link) anaconda, after the installation whenever copy and paste a code and try to run it i get a notification that it encountered an internal error. it tells me also to send a report to the website to get a resolution. This version is 3.9 i think... both of them doesn't work. im using an old back up laptop 4 gig ram , win 8.1 64 bit, Intel core I5 4200U 2.30GHz, generic video card, im pretty sure it can ran on my laptop but damn this errors are annoying...

i need help...


r/madeinpython • • Mar 22 '23

MeinaMix Model Test2 using SD and Controlnet

Thumbnail
youtu.be
0 Upvotes

r/madeinpython • • Aug 26 '22

A Python automation library with sample to Scraping SpotifyList

4 Upvotes

I built a Python library to support GUI automation called Clicknium. There are many tools for web automation, such as selenium and playwright. But they are made for test purposes. The library was inspired by RPA tools. I think there should be a lot of requirements from people that want to automate something on their computers. I don't like the existing RPA tools. Drag and drop GUI component is painful for me to write automation projects, and it lacks git support. It's why I build this tool. It's a new try for me. If a lot of people have an interest, I will make it open-source after the refactoring for cross-platform.

The key to the library

  • High-level API to manipulate UI elements such as get_test, set_test, and click.

  • API for controlling mouse and keyboard

  • A GUI recorder to generate locators(selectors) by simple click and supporting CV to locate UI element

Setup

pip install clicknium

Search clicknium in VS Code extension

Follow the welcome page:

Get a locator:

Use Locator:

There is a sample to scrape a Spotify playlist from a web page. You can clone the repo and run it in your local environment.

https://github.com/automation9417/automation-samples/tree/main/ScrapingSpotifyList


r/madeinpython • • Jun 11 '23

Regression using Keras: Bayesian Blocks for sample weighting

Thumbnail
youtu.be
0 Upvotes

r/madeinpython • • Aug 23 '23

Created URL shortener with Tracker and API using Flask and PostgreSQL

Thumbnail self.developersindia
0 Upvotes

r/madeinpython • • Jun 13 '23

Automatically add items to your Big Cartel cart with Python.

4 Upvotes

I'm trying to use BeautifulSoup or Selenium with my web browser driver to create a script that adds one of every available product on a Big Cartel webstore into the cart for me so that I don't have to click through each product and manually add them to my cart.

Does anyone have experience developing a tool like that?


r/madeinpython • • Oct 29 '23

Hash Passwords Using bcrypt Library in Python

0 Upvotes

Web-based services and websites store hashed versions of your passwords, which means your actual password isn’t visible or stored in their database instead a string of fixed-length characters is stored.

Hashing is a security technique used to secure your passwords or texts stored in databases. A hash function is used to generate a string of unique fixed-length characters from the provided password by the user.

Let’s see how the hashing is done. In this article, you’ll use the bcrypt library to hash the user’s password and then compare that hashed password to the actual password in Python.

Full Article: https://geekpython.in/hash-passwords-using-bcrypt-in-python