Skip to content

PythonTriCities/weatherdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonTriCities demo weatherdata.

This is a fun demo to demonstrate how the request library works and get some live weather data

Prerequisites

Getting Started

  1. Make sure you have Python3 installed. Follow these guides:
  1. Make sure you have git installed.

Clone this repository

git clone https://github.com/PythonTriCities/weatherdata.git
  • If you had trouble with the git install or just want to download the files as a zip, click this link starthere

The next 2 steps are optional but recommended

  1. Create the virtual environment if it doesn't exist:
  • What/'s a virtual environment?

  • On Linux/Mac it is: python3 -m venv /path/to/new/virtual/environment

  • I like to set the path to be in the directory with a folder that shows the version of Python that I am running, so I include the python version I am using in the path

python3 -m venv ./.venv/python3.6
  • On Windows it is c:>c:\Python35\python -m venv c:\path\to\myenv
c:\>c:\Python35\python -m venv c:\path\to\myenv
  1. Start your virtual environment.
  • Linux/Mac:
source ./.venv/bin/activate
  • Windows:
c:\path\to\myenv\Scripts\activate.bat
  • and then for both Linux/Mac and Windows import the requirements file
pip install -r requirements.txt
  1. Test that it is not legacy Python, ie 2.7
python --version
  • You should see something like this:
Python 3.6.4
  1. Now checkout the branch named one, and view the code with your editor, when ready run app.py script
git checkout one
python app.py
  • Work your way through all 4 examples by checking out the other branches two, three and four:
git checkout two
git checkout three
git checkout four
  • each time you can run the program with
python app.py

Running the tests

No test for this script, but we will cover that in later examples

Versioning

Use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Help from the internets, stackoverflow, users group members, etc...

About

Demo for PythonTriCities Python Interest Group to practice with request and parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages