{"id":15654123,"url":"https://github.com/staticdev/irpf-investidor","last_synced_at":"2025-10-07T08:31:49.252Z","repository":{"id":37026657,"uuid":"443580666","full_name":"staticdev/irpf-investidor","owner":"staticdev","description":"Programa auxiliar gratuito para calcular custos de ações, ETFs e fundos imobiliários. ","archived":false,"fork":false,"pushed_at":"2025-09-04T15:44:07.000Z","size":1870,"stargazers_count":36,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-24T21:47:11.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/staticdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-01T16:45:25.000Z","updated_at":"2025-09-16T16:15:11.000Z","dependencies_parsed_at":"2022-07-14T05:20:31.737Z","dependency_job_id":"560809c3-543e-4ff2-b644-90009d1c0a34","html_url":"https://github.com/staticdev/irpf-investidor","commit_stats":{"total_commits":379,"total_committers":3,"mean_commits":"126.33333333333333","dds":"0.10026385224274403","last_synced_commit":"a5639442bc639181395759859a0ccf9b8ae98e05"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/staticdev/irpf-investidor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staticdev%2Firpf-investidor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staticdev%2Firpf-investidor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staticdev%2Firpf-investidor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staticdev%2Firpf-investidor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/staticdev","download_url":"https://codeload.github.com/staticdev/irpf-investidor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/staticdev%2Firpf-investidor/sbom","scorecard":{"id":846834,"data":{"date":"2025-08-11","repo":{"name":"github.com/staticdev/irpf-investidor","commit":"c537c68f70cc48537497c78aa06cb625469afad9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"16 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/labeler.yml:1","Warn: no topLevel permission defined: .github/workflows/release-dev.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/labeler.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/labeler.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/labeler.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/labeler.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-dev.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release-dev.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-dev.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release-dev.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-dev.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release-dev.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-dev.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release-dev.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:111: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:114: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:124: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:136: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:151: update your workflow using https://app.stepsecurity.io/secureworkflow/staticdev/irpf-investidor/tests.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:43","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:120","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release-dev.yml:7"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T21:40:47.374Z","repository_id":37026657,"created_at":"2025-08-23T21:40:47.374Z","updated_at":"2025-08-23T21:40:47.374Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278743226,"owners_count":26037996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:49:40.549Z","updated_at":"2025-10-07T08:31:49.236Z","avatar_url":"https://github.com/staticdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IRPF Investidor\n\n[![PyPI](https://img.shields.io/pypi/v/irpf-investidor.svg)][pypi status]\n[![Status](https://img.shields.io/pypi/status/irpf-investidor.svg)][pypi status]\n[![Python Version](https://img.shields.io/pypi/pyversions/irpf-investidor)][pypi status]\n[![License](https://img.shields.io/pypi/l/irpf-investidor)][license]\n\n[![Read the documentation at https://irpf-investidor.readthedocs.io/](https://img.shields.io/readthedocs/irpf-investidor/latest.svg?label=Read%20the%20Docs)][read the docs]\n[![Tests](https://github.com/staticdev/irpf-investidor/workflows/Tests/badge.svg)][tests]\n[![Codecov](https://codecov.io/gh/staticdev/irpf-investidor/branch/main/graph/badge.svg)][codecov]\n\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)][pre-commit]\n[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]\n\n[pypi status]: https://pypi.org/project/irpf-investidor/\n[read the docs]: https://irpf-investidor.readthedocs.io/\n[tests]: https://github.com/staticdev/irpf-investidor/actions?workflow=Tests\n[codecov]: https://app.codecov.io/gh/staticdev/irpf-investidor\n[pre-commit]: https://github.com/pre-commit/pre-commit\n[black]: https://github.com/psf/black\n\nPrograma auxiliar para calcular custos de ações, ETFs e FIIs. Este programa foi feito para calcular emolumentos, taxa de liquidação e custo total para a declaração de Bens e Direitos do Imposto de Renda Pessoa Física.\n\n**Essa aplicação foi testada e configurada para calcular tarifas referentes aos anos de 2019 a 2022 (IRPF 2020/2023) e não faz cálculos para compra e venda no mesmo dia (Day Trade), contratos futuros e Índice Brasil 50.**\n\n## Requisitos\n\n1. Python\n\n   Instale na sua máquina o Python 3.11.0 ou superior (versão 3.11 recomendada) para o seu sistema operacional em [python.org].\n\n1. Suporte a língua Português (Brasil) no seu sistema operacional.\n\n   Pode ser instalado no Linux (Debian/Ubuntu) pelo comando:\n\n   ```sh\n   $ apt-get install language-pack-pt-base\n   ```\n\n## Instalação\n\nYou can install _IRPF Investidor_ via [pip] from [PyPI]:\n\n```sh\n$ pip install irpf-investidor\n```\n\n## Uso\n\n1. Entre na [Área do Investidor] da B3, faça login e entre no menu Extratos e Informativos → Negociação de Ativos → Escolha uma corretora e as datas 1 de Janeiro e 31 de Dezembro do ano em que deseja declarar. Em seguida clique no botão “Exportar para EXCEL”. Ele irá baixar o arquivo “InfoCEI.xls”.\n\n**Ainda não é possível rodar o programa usando os novos arquivos XLSX, gerar no formato antigo.** Baixe e altere o [Template_InfoCEI.xls](Template_InfoCEI.xls).\n\nVocê pode combinar lançamentos de anos diferentes em um mesmo documento colando as linhas de um relatório em outro, mas mantenha a ordem cronológica.\n\n2. Execute o programa através do comando:\n\n```sh\n$ irpf-investidor\n```\n\nO programa irá procurar o arquivo \"InfoCEI.xls\" na pasta atual (digite `pwd` no terminal para sabe qual é) ou na pasta downloads e exibirá na tela os resultados.\n\nAo executar, o programa pede para selecionar operações realizadas em leilão. Essa informação não pode ser obtida nos relatórios da `Área do Investidor` da B3 e precisam ser buscadas diretamente com a sua corretora de valores. Isso afeta o cálculo dos emolumentos e do custo médio.\n\n## Aviso legal (disclaimer)\n\nEsta é uma ferramenta com código aberto e gratuita, com licença MIT. Você pode alterar o código e distribuir, usar comercialmente como bem entender. Contribuições são muito bem vindas. Toda a responsabilidade de conferência dos valores e do envio dessas informações à Receita Federal é do usuário. Os desenvolvedores e colaboradores desse programa não se responsabilizam por quaisquer incorreções nos cálculos e lançamentos gerados.\n\n## Créditos\n\nEsse projeto foi gerado pelo template [@cjolowicz]'s [Hypermodern Python Cookiecutter].\n\n\u003c!-- github-only --\u003e\n\n[license]: https://github.com/staticdev/irpf-investidor/blob/main/LICENSE\n[@cjolowicz]: https://github.com/cjolowicz\n[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python\n[pip]: https://pip.pypa.io/\n[pypi]: https://pypi.org/\n[python.org]: https://www.python.org/downloads/\n[uso]: https://irpf-investidor.readthedocs.io/en/latest/usage.html\n[área do investidor]: https://www.investidor.b3.com.br/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaticdev%2Firpf-investidor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstaticdev%2Firpf-investidor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstaticdev%2Firpf-investidor/lists"}