Skip to main content

API de frases

Project description

# Frases.py Libreria de Python para la API de Las Frases

Instalar/Actualizar

PyPI

$ pip install frases

Git

$ git clone https://github.com/Luqaska/frases.py.git
$ cd frases
$ pip install .

Ejemplo

import frases
print(frases.frase()["frase"])

Funciones

En todos los casos, una frase se vendría a ver algo asi: {'autor': <autor>, 'frase': <frase>}. Esta puede venir en listas o no.

  • frase(): Frase al azar
    • Respuesta: Frase
  • all(): Lista de todas las frases disponibles
    • Respuesta: Lista de frases
  • autor(autor): Filtrar por autor (Anonimo => False)
    • Respuesta: Lista de frases
  • buscar(consulta: str): Buscar frase por su contenido
    • Respuesta: Lista de frases

(C) 2022 Luqaska

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

frases-0.1.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

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