/TINHOSO

TINHOSO – TINHOSO Is Not uma Horrenda Orientação Sobre O-que-não-ri

Primary LanguagePythonMIT LicenseMIT

TINHOSO

TINHOSO – TINHOSO Is Not uma Horrenda Orientação Sobre O-que-não-ri

Sabe quando você está escrevendo um texto e precisa de um sinônimo? Imagine, agora, que queira um sinônimo para o demônio; em especial, deseja um dos vários sinônimos utilizados por Guimarães Rosa no maravilhoso Grande Sertão: Veredas. É pra isso que esse código foi escrito! Como script isolado ou integrado numa API REST escrita em Flask, TINHOSO conta com 94 sinônimos prontos para seu próximo pacto fáustico!

Standalone script (or Flask REST API that consumes this script) and returns one of many devil names used by Brazilian author Guimarães Rosa on his Magnum opus Grande Sertão: Veredas

Instalation

Standalone script

  1. Make sure you've python installed

  2. Clone this repo

    git clone https://github.com/guilhermealbm/TINHOSO

  3. Change into the directory of the project:

    cd TINHOSO

  4. Run!

    python devil_names.py

Flask REST API

  1. Make sure you've python and Flask installed (Flask can be downloaded with pip)

  2. Clone this repo

    git clone https://github.com/guilhermealbm/TINHOSO

  3. Change into the directory of the project:

    cd TINHOSO

  4. Run!

    python start_api.py

  5. You can use the following routes:

    / - returns a random devil_name (GET)

    /devil/<index>- returns devil name by index (GET)

    /all- returns all devil names (GET)

    /new - add a new devil name (POST)

Thanks

My special thanks to Wallyson Rodrigues De Souza work Veredas-mortas: Um Fausto No Sertão Mineiro, which I got all the names used in the python script

"Viver é um negócio muito perigoso" — Guimarães Rosa