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.

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 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

import infrapy
from infrapy import read_shape, ler_excel, ponto_para_km
from infrapy import config, geo

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       
├── .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        exportação
        ├── 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.1.tar.gz (15.7 kB 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.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for infrapy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0391891e6547d24aee780e891c712e0d07d1d69a795cbcbc5d0b50c19dd8f906
MD5 9031323686e869ce14de6f997a4c5fd6
BLAKE2b-256 2feaccd4a6c30ce9564d877af442dac9b9b3f318b9ae127368bda982fe2f7617

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infrapy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 278387e257eec4e03fc3a008174f0bba02a997bd85a03818850ce38c6099393c
MD5 277d2596518c6917708a14bbb68b1998
BLAKE2b-256 465f0e7fa2a20eac59f9000782b697eca8b5952c6916b0c9fa8aec0caea2b8a7

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