Skip to main content

Uma biblioteca para cálculos de investimentos.

Project description

Meu Investimento 🚀

Uma biblioteca Python simples e eficiente para cálculos de finanças pessoais, com funções para:

  • Retorno de investimento (%)
  • Juros compostos
  • Conversão de taxa anual para mensal
  • Cálculo do CAGR (Taxa de crescimento anual composta)

📦 Instalação

Instale diretamente do PyPI:

pip install meu_investimento

Ou instale localmente (durante o desenvolvimento):


pip install dist/meu_investimento-0.1-py3-none-any.whl


from investimentos import (
    calcular_retorno_investimento,
    calcular_juros_compostos,
    converter_taxa_anual_para_mensal,
    calcular_cagr
)

valor_inicial = 1000
valor_final = 1500
anos = 5
taxa_anual = 12

print(f"Retorno: {calcular_retorno_investimento(valor_inicial, valor_final):.2f}%")
print(f"Juros compostos: R${calcular_juros_compostos(valor_inicial, 6, anos):.2f}")
print(f"Taxa mensal equivalente: {converter_taxa_anual_para_mensal(taxa_anual)*100:.4f}%")
print(f"CAGR: {calcular_cagr(valor_inicial, valor_final, anos):.2f}%")


Funcionalidades

calcular_retorno_investimento(valor_inicial, valor_final)  Retorno em %

calcular_juros_compostos(principal, taxa_juros_anual, periodos)  Valor acumulado

converter_taxa_anual_para_mensal(taxa_anual)  Taxa mensal efetiva

calcular_cagr(valor_inicial, valor_final, anos)  CAGR em %

Público-alvo
Ideal para:

Estudantes aprendendo matemática financeira

Desenvolvedores que precisam de cálculos financeiros simples

Qualquer pessoa que deseje automatizar análises básicas de investimentos

Requisitos
Python 3.6 ou superior

Nenhuma dependência adicional (somente biblioteca padrão)


Licença
Este projeto está licenciado sob a MIT License. Veja o arquivo LICENSE para mais detalhes.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

meu_investimento_ferrufato-0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file meu_investimento_ferrufato-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for meu_investimento_ferrufato-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80dd13ea7f6c9b390d71cc8a5594becdc654fa04f1fb29a83a5844738614c257
MD5 5a6a59bea5145b4092c59cdb60d4f8fd
BLAKE2b-256 15a5a517cfa91598b94b5958c1197577d5ecc2a21b09cffc88f8776ecf64a71a

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