Skip to main content

Un módulo de enciclopedia y diccionario para las funciones de Python

Project description

# Descripcion

Eduling es un modulo para Python que proporciona un diccionario y enciclopedia basicos para principiantes.

EJMPLO DE USO SIN INTERFAZ (ejemplo_uso_eduling.py)

from eduling import eduling

def mostrar_informacion_funcion(nombre_funcion): """ Muestra la descripcion y el ejemplo de uso de una funcion de Python usando el modulo Eduling. """ try: # Obten la descripcion de la funcion descripcion = eduling.obtener_info_funcion(nombre_funcion) print(f"Descripcion y uso de la funcion '{nombre_funcion}':\n{descripcion}\n") except Exception as e: print(f"Error al obtener informacion sobre la funcion '{nombre_funcion}': {e}")

def main(): print("Bienvenido al explorador de funciones de Python con Eduling.") print("Puedes obtener información sobre funciones basicas de Python.")

# Listar todas las funciones disponibles en el modulo Eduling
funciones = eduling.listar_funciones()

for funcion in funciones:
    mostrar_informacion_funcion(funcion)

if name == "main": main()

EJEMPLO DE USO CON INTERFAZ (interfaz_eduling.py)

import tkinter as tk from tkinter import ttk from eduling import eduling

class Aplicacion(tk.Tk): def init(self): super().init()

    self.title("Explorador de Funciones de Python")
    self.geometry("600x400")

    # Crear el marco principal
    marco = ttk.Frame(self, padding="10")
    marco.grid(row=0, column=0, sticky=(tk.W, tk.E, tk.N, tk.S))

    # Crear la lista desplegable
    self.combo_funciones = ttk.Combobox(marco, values=eduling.listar_funciones(), state="readonly")
    self.combo_funciones.grid(row=0, column=0, padx=10, pady=10, sticky=(tk.W, tk.E))
    self.combo_funciones.bind("<<ComboboxSelected>>", self.mostrar_info_funcion)

    # Crear el area de texto para mostrar la informacion
    self.text_info = tk.Text(marco, wrap=tk.WORD, height=15, width=70)
    self.text_info.grid(row=1, column=0, padx=10, pady=10, sticky=(tk.W, tk.E))

    # Inicializar con la primera funcion seleccionada
    if self.combo_funciones["values"]:
        self.combo_funciones.current(0)
        self.mostrar_info_funcion()

def mostrar_info_funcion(self, event=None):
    nombre_funcion = self.combo_funciones.get()
    descripcion = eduling.obtener_info_funcion(nombre_funcion)
    self.text_info.delete(1.0, tk.END)
    self.text_info.insert(tk.END, descripcion)

if name == "main": app = Aplicacion() app.mainloop()

Instalacion

Puedes instalar Eduling usando pip:

pip install eduling

en caso de que desees actualizarlo deberas usar:

pip install --upgrade eduling

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eduling-0.0.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eduling-0.0.3-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file eduling-0.0.3.tar.gz.

File metadata

  • Download URL: eduling-0.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for eduling-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ecd3ae90057da65220fb05721aff9e2807bade42d618091a34cae7b84399093c
MD5 9083d56b73b4202d6b3be6cf86451da6
BLAKE2b-256 16df61a9fe0c631aad4e136da44504c088977fdabfe53b54d9c8c82edf3b630e

See more details on using hashes here.

File details

Details for the file eduling-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: eduling-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for eduling-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae699129d93006eb4d81c1cd878f7b0f062f6b861ac9b6cbd773c810545c9aa
MD5 4edcf6895baff4e4c6387545bf63aa7e
BLAKE2b-256 eaf7c74dbcc2dfbc53dfcc36e1383cdac0b8c218f53f0231c9885fffcc64b3af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page