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 vendria 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.3.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file frases-0.1.3.tar.gz.

File metadata

  • Download URL: frases-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for frases-0.1.3.tar.gz
Algorithm Hash digest
SHA256 47b0fc39a12b236fa60d4a2a955c7c6ee0a5e9b331296bf8c14effa023505aef
MD5 ae5dae75e1091b7597a8c0010aaff0ff
BLAKE2b-256 05834c69fdf59312e8b7ffaf664f2b52e8adb0c9accc8457787a61afbe1bdefb

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