semvec/pypi-packages huggingface dataset:
fgslpyrest 1.1.3
A class to make HTTP REST requests
Requires Python: >=3.10

# fgslpyrest

Python component to make HTTP RESTful requests.

## How to install

```shell
pip install fgslpyrest
```

## Using the component 

### Making a HTTP GET request in the terminal

The sequence of commands below make a HTTP GET request and check if the response has the word "German". The response, in this case, is HTML. The last parameter enables verbose output.

```shell
$ python
>>> from fgslpyrest.http.Rest import Rest
>>> rest = Rest()
>>> response = rest.doGet([],"https://time.is/pt_br/UTC",200,True)
>>> print(response.find("German"))
```

The next sequence of commands make a HTTP request which returns a JSON object.

```shell
$ python
>>> import json
>>> from fgslpyrest.http.Rest import Rest
>>> rest = Rest()
>>> response = rest.doGet([],"https://reqres.in/api/users/2",200)
>>> user = json.loads(response)
>>> print(user["data"]["email"])
```

## For developers

* **PKG-INFO** describes the package in a summarized way.
* **MANIFEST.in** defines which files will be included into the package.
* **pyproject.toml** defines the general packaging information.

More information at https://packaging.python.org/en/latest/tutorials/packaging-projects/

## Running the unit tests

```shell
python -m unittest tests/resttest.py 
```

### Building the package

```shell
python -m build --sdist .
```

Requires `build` module. You can install it using `pip install build`.

### Upload the package to PyPI

```shell
twine upload dist/*
```

## Troubleshooting

If you try to install and receive a error message with this fragments:

`filename has 'fgslpyrest', but metadata has 'unknown'`

`ERROR: No matching distribution found for fgslpyrest`

Then run this command:

```shell
pip3 install --upgrade pip
```

And try to install again.
fgslpycnpj 1.0.1
Componente Python para validar CNPJ e gerar dígito verificador
Requires Python: >=3.10

# fgslpycnpj

Componente Python para validar CNPJ e calcular o dígito verificador para o novo padrão Alfanumérico definido pela [ Instrução Normativa nº 2.229](http://normas.receita.fazenda.gov.br/sijut2consulta/link.action?idAto=141102).

Este componente está documentado em português porque CNPJ é um identificador que só faz sentido no Brasil.

Are you not understanding this documentation? Learn portuguese or use a translator.

## Como instalar

```shell
pip install fgslpycnpj
```

## Usando o componente

### Validando o CNPJ

```shell
$ python
>>> from fgslpycnpj.cnpj.CNPJ import CNPJ
>>> numero = "12.ABC.345/01DE-35"
>>> cnpj = CNPJ(numero)
>>> print(cnpj.valida())
```

### Calculando o dígito verificador

```shell
$ python
>>> from fgslpycnpj.cnpj.DigitoVerificador import DigitoVerificador
>>> base = "12.ABC.345"
>>> dv = CNPJ(base)
>>> print(dv.gera_dv())
```

## Para desenvolvedores

* **PKG-INFO** descreve o pacote de uma forma resumida.
* **MANIFEST.in** define quais arquivos serão incluídos dentro do pacote.
* **pyproject.toml** define a informação de empacotamento geral.

## Execute os testes

```shell
python -m unittest tests/cnpjtest.py 
```

### Construa o pacote

```shell
python -m build --sdist .
```

Requer o módulo `build`. Você pode instalá-lo usando `pip install build`.

### Atualize o pacote para o to PyPI

```shell
twine upload dist/*
```