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
-
Make sure you've python installed
-
Clone this repo
git clone https://github.com/guilhermealbm/TINHOSO
-
Change into the directory of the project:
cd TINHOSO
-
Run!
python devil_names.py
-
Make sure you've python and Flask installed (Flask can be downloaded with pip)
-
Clone this repo
git clone https://github.com/guilhermealbm/TINHOSO
-
Change into the directory of the project:
cd TINHOSO
-
Run!
python start_api.py
-
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)
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