mcfinance


Namemcfinance JSON
Version 0.1.8 PyPI version JSON
download
home_pageNone
SummaryMoney control financial data extractor-Requires python 3.7+
upload_time2024-05-08 16:27:25
maintainerNone
docs_urlNone
author05kashyap-ragha1992
requires_pythonNone
licenseNone
keywords python financial extractor data
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# mcfinance

### Developed by 05kashyap and ragha1992
### PyPI stats:
[![Downloads](https://static.pepy.tech/badge/mcfinance)](https://pepy.tech/project/mcfinance)
## Description:

Extract financial data from the money control website using the company name, BSE or NSE number.
Export any selected data into either pandas dataframe or excel sheet with ease!
### .

*Disclaimer*: We are in no way affiliated with moneycontrol.com
 
## Usage:
```python
pip install mcfinance
```
### Initialise company details:
#### Create an Extractor instance with company name/ BSE/ NSE ID (required) and/or number of years(default), required documents(default), and filepath to write documents(default current directory).

```python
from mcfinance import Extractor
Company = Extractor(user_input= "Company_name")
#years and docs are default
Company = Extractor(user_input= "Company_name",years = 10, docs = ["balance sheet", "profit loss"], filepath = "/files")
```
any of the inputs can be changed later on as per user convenience
```python
Company.set_inputs(years = 6)
```
### Export company details as excel file (default)
#### The get_info() function can be used to extract and store company data in an excel file. The file will be stored in the current filepath or the user defined filepath as per object initialisation 

```python
Company.get_info()
```
or
```python
Company.get_info(option = 1)
```

### Export company details into pandas data frame

```python
DataFrame1, DataFrame2, DataFrame3 = Company.get_info(option = 0)
```
### Plot certain attribute over selected years using matplotlib
#### The plotter() function can be used to show the companies attribute from a certain document over the selected period of time using a line graph from the matplotlib library. The function accepts a single required arguement for the attribute selection. 

```python
company.plotter("certain file attribute of the document")
```
#### Usage example: 

```python
cmp = Extractor("TCS", years = 10, docs = ["ratios"])
cmp.plotter("EV/EBITDA (X)")
```
output:

![image](https://github.com/05kashyap/moneycontrol_financial-extractor/assets/120780494/f5be744e-e065-4b03-b6df-2ca7e765c4b2)

### We can also plot the data of multiple companies on the same graph for comparison purposes
```python
company1 = Extractor("TCS", years = 10, docs = ["ratios"])
company2 = Extractor("Infosys", years = 10, docs = ["ratios"])
Extractor.cmp_plot(comp = [company1, company2], attributes = "EV/EBITDA (X)")
```
output:

![image](https://github.com/05kashyap/mcfinance/assets/120780494/294f8313-2876-4751-9485-18517dccb0d3)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mcfinance",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, financial, extractor, data",
    "author": "05kashyap-ragha1992",
    "author_email": "<aryankashyapnaveen@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/59/4a/def78edc3f27b9cf6af6d2b9170dde429957a2a03abc34273ff94754d5de/mcfinance-0.1.8.tar.gz",
    "platform": null,
    "description": "\n# mcfinance\n\n### Developed by 05kashyap and ragha1992\n### PyPI stats:\n[![Downloads](https://static.pepy.tech/badge/mcfinance)](https://pepy.tech/project/mcfinance)\n## Description:\n\nExtract financial data from the money control website using the company name, BSE or NSE number.\nExport any selected data into either pandas dataframe or excel sheet with ease!\n### .\n\n*Disclaimer*: We are in no way affiliated with moneycontrol.com\n \n## Usage:\n```python\npip install mcfinance\n```\n### Initialise company details:\n#### Create an Extractor instance with company name/ BSE/ NSE ID (required) and/or number of years(default), required documents(default), and filepath to write documents(default current directory).\n\n```python\nfrom mcfinance import Extractor\nCompany = Extractor(user_input= \"Company_name\")\n#years and docs are default\nCompany = Extractor(user_input= \"Company_name\",years = 10, docs = [\"balance sheet\", \"profit loss\"], filepath = \"/files\")\n```\nany of the inputs can be changed later on as per user convenience\n```python\nCompany.set_inputs(years = 6)\n```\n### Export company details as excel file (default)\n#### The get_info() function can be used to extract and store company data in an excel file. The file will be stored in the current filepath or the user defined filepath as per object initialisation \n\n```python\nCompany.get_info()\n```\nor\n```python\nCompany.get_info(option = 1)\n```\n\n### Export company details into pandas data frame\n\n```python\nDataFrame1, DataFrame2, DataFrame3 = Company.get_info(option = 0)\n```\n### Plot certain attribute over selected years using matplotlib\n#### The plotter() function can be used to show the companies attribute from a certain document over the selected period of time using a line graph from the matplotlib library. The function accepts a single required arguement for the attribute selection. \n\n```python\ncompany.plotter(\"certain file attribute of the document\")\n```\n#### Usage example: \n\n```python\ncmp = Extractor(\"TCS\", years = 10, docs = [\"ratios\"])\ncmp.plotter(\"EV/EBITDA (X)\")\n```\noutput:\n\n![image](https://github.com/05kashyap/moneycontrol_financial-extractor/assets/120780494/f5be744e-e065-4b03-b6df-2ca7e765c4b2)\n\n### We can also plot the data of multiple companies on the same graph for comparison purposes\n```python\ncompany1 = Extractor(\"TCS\", years = 10, docs = [\"ratios\"])\ncompany2 = Extractor(\"Infosys\", years = 10, docs = [\"ratios\"])\nExtractor.cmp_plot(comp = [company1, company2], attributes = \"EV/EBITDA (X)\")\n```\noutput:\n\n![image](https://github.com/05kashyap/mcfinance/assets/120780494/294f8313-2876-4751-9485-18517dccb0d3)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Money control financial data extractor-Requires python 3.7+",
    "version": "0.1.8",
    "project_urls": null,
    "split_keywords": [
        "python",
        " financial",
        " extractor",
        " data"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f9b31814fac79eb626a4a2ebbee8b3ec559e1de70d1e43cdb74d8019dee1317d",
                "md5": "cc3076743b259790540eb4a69264de20",
                "sha256": "d29917cf470d5271718c20f4cca26631b96f7591efee2148ecf8634bf697ce1d"
            },
            "downloads": -1,
            "filename": "mcfinance-0.1.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc3076743b259790540eb4a69264de20",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 249365,
            "upload_time": "2024-05-08T16:27:21",
            "upload_time_iso_8601": "2024-05-08T16:27:21.952766Z",
            "url": "https://files.pythonhosted.org/packages/f9/b3/1814fac79eb626a4a2ebbee8b3ec559e1de70d1e43cdb74d8019dee1317d/mcfinance-0.1.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "594adef78edc3f27b9cf6af6d2b9170dde429957a2a03abc34273ff94754d5de",
                "md5": "4b7aa157ea4c2f729aa55fff06a5276a",
                "sha256": "876255b31b80129c5cbf97f9554cbc49e3aa81a55526a783e6e1ddfae7fcbda1"
            },
            "downloads": -1,
            "filename": "mcfinance-0.1.8.tar.gz",
            "has_sig": false,
            "md5_digest": "4b7aa157ea4c2f729aa55fff06a5276a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 245802,
            "upload_time": "2024-05-08T16:27:25",
            "upload_time_iso_8601": "2024-05-08T16:27:25.490921Z",
            "url": "https://files.pythonhosted.org/packages/59/4a/def78edc3f27b9cf6af6d2b9170dde429957a2a03abc34273ff94754d5de/mcfinance-0.1.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-08 16:27:25",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mcfinance"
}
        
Elapsed time: 0.29747s