bovespa2csv-0.0.2


توضیحات

Parser for Bovespa data
ویژگی مقدار
سیستم عامل OS Independent
نام فایل bovespa2csv-0.0.2
نام bovespa2csv
نسخه کتابخانه 0.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Felipe Salvatore
ایمیل نویسنده felipessalvador@gmail.com
آدرس صفحه اصلی https://github.com/felipessalvatore/bovespa2csv
آدرس اینترنتی https://pypi.org/project/bovespa2csv/
مجوز MIT
# bovespa2csv [![Build Status](https://travis-ci.org/felipessalvatore/bovespa2csv.svg?branch=master)](https://travis-ci.org/felipessalvatore/bovespa2csv) [![License](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/felipessalvatore/bovespa2csv/blob/master/LICENSE) ![Version](https://img.shields.io/badge/bovespa2csv-0.0.2-blue.svg) ## Introduction This library was created to parse the txt files from [BM&FBOVESPA/B3 site](http://www.bmfbovespa.com.br/pt_br/servicos/market-data/historico/mercado-a-vista/series-historicas/) 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: ```python from bovespa2csv.BovespaParser import BovespaParser parser = BovespaParser() parser.read_txt("COTAHIST_DXXXXXX.TXT") df = parser.df ``` ## Built With * [Pandas](https://pandas.pydata.org/) * [XlsxWriter](https://xlsxwriter.readthedocs.io/)


نحوه نصب


نصب پکیج whl bovespa2csv-0.0.2:

    pip install bovespa2csv-0.0.2.whl


نصب پکیج tar.gz bovespa2csv-0.0.2:

    pip install bovespa2csv-0.0.2.tar.gz