Skip to main content

inewave

Pacote Python para leitura e escrita dos arquivos de entrada e saída do modelo NEWAVE e dos programas auxiliares NWLISTOP e NWLISTCF.

CI codecov PyPI version Python versions License: MIT Documentacao

O inewave é um pacote Python para manipulação dos arquivos de entrada e saída do programa NEWAVE. O NEWAVE é desenvolvido pelo CEPEL e utilizado para os estudos de planejamento e operação do Sistema Interligado Nacional (SIN).

Funcionalidades

  • Leitura e escrita dos arquivos de entrada do NEWAVE, com suporte a modificações programáticas de decks de PMO
  • Leitura dos arquivos de saída do NEWAVE e dos programas auxiliares NWLISTCF e NWLISTOP
  • Dados tabulares expostos como DataFrame do pandas, prontos para análise e visualização
  • Interface orientada a objetos consistente: cada arquivo corresponde a uma classe com método read e, quando aplicável, método write
  • Suporte a múltiplas versões de formato do mesmo arquivo, com seleção via argumento version= no método read
  • Importação sob demanda (lazy import) para inicialização rápida mesmo com dezenas de classes disponíveis

Exemplo Rapido

Leitura do arquivo de saída pmo.dat e acesso aos dados de convergência como DataFrame:

from inewave.newave import Pmo

arq_pmo = Pmo.read("./pmo.dat")
arq_pmo.convergencia

Leitura de um arquivo de entrada, modificação de valores e escrita do resultado:

from inewave.newave import Vazoes

arq_vazoes = Vazoes.read("./vazoes.dat")

# Sensibilidade: elevar todas as vazões históricas em 10%
arq_vazoes.vazoes *= 1.1

arq_vazoes.write("./vazoes_sensibilidade.dat")

Instalacao

O inewave é compatível com Python 3.11, 3.12, 3.13 e 3.14.

Instalação a partir do PyPI:

pip install inewave

Instalação da versão de desenvolvimento diretamente do repositório:

pip install git+https://github.com/rjmalves/inewave

Documentacao

A documentação completa do pacote está disponível em rjmalves.github.io/inewave e inclui:

Contribuindo

Contribuições são bem-vindas. Consulte o arquivo CONTRIBUTING.md para instruções sobre como configurar o ambiente de desenvolvimento, executar os testes e enviar pull requests.

Licenca

Distribuído sob a licença MIT.

Metadata

Release files for inewave 1.17.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inewave 1.17.1
File Size Uploaded Provenance Actions
inewave-1.17.1.tar.gz 14.3 MB With provenance Details for inewave-1.17.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inewave 1.17.1
File Interpreter ABI Platform Actions
inewave-1.17.1-py3-none-any.whl Python 3 none any Details for inewave-1.17.1-py3-none-any.whl

Total release size: 14.8 MB

Release files / inewave-1.17.1.tar.gz

Download URL inewave-1.17.1.tar.gz
Size 14.3 MB
Tags Source
SHA-256 checksum
How to use checksums
82c022a3de3f7e6ecca9d7e7e542d50af33de9e0642669d653a1c0ff9d4f98f5
BLAKE2b-256 checksum
How to use checksums
08019b7fad6821aa6944f36979f09f0aff9bd1c75f4fea02f231b76859d80ec6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / inewave-1.17.1-py3-none-any.whl

Download URL inewave-1.17.1-py3-none-any.whl
Size 469.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
410b4562b6a72279b199464ddc0d13e6a6216e1af6da0292fad94d78c9c9460b
BLAKE2b-256 checksum
How to use checksums
483ff777fe53ee73898e24f2ffa10febcd2520f4159ae6d4978205ab5e01b66c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for inewave 1.17.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for inewave-1.17.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.17.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page