Skip to main content

Dados do FGTS

Converta os PDFs fornecidos pela app do FGTS em dados estruturados num CSV prontinho para ser usado com o Investorzilla.

Instalação

pip install fgts_pdf_dados --user

Uso

shell> cd "Pasta com PDFs do FGTSs"
shell> ls
EXTRATO_EMPRESA_1.pdf
EXTRATO_EMPRESA_2.pdf
EXTRATO_EMPRESA_3.pdf

shell> fgts-pdf-dados

Ou converta os nomes das empresas para algo mais bonito:

shell> cd "Pasta com PDFs do FGTSs"
shell> fgts-pdf-dados \
    --nickname 'C I T SOFTWARE SA' 'CI&T' \
    --nickname 'DIGITAL HOUSE EDUCACAO LTDA' 'Digital House'

Todo mês, por volta do dia 21, eu entro na app do FGTS e gravo em PDF o extrato atualizado de todas as minhas contas ativas. A inativas só preciso fazer uma vez. Mantenho tudo junto numa pasta onde rodo o comando fgts-pdf-dados. Na verdade, tenho um Makefile com o seguinte conteúdo:

all:
        # pip install --user fgts-pdf-dados
        fgts-pdf-dados \
            --nickname 'C I T SOFTWARE SA'             'CI&T' \
            --nickname 'DIGITAL HOUSE EDUCACAO LTDA'   'Digital House' \
            --nickname 'NOME FEIO CONFORME VEM NO PDF' 'Apelido Bonito' \
            --nickname 'OUTRO NOME FEIO'               'Apelido Bonito'

Aí, depois de gravar o extrato atualizado da app do FGTS, só preciso rodar make.

Resultado

O arquivo FGTS.csv vai conter uma série histórica com todos os dados de cada empresa ou conta de FGTS e já separa o que é movimentação de entrada e saída (coluna movement) e o que é juros (coluna interest):

account time movement interest total desc
FGTS CI&T (472349) 2019-07-05 12:00:00.898000-03:00 12.52 150-DEPOSITO JUNHO 2019
FGTS CI&T (472349) 2019-07-05 12:00:00.898000001-03:00 12.52
FGTS CI&T (472349) 2019-08-10 12:00:00.900000-03:00 2.2 CREDITO DE JAM 0,002466
FGTS CI&T (472349) 2019-08-10 12:00:00.900000001-03:00 14.72
FGTS Digital House (13360) 2019-04-04 12:00:00.808000-03:00 123.45 115-DEPOSITO MARCO 2019
FGTS Digital House (13360) 2019-04-04 12:00:00.808000001-03:00 123.45
FGTS Digital House (13360) 2021-09-21 12:00:00.895000001-03:00 1.74
FGTS Digital House (13360) 2021-09-21 12:00:00.896000-03:00 -1.74 SAQUE JAM - COD 01
FGTS Digital House (13360) 2021-09-21 12:00:00.896000001-03:00 0

Sobre

Feito por Avi Alkalay para prover dados pessoais ao meu painel de investimentos do Investorzilla.

Metadata

Release files for fgts-pdf-dados 1.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 fgts-pdf-dados 1.1
File Size Uploaded Provenance Actions
fgts_pdf_dados-1.1.tar.gz 5.7 kB Without provenance Details for fgts_pdf_dados-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fgts-pdf-dados 1.1
File Interpreter ABI Platform Actions
fgts_pdf_dados-1.1-py3-none-any.whl Python 3 none any Details for fgts_pdf_dados-1.1-py3-none-any.whl

Total release size: 11.7 kB

Release files / fgts_pdf_dados-1.1.tar.gz

Download URL fgts_pdf_dados-1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4f7fdaf6425de4c50afd567c1addde05ee68faa2bb5b3e4a7c60b757a00733ec
BLAKE2b-256 checksum
How to use checksums
0d652a965d73ea592ce040036c56f123279a7bbc8ad3f0e782a3907e942b6720
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / fgts_pdf_dados-1.1-py3-none-any.whl

Download URL fgts_pdf_dados-1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91070dffb2e578f45467bc85923a5d60a7eec6c005b0b5df037fac6c320def39
BLAKE2b-256 checksum
How to use checksums
93117a09b106fc0eae0e5d1f1d77a18b4525054d8ad452edaad3a276e48e421e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for fgts-pdf-dados 1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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