# easystockplot - An easy Python plot package for stocks!
## Overview
**easystockplot** is a Python package that allows users to easily plot the daily stock price and return of a stock over the past year by default. You can also specify the period (by specifying `end_date` and `number of days`) of the stock you want to plot.
## Installation
To download easystockplot, either fork this github repo or simply use Pypi via pip.
```bash
pip install easystockplot
```
## Usage
### Import the package
```python
from easystockplot import StockPlot
```
### Plot the daily stock price and 30-day moving average over the past year
```python
Apple_plot = StockPlot('AAPL')
Apple_plot.plot_stock()
```
![1](images/AAPL_price.png)
### Plott the daily stock return over the past year
```python
Apple_plot.plot_stock_return()
```
![2](images/AAPL_return.png)
Raw data
{
"_id": null,
"home_page": "https://sl-huo.github.io/",
"name": "easystockplot",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,stock,plot",
"author": "S Huo",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/03/65/c975ed8d94148d83ef899a4318ecd804b4cd57047f2444d7cd6dff78777d/easystockplot-0.1.1.tar.gz",
"platform": null,
"description": "# easystockplot - An easy Python plot package for stocks!\n\n## Overview\n**easystockplot** is a Python package that allows users to easily plot the daily stock price and return of a stock over the past year by default. You can also specify the period (by specifying `end_date` and `number of days`) of the stock you want to plot.\n\n## Installation\nTo download easystockplot, either fork this github repo or simply use Pypi via pip.\n\n```bash\npip install easystockplot\n```\n\n## Usage \n\n### Import the package\n```python\nfrom easystockplot import StockPlot\n```\n\n### Plot the daily stock price and 30-day moving average over the past year\n\n```python\nApple_plot = StockPlot('AAPL')\n\nApple_plot.plot_stock()\n```\n![1](images/AAPL_price.png)\n\n### Plott the daily stock return over the past year\n```python\nApple_plot.plot_stock_return()\n```\n![2](images/AAPL_return.png)\n\n",
"bugtrack_url": null,
"license": "",
"summary": "an easy stockplot package",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://sl-huo.github.io/"
},
"split_keywords": [
"python",
"stock",
"plot"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0365c975ed8d94148d83ef899a4318ecd804b4cd57047f2444d7cd6dff78777d",
"md5": "5e354aadc7bc7109e529fa6339e92356",
"sha256": "d41ab858705cd62bd3ddcf7ee41d396eb18ede6cf595d728e334fa8a4109573a"
},
"downloads": -1,
"filename": "easystockplot-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "5e354aadc7bc7109e529fa6339e92356",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3356,
"upload_time": "2023-07-22T03:55:30",
"upload_time_iso_8601": "2023-07-22T03:55:30.528028Z",
"url": "https://files.pythonhosted.org/packages/03/65/c975ed8d94148d83ef899a4318ecd804b4cd57047f2444d7cd6dff78777d/easystockplot-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-22 03:55:30",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "easystockplot"
}