Parser for Bovespa data
Project description
bovespa2csv
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for bovespa2csv-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bcc7664aca03974980dc19607d0453732060ea78e75cbea9a9e3648f5010e54 |
|
MD5 | e604e1944510dc3bf85d72538af485d7 |
|
BLAKE2b-256 | 1d82e54ee353b323827a8d513c74a93b16f523d85aec36c5644d6cdb601e7c47 |