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 details)
Built Distribution
File details
Details for the file bovespa2csv-0.0.2.tar.gz
.
File metadata
- Download URL: bovespa2csv-0.0.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1078416a6b3477e239252818232ae1262056cf4d15ba593e7a8e91f0fab4120 |
|
MD5 | cd1f56ef52a40a44dde216f73065d858 |
|
BLAKE2b-256 | c19d5c892409912f5520350ddd22fa7ca1fdeb39c296b835851585800e81b88c |
File details
Details for the file bovespa2csv-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: bovespa2csv-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bcc7664aca03974980dc19607d0453732060ea78e75cbea9a9e3648f5010e54 |
|
MD5 | e604e1944510dc3bf85d72538af485d7 |
|
BLAKE2b-256 | 1d82e54ee353b323827a8d513c74a93b16f523d85aec36c5644d6cdb601e7c47 |