Skip to main content

About

cvm is a Python library whose job is to extract data from publicly-held companies provided by CVM, thus allowing its use in automated systems. The library was designed to be part of a software for analysis of public companies, although it may be used on its own for other purposes.

What is the CVM?

CVM is the acronym for "Comissão de Valores Mobiliários" ("Securities and Exchange Commission"), which is the government agency that defines the rules for publicly-held companies. In addition to regulating such companies, CVM also makes their data available for public access.

CVM Documents

The CVM's Data Portal provides the following types of documents from publicly-held companies:

  • Registration Form ("Formulário Cadastral" or "FCA")
  • Standardized Financial Statements ("Demonstrações Financeiras Padronizadas" or "DFP")
  • Quarterly Information ("Informações Trimestrais" or "ITR")
  • Reference Form ("Formulário de Referência" or "FRE")
  • Eventual and Periodical Reports ("Informes Periódicos e Eventuais" or "IPE")
  • Registration Information ("Informação Cadastral" or "CAD")

Currently, this library supports the documents FCA, FRE (partial), DFP, and ITR.

Usage

import cvm

with cvm.FCAFile('path/to/fca.zip') as file:
    for fca in file:
        print(fca.company_name, 'sent an FCA document on', fca.receipt_date)

with cvm.DFPITRFile('path/to/dfp_or_itr.zip') as file:
    for dfpitr in file:
        print(dfpitr.company_name, 'sent a', dfpitr.type.name, 'document on', dfpitr.receipt_date)

Note that this library has not been thoroughly tested and its API is still unstable.

More elaborated examples are in the directory samples:

> python -m samples.dfp.print_accounts 'path/to/dfp_or_itr.zip'
> python -m samples.dfp.print_balances 'path/to/dfp_or_itr.zip'

Metadata

Release files for pycvm 0.4.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 pycvm 0.4.1
File Size Uploaded
pycvm-0.4.1.tar.gz 82.4 kB Details

Built distribution (wheel)

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

Total release size: 161.9 kB

Release files / pycvm-0.4.1.tar.gz

Download URL pycvm-0.4.1.tar.gz
Size 82.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15f32607748fefce4b4b1a3c11e236128667b0c7f52a45b7a6ed01692b053a13
BLAKE2b-256 checksum
How to use checksums
0a1cf3f5dd5e836a79e3b4d67b7aa62169285722cab7ab9020adb7b614f048fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.1

Release files / pycvm-0.4.1-py3-none-any.whl

Download URL pycvm-0.4.1-py3-none-any.whl
Size 79.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dea46439b8ea85a6c4ce57e149e90e8ae939902ecd99a418d67e51ca8450bb4f
BLAKE2b-256 checksum
How to use checksums
81a9c28a035e98266001bab8bb043bdfa3656ecca3bb9c7c5053adfd73564c48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

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