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
Country | CC | |
---|---|---|
Afghanistan | AF | |
Albania | AL | |
Algeria | DZ | |
American Samoa | AS | |
Andorra | AD | |
Angola | AO | |
Anguilla | AI | |
Antigua and Barbuda | AG | |
Argentina | AR |
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
Country | Code | |
---|---|---|
Afghanistan | AF | |
Albania | AL | |
Algeria | DZ | |
American | AS | |
Andorra | AD | |
Angola | AO | |
Anguilla | AI | |
Antigua | AG | |
Argentina | AR |
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
[pytest] | |
addopts = -rsxXvv | |
redis_exec = /usr/local/bin/redis-server | |
dynamodb_dir = /usr/local/opt/dynamodb |
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
from dataclasses import dataclass | |
from typing import get_type_hints | |
@dataclass | |
class SimpleTypeCheck: | |
def __post_init__(self): | |
for k, t in get_type_hints(type(self)).items(): | |
k_v = getattr(self, k) | |
if not isinstance(k_v, t): |
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
from sanic import Sanic | |
from sanic.response import json | |
from sanic.request import Request | |
from sanic_jwt_extended import ( | |
JWTManager, jwt_required, create_access_token, | |
create_refresh_token, jwt_refresh_token_required) | |
from sanic_jwt_extended.tokens import Token | |
from sanic_jwt_extended.blacklists import InMemoryBlacklist | |
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
import random | |
from sanic import Sanic | |
from sanic.response import json | |
from sanic.request import Request | |
from sanic_jwt_extended import ( | |
JWTManager, jwt_required, create_access_token, | |
create_refresh_token) | |
import uuid | |
from sanic_jwt_extended.tokens import Token |