We need to select a Python web framework for our new analytics application. Key criteria:
- Easy to use and get started
- Good performance
- Flexible and modular
- Built-in caching support
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
# The MIT License (MIT) | |
# Copyright (c) 2020 Dineshkarthik Raveendran | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
import requests | |
random_article = requests.get("https://en.wikipedia.org/wiki/Special:Random") | |
article_name = random_article.url.split("/")[-1] | |
url = f"https://en.wikipedia.org/api/rest_v1/page/summary/{article_name}" | |
article_data = requests.get(url).json() | |
print(article_data) | |
{'type': 'standard', | |
'title': 'Vohimasina Nord', |
# -*- coding: utf-8 -*- | |
# Copyright 2019 Dineshkarthik Raveendran | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# Unless required by applicable law or agreed to in writing, software |
# Copyright (C) 2018 Dineshkarthik Raveendran | |
from __future__ import print_function # Python 2/3 compatibility | |
import boto3 | |
import argparse | |
def replicate(table_name, existing_region, new_region, new_table_name): | |
""" | |
Replicate table in new region. |
#!/usr/bin/env bash | |
command_exists() { | |
command -v "$@" > /dev/null 2>&1 | |
} | |
# Ensure that wget exists | |
if command_exists wget; then | |
wget='wget -O' | |
else |