-
-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Shreevatsa N edited this page Jul 29, 2020
·
10 revisions
When I started using cli-based OS during my labs for the first time, was always curious on knowing to build my own commands like 'ls'. This side-project is one such instance where I am learning argparse, PyPI, creating own Docker Image and many more.
I made use of free-version of WeatherBIT API which serves one port at time, but gives lots of feature-studded responses, actually more than what I needed.
This project is still in early phases, as I have just decided its architecture using subparsers. Will add more features in coming days.
- Introduced subparsers and main, feature-based separate scripts just to make sure it becomes easier to scale-up later on.
- Added -u,--units option to get results on various different unit styles.
- Also added -d,--detailed option to get detailed (almost everything required) for daily weather precautions and informations. From solar- radiation to UV exposure.
- Introduced new sub-command named postalcode, which helps to get weather data similar to that of city subparser but based on given postalcode.
- Added 'snowfall' data under --detailed optional argument section.
- Introduced RawTextHelpFormatter in help section for better alignment of help message.
- Rigorous local testing with testpypi.org. All builds failed. Had issues with long_description tag in PyPI setup.py file.
- 2 build failed versions in pypi.org namely v0.1.0 and v0.1.1 under 3 alpha test release.
- Working v0.1.2 3 alpha test release in pypi.org
- Finally compatible with py2 and py3. Had issues in modular imports earlier when tested with py3 installed docker container.
- Updated readme.md both in pypi.org and github.com