Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download files from Data Portal #6

Open
glourencoffee opened this issue Sep 7, 2022 · 0 comments
Open

Download files from Data Portal #6

glourencoffee opened this issue Sep 7, 2022 · 0 comments
Labels
Priority: Low Issue can be integrated in the next release or later Type: Feature New feature or request

Comments

@glourencoffee
Copy link
Owner

glourencoffee commented Sep 7, 2022

Description

As a library user, I want to download files from CVM's Data Portal using this library.

Challenge

Having to download a CVM file to my filesystem and find it when I only care about using it with this library. Moreover, I have to know the URL of CVM's Data Portal where I can download the files, when this library could just tell me.

Benefit

Abstraction

Acceptance criteria

  • A file whose type is a member of DocumentType can be downloaded from the Data Portal
  • User can specify the year of the file to be downloaded
  • Error is raised if no file is found in the Data Portal for a given year

Additional context

Here is how the feature could look like:

>>> import cvm
>>> cvm.download_url()
'https://dados.cvm.gov.br/'
>>> response = cvm.download(cvm.DocumentType.DFP, 2010)
@glourencoffee glourencoffee added Type: Feature New feature or request Priority: Low Issue can be integrated in the next release or later Status: Backlogged This issue is in the Product Backlog and can be moved to the Release Backlog labels Sep 7, 2022
@glourencoffee glourencoffee added this to the 0.4.0 milestone Sep 25, 2022
@glourencoffee glourencoffee transferred this issue from another repository Oct 11, 2022
@glourencoffee glourencoffee transferred this issue from another repository Oct 13, 2022
@glourencoffee glourencoffee removed this from the 0.4.0 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low Issue can be integrated in the next release or later Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant