semvec/pypi-packages huggingface dataset:
sp-mpsp-divadmin 0.0.5
Divisão Administrativa das Áreas Regionais, GAEMAs, Redes Protetivas e Macroregiões e outras
Requires Python: >=3
Keywords: python,dados espaciais,geoprocessamento

# Divisão Administrativa do MPSP

[![Publish Python 🐍 distributions 📦 to PyPI](https://github.com/open-geodata/sp_mpsp_divadmin/actions/workflows/publish-to-pypi.yml/badge.svg)](https://github.com/open-geodata/sp_mpsp_divadmin/actions/workflows/publish-to-pypi.yml)

[GitHub](https://github.com/open-geodata/sp_mpsp_divadmin) |
[PyPI](https://pypi.org/project/sp-mpsp-divadmin)

<br>

O presente repositório visa apresentar os _scripts_ com rotinas para atualização dos dados de divisões administrativas do Ministério Público do Estado de São Paulo, bem como criação de arquivos em diferentes formatos, bem como o mapa. São apresentadas as seguintes divisões:

- GAEMAs
- GAECOs
- Redes Protetivas
- Áreas Regionais
- Promotorias Regionais do Meio Ambiente
- Macroregiões

<br>

[![Mapa](./docs/imgs/mapa.png)](https://michelmetran.com.br/posts/div-admin-mpsp)

<br>

O presente projeto também pode ser utilizado em conjunto com o [OpenGeodata](https://github.com/open-geodata/open-geodata).

<br>

---

### _TODO:_

1. ...
2. ...
pysicgl 0.1.0
sicgl for Python
Requires Python: >=3.7
Keywords: sicgl,2d,2D,small,iterator,graphics,library,c,extension

![popsicgl](./docs/assets/popsicgl.WEBP)

# pysicgl

pysicgl is a Python C extension interface for the [sicgl](https://github.com/oclyke/sicgl) graphics library.

both projects are young and would benefit from community involvement.

# getting started as a developer

**get submodules**

```bash
git submodule update --init --recursive
```

**set up the python environment**

* remove any existing virtual environment
* create a new virtual environment
* activate the virtual environment
* install development dependencies

```bash
rm -rf venv
python3 -m venv venv # use your Python 3 interpreter
source venv/bin/activate
pip install -r requirements.dev.txt
```

**build and develop pysicl**

```bash
python setup.py build
python setup.py develop
```

**run tests and install**

```bash
python -m pytest
python setup.py test
python setup.py install
```

**build and upload to pypi**

Note: this is how you can do it manually, but it is automated by github actions.

```bash
git checkout <tag>
python setup.py sdist
twine upload dist/*

twine upload dist/* --repository-url https://test.pypi.org/legacy/

# username: __token__
# password: <token>
twine upload --repository testpypi dist/* # do a test upload
twine upload dist/* # do a real upload
```

# formatting

```
source venv/bin/activate
./scripts/third-party/run-clang-format/run-clang-format.py -r include src
black .
```

# design choices

## color sequences

color sequences are immutable. side effects are not allowed.