-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
263 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# cli-weather | ||
|
||
**cli-weather** is a command line app to get instant weather data based on city name or postalcode right on the command line. | ||
Written in python and powered by **WeatherBIT API**, cli-weather also provides detailed weather data on historic and 16 day forecasts basis and not just the temparature. | ||
|
||
With *cli-weather app* you can retrieve current weather observations from over **45,000** live weather stations using WeatherBIT API, and highly localized weather forecasts for any point on the globe using the world's most trusted weather models! | ||
|
||
You can look up weather data by many methods including: | ||
- By entering city_name | ||
- By entering postal_code | ||
|
||
## Installation | ||
|
||
``` | ||
pip install cli-weather | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
cli-weather command [-h] [-c COUNTRY] [-u UNITS] [-d] city_name/postal_code | ||
``` | ||
|
||
|Command | Description | | ||
|----------------|-------------------------------| | ||
|city | Get weather by city name | | ||
|postalcode | Get weather by postal code | | ||
|
||
|Option | Description | | ||
|----------------|-------------------------------| | ||
|-c, --country | Country of entered area | | ||
|-u, --units | Metric, Scientific, Farenheit | | ||
|-d, --detailed | Display detailed weather data | | ||
|-h, --help | Show this message and exit | | ||
|
||
## Data sources | ||
|
||
* [weatherbit.io](https://weatherbit.io/) | ||
|
||
## Dependencies | ||
|
||
* [requests](http://docs.python-requests.org/en/latest/) >= 2.4 | ||
|
||
## Try without using pip | ||
|
||
``` | ||
Fork this repository | ||
$ git clone "https://github.com/username/cli-weather" | ||
$ cd cli_weather | ||
$ pip install -r requirements.txt | ||
$ python main.py [command] [options] | ||
``` | ||
|
||
## License | ||
|
||
GNU General Public License v3.0 | ||
|
||
**ver 0.1.0** | ||
|
||
3 - Alpha Test Release | ||
- Get weather by city | ||
- Get weather by postalcode | ||
- Change units according as you wish [Metric/Scientific/Farenheit] | ||
- Only temparature by default, detailed information from snowfall to solar radiation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
Metadata-Version: 2.1 | ||
Name: cli-weather | ||
Version: 0.1.0 | ||
Summary: Lightweight command line app to get fast weather data right on the command line | ||
Home-page: https://github.com/vatsa287/cli-weather | ||
Author: Shree Vatsa N | ||
Author-email: [email protected] | ||
License: GPL 3.0 | ||
Description: # cli-weather | ||
|
||
**cli-weather** is a command line app to get instant weather data based on city name or postalcode right on the command line. | ||
Written in python and powered by **WeatherBIT API**, cli-weather also provides detailed weather data on historic and 16 day forecasts basis and not just the temparature. | ||
|
||
With *cli-weather app* you can retrieve current weather observations from over **45,000** live weather stations using WeatherBIT API, and highly localized weather forecasts for any point on the globe using the world's most trusted weather models! | ||
|
||
You can look up weather data by many methods including: | ||
- By entering city_name | ||
- By entering postal_code | ||
|
||
## Installation | ||
|
||
``` | ||
pip install cli-weather | ||
``` | ||
|
||
## Usage | ||
|
||
``` | ||
cli-weather command [-h] [-c COUNTRY] [-u UNITS] [-d] city_name/postal_code | ||
``` | ||
|
||
|Command | Description | | ||
|----------------|-------------------------------| | ||
|city | Get weather by city name | | ||
|postalcode | Get weather by postal code | | ||
|
||
|Option | Description | | ||
|----------------|-------------------------------| | ||
|-c, --country | Country of entered area | | ||
|-u, --units | Metric, Scientific, Farenheit | | ||
|-d, --detailed | Display detailed weather data | | ||
|-h, --help | Show this message and exit | | ||
|
||
## Data sources | ||
|
||
* [weatherbit.io](https://weatherbit.io/) | ||
|
||
## Dependencies | ||
|
||
* [requests](http://docs.python-requests.org/en/latest/) >= 2.4 | ||
|
||
## Try without using pip | ||
|
||
``` | ||
Fork this repository | ||
$ git clone "https://github.com/username/cli-weather" | ||
$ cd cli_weather | ||
$ pip install -r requirements.txt | ||
$ python main.py [command] [options] | ||
|
||
``` | ||
|
||
## License | ||
|
||
GNU General Public License v3.0 | ||
|
||
**ver 0.1.0** | ||
|
||
3 - Alpha Test Release | ||
- Get weather by city | ||
- Get weather by postalcode | ||
- Change units according as you wish [Metric/Scientific/Farenheit] | ||
- Only temparature by default, detailed information from snowfall to solar radiation | ||
|
||
Platform: UNKNOWN | ||
Classifier: Development Status :: 3 - Alpha | ||
Classifier: Topic :: Utilities | ||
Classifier: Intended Audience :: Developers | ||
Classifier: Environment :: Console | ||
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3) | ||
Classifier: Operating System :: POSIX :: Linux | ||
Classifier: Operating System :: Microsoft :: Windows | ||
Classifier: Operating System :: MacOS | ||
Classifier: Programming Language :: Python | ||
Classifier: Programming Language :: Python :: 2 | ||
Classifier: Programming Language :: Python :: 2.3 | ||
Classifier: Programming Language :: Python :: 2.4 | ||
Classifier: Programming Language :: Python :: 2.5 | ||
Classifier: Programming Language :: Python :: 2.6 | ||
Classifier: Programming Language :: Python :: 2.7 | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Natural Language :: English | ||
Description-Content-Type: text/markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
README.md | ||
setup.py | ||
cli_weather/__init__.py | ||
cli_weather/get_by_city.py | ||
cli_weather/get_by_postalcode.py | ||
cli_weather/main.py | ||
cli_weather.egg-info/PKG-INFO | ||
cli_weather.egg-info/SOURCES.txt | ||
cli_weather.egg-info/dependency_links.txt | ||
cli_weather.egg-info/entry_points.txt | ||
cli_weather.egg-info/requires.txt | ||
cli_weather.egg-info/top_level.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[console_scripts] | ||
cli-weather = cli_weather.main:main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cli_weather |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pyweatherbit | ||
json | ||
requests | ||
argparse | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from setuptools import setup | ||
|
||
long_description = open('PyPIDocumentation.md').read() | ||
|
||
setup( | ||
name='cli-weather', | ||
version='0.1.0', | ||
description='Lightweight command line app to get fast weather data right on the command line', | ||
long_description_content_type='text/markdown', | ||
long_description=long_description, | ||
url='https://github.com/vatsa287/cli-weather', | ||
author='Shree Vatsa N', | ||
author_email='[email protected]', | ||
license='GPL 3.0', | ||
packages=['cli_weather'], | ||
install_requires=['requests'], | ||
entry_points = { | ||
'console_scripts': [ | ||
'cli-weather=cli_weather.main:main' | ||
] | ||
}, | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Topic :: Utilities", | ||
"Intended Audience :: Developers", | ||
"Environment :: Console", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: MacOS", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.3", | ||
"Programming Language :: Python :: 2.4", | ||
"Programming Language :: Python :: 2.5", | ||
"Programming Language :: Python :: 2.6", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Natural Language :: English" | ||
], | ||
) |