Skip to main content

Parser for Bovespa data

Project description

bovespa2csv

Build Status License Version

Introduction

This library was created to parse the txt files from BM&FBOVESPA/B3 site to a csv file or to an xlsx file.

Install

You can either install by pip:

$ pip3 install bovespa2csv

or by cloning the repository on Github:

$ git clone git@github.com:felipessalvatore/bovespa2csv.git
$ cd bovespa2csv
$ pip3 install -r requirements.txt

Usage

You can use the script parse_file.py to create a csv file:

  $ cd bovespa2csv 
  $ python3 parse_file.py <txt_file> example.csv

or to create a xlsx file:

  $ cd bovespa2csv 
  $ python3 parse_file.py -e <txt_file> example.xlsx

You can also use the class BovespaParser to get a pandas DataFrame from the txt file:

from bovespa2csv.BovespaParser import BovespaParser

parser = BovespaParser()
parser.read_txt("COTAHIST_DXXXXXX.TXT")
df = parser.df

Built With

Project details


Download files

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

Source Distribution

bovespa2csv-0.0.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

bovespa2csv-0.0.2-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page