This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#pip install boto3 | |
import boto3 | |
import pprint | |
import os | |
from botocore.utils import calculate_tree_hash | |
from botocore.exceptions import ClientError | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import pandas as pd | |
import numpy as np | |
dtypes_dict = { | |
0: np.dtype(int), # geonameid | |
1: np.dtype(str), # name | |
2: np.dtype(str), # asciiname | |
3: np.dtype(str), # alternatenames |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os | |
import redis | |
import json | |
from os.path import join, dirname | |
from dotenv import load_dotenv | |
from random import choice | |
from datetime import datetime |