https://github.com/rohit1kumar/verloop-assignment
https://github.com/rohit1kumar/verloop-assignment
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rohit1kumar/verloop-assignment
- Owner: rohit1kumar
- Created: 2023-06-12T09:44:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T09:59:17.000Z (about 3 years ago)
- Last Synced: 2025-01-22T10:23:38.880Z (over 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Get Weather Data by City Name
## Requirements
- Python 3.11
## Installation
- Clone the repository
```bash
git clone https://github.com/rohit1kumar/verloop-assignment.git
```
- Install the requirements
```bash
pip install -r requirements.txt
```
## Usage
- Export the API KEY
```bash
export APIKEY=your_api_key
```
- Run the script
```bash
python run.py
```
- Make a `POST` request
```bash
curl --location 'http://127.0.0.1:5000/getCurrentWeather' \
--header 'Content-Type: application/json' \
--data '{
"output_format":"xml",
"city":"mumbai"
}'
```
- Response
```bash
34.0C
18.98
72.83
Mumbai India
```