- In this part we will talk about how to install external modules, installing and using one of the most popular ones, requests, that is used to make http requests.
Install the requests module
pip install requests
""" | |
Example usage of the function `group_json_by_key` | |
""" | |
import json | |
JSON_EXAMPLE_STR = """ | |
{ | |
"color": { | |
"0": "yellow", | |
"1": "red" |
#!/bin/bash | |
# Install with instructions from Docker | |
apt-get remove docker docker-engine docker.io containerd runc | |
apt-get update | |
apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ |
public static class ListExtension | |
{ | |
/// <summary> | |
/// Creates a single flat list from a list of lists input. | |
/// </summary> | |
/// <typeparam name="T"></typeparam> | |
/// <param name="inListOfLists"></param> | |
/// <returns>A single flatten list from a list of lists input</returns> | |
public static List<T> Flatten<T>(this List<List<T>> inListOfLists) | |
{ |
from forecastiopy import * | |
apikey = 'YOUR_APY_KEY' | |
Lisbon = [38.7252993, -9.1500364] | |
Madrid = [40.383333, -3.666667] | |
Paris = [48.866667, 2.332778] | |
def print_icon(lat, lon): |
from forecastiopy import * | |
apikey = 'YOUR_API_KEY' | |
Lisbon = [38.7252993, -9.1500364] | |
# 'units', 'lang' and 'exclude' options are optional but it is nice to ensure that | |
# the reply comes in correct language and unit. Setting the 'exclude' option | |
# reduces the reply size. If ou don't need the data, don't ask for it. |
from forecastiopy import * | |
apikey = 'YOUR_APY_KEY' | |
Lisbon = [38.7252993, -9.1500364] | |
# 'units', 'lang' and 'exclude' options are optional but it is nice to ensure that | |
# the reply comes in correct language and unit. Setting the 'exclude' option | |
# reduces the reply size. If ou don't need the data, don't ask for it. |