Skip to content
A second sample Python package to be used with sls-pypi that creates simple functionality dependent upon previously created sls-pypi packages
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples201
.gitignore
Readme.md
setup.py
usage.py

Readme.md

Samples 201

Provides a set of functions that call the Samples 101 functions in various order. Namely, reverseStarWars, weatherReverse, and weatherStarWars.

Usage

Using the sample is simple and demonstrated in usage.py:

import samples201
import samples101
import sys

print(samples201.reverseStarWars('hello'))
print(samples201.weatherReverse('New Orleans', sys.argv[1]))
print(samples201.weatherStarWars('New Orleans', sys.argv[1]))

And to execute:

python usage.py XXXXXXX

where XXXXXXX represents your OpenWeather API key. That execution should yield:

  ______    __       __       _______  __    __  
 /  __  \  |  |     |  |     |   ____||  |  |  |
|  |  |  | |  |     |  |     |  |__   |  |__|  |
|  |  |  | |  |     |  |     |   __|  |   __   |
|  `--'  | |  `----.|  `----.|  |____ |  |  |  |
 \______/  |_______||_______||_______||__|  |__|


elzzird ytisnetni thgil
 __       __    _______  __    __  .___________.
|  |     |  |  /  _____||  |  |  | |           |
|  |     |  | |  |  __  |  |__|  | `---|  |----`
|  |     |  | |  | |_ | |   __   |     |  |     
|  `----.|  | |  |__| | |  |  |  |     |  |     
|_______||__|  \______| |__|  |__|     |__|     

 __  .__   __. .___________. _______ .__   __.      _______. __  .___________.
|  | |  \ |  | |           ||   ____||  \ |  |     /       ||  | |           |
|  | |   \|  | `---|  |----`|  |__   |   \|  |    |   (----`|  | `---|  |----`
|  | |  . `  |     |  |     |   __|  |  . `  |     \   \    |  |     |  |     
|  | |  |\   |     |  |     |  |____ |  |\   | .----)   |   |  |     |  |     
|__| |__| \__|     |__|     |_______||__| \__| |_______/    |__|     |__|     

____    ____
\   \  /   /
 \   \/   /  
  \_    _/   
    |  |     
    |__|     

 _______  .______       __   ________   ________   __       _______
|       \ |   _  \     |  | |       /  |       /  |  |     |   ____|
|  .--.  ||  |_)  |    |  | `---/  /   `---/  /   |  |     |  |__   
|  |  |  ||      /     |  |    /  /       /  /    |  |     |   __|  
|  '--'  ||  |\  \----.|  |   /  /----.  /  /----.|  `----.|  |____
|_______/ | _| `._____||__|  /________| /________||_______||_______|

You can’t perform that action at this time.