Skip to content

Commit

Permalink
Merge pull request #38 from UBC-MDS/feat-add-get-pollution-forecast
Browse files Browse the repository at this point in the history
Adds readme instructions and solves package dependencies
  • Loading branch information
christopheralex authored Jan 22, 2022
2 parents bc7e36c + aa65c2a commit 092ca6a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 19 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,23 @@ Although there is an abundance of python weather packages and APIs in the Python
## Installation

```bash
$ pip install airpyllution
$ pip install --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple airpyllution
```

## Usage

- TODO
1. Create an OpenWeatherMap API key
2. Install airpyllution
3. Run the following code from terminal after replacing your api key.
```
from airpyllution import airpyllution
df = airpyllution.get_pollution_history(1606488670, 1606747870, 49.28, 123.12, "your_api_key")
world_chart = airpyllution.get_air_pollution(49.2497, -123.1193, "your_api_key")
world_chart.show()
time_chart = airpyllution.get_pollution_forecast(45.0,180.0,"your_api_key")
time_chart.show()
```

## Contributing

Expand Down
36 changes: 21 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "airpyllution"
version = "0.1.0"
version = "0.1.2"
description = "A package which provides various functionalities on air pollution data."
authors = ["Christopher Alexander, Daniel King, Mel Liow"]
license = "MIT"
Expand All @@ -15,10 +15,10 @@ numpy = "^1.22.1"
pandas = "^1.3.5"
requests = "^2.27.1"
python-dotenv = "^0.19.2"
unittest = "^0.0"
responses = "^0.17.0"
plotly = "^5.5.0"
altair-viewer = "^0.4.0"
mock = "^4.0.3"

[tool.poetry.dev-dependencies]
pytest = "^6.2.5"
Expand Down

0 comments on commit 092ca6a

Please sign in to comment.