Skip to main content

Biblioteca de funcoes de engenharia civil / rodovias (SNV, alinhamentos, geoprocessamento, Excel, SharePoint)

Project description

InfraPy

Biblioteca de funcoes de engenharia / rodovias: leitura de shapefiles, calculo de km em alinhamentos e SNV, cortes, leitura de Excel (xlwings), geracao de mapas Folium, integracao com SharePoint.

Instalacao (na sua maquina, modo editavel)

Dentro da pasta do projeto (onde esta o pyproject.toml):

pip install -e .

O -e aponta para o codigo-fonte: qualquer alteracao em src/infrapy/*.py vale na hora (basta reiniciar o kernel), sem reinstalar.

Instalacao em outra maquina (via GitHub)

pip install git+https://github.com/SrBlacky/InfraPy.git

Configuracao (.env)

Segredos e caminhos pessoais NAO ficam no codigo. Eles vem de um arquivo .env fora do repositorio.

  1. Copie .env.example para um .env numa pasta segura (fora do OneDrive, ex.: C:\Users\SEU_USUARIO\.infrapy\.env).
  2. Preencha os valores.
  3. Ajuste o caminho do .env em src/infrapy/__init__.py (variavel _ENV_PATH) OU defina a variavel de ambiente do Windows INFRAPY_ENV apontando para o arquivo.

Uso

from infrapy import read_shape, ler_excel, ponto_para_km

aln = read_shape()                 # usa ALN_PADRAO do .env
ws, df = ler_excel("dados.xlsx", "Plan1", "A1")
km = ponto_para_km(aln, (-47.9, -15.8))

Ou por modulo:

from infrapy.geo import cortar, km_para_ponto
from infrapy.sharepoint import abrir_mef

Estrutura

InfraPy/
├── pyproject.toml       identidade e dependencias do pacote
├── .env.example         modelo de configuracao (versionavel)
├── .gitignore
└── src/
    └── infrapy/
        ├── __init__.py      carrega o .env e expoe atalhos
        ├── config.py        le variaveis do ambiente
        ├── geo.py           geoprocessamento (o grosso das funcoes)
        ├── excel.py         leitura/escrita de Excel
        ├── export.py        exportar shp / json->shp
        ├── mapas.py         mapas Folium
        ├── cores.py         cores aleatorias
        └── sharepoint.py    integracao SharePoint

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infrapy-0.1.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infrapy-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file infrapy-0.1.0.tar.gz.

File metadata

  • Download URL: infrapy-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for infrapy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac930f16aba5b5db3fc2c05edca19ded6932f26a9e59987b35e66f172f53efb1
MD5 65aa43818c32b21e01af8551cb00b118
BLAKE2b-256 1d7b16553c1808038613307be8b7c66d3b622b8948538d808b8da7c94bd537b6

See more details on using hashes here.

File details

Details for the file infrapy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: infrapy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for infrapy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d679ab216ff024bf04a96b10b8b25b3bdf69a1b86a000300147e53ff1d14aa68
MD5 f16e741e6ea6ce7383d6e371fd400c7b
BLAKE2b-256 2f8e04c45169ae098e17f8ba744b13d6d546dde9a1e1060a8b604e6e2cfc480d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page