📜  grepper brazil - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:01:04.545000             🧑  作者: Mango

Grepper Brazil - Shell/Bash

Grepper Brazil Logo

Grepper Brazil is a shell/bash command line tool that allows programmers to search for code snippets on grep.app specifically in the Brazilian Portuguese language. It's a helpful tool for Brazilian developers who are looking for examples and best practices in their native language.

Installation

To install Grepper Brazil, clone the repository from GitHub:

$ git clone https://github.com/grepperbrazil/grepper-brazil.git
Usage

To use Grepper Brazil, simply run the grepper-brazil command with your search query as a parameter:

$ grepper-brazil "como ler um arquivo em python"

The tool will return up to 10 code snippets related to your query, in Brazilian Portuguese.

Example

Let's say you are building a Python application and need to read a file. You might want to search for the code to do so in Portuguese. With Grepper Brazil, you can simply run:

$ grepper-brazil "como ler um arquivo em python"

And you will get code snippets like this:

"""
Exemplo simples de como ler um arquivo em Python
"""

with open('arquivo.txt', 'r') as arquivo:
    conteudo = arquivo.read()
    print(conteudo)
Contributing

If you want to contribute to the project, you can create a pull request on the GitHub repository. All contributions are welcome!

License

Grepper Brazil is licensed under the MIT License.

Acknowledgements

This tool was created using the Grep.app API and the fire Python library. Special thanks to both of these amazing projects!