summarypip packages
linesdk
push data for line and slack
MainDatabase: | |
Type: AWS::DynamoDB::Table | |
Properties: | |
AttributeDefinitions: | |
- AttributeName: ib_prcode | |
AttributeType: S | |
- AttributeName: needUpdate | |
AttributeType: S | |
BillingMode: PAY_PER_REQUEST | |
GlobalSecondaryIndexes: |
class Cognito: | |
'''sdk to interact with cognito as a client''' | |
def __init__( | |
self, | |
identityPoolId, | |
userPoolId, | |
accountId, | |
clientId, | |
clientSecret, | |
region = 'ap-southeast-1' |
#export | |
from functools import wraps # This convenience func preserves name and docstring | |
def add_method(cls): | |
def decorator(func): | |
@wraps(func) | |
def wrapper(self, *args, **kwargs): | |
return func(self, *args, **kwargs) | |
setattr(cls, func.__name__, wrapper) |
aws s3api \ | |
--profile villaaws \ | |
put-bucket-accelerate-configuration \ | |
--bucket chatterbot-data \ | |
--accelerate-configuration Status=Enabled |
from villaWalletDatabase.database import getMember, setMember, addMember, removeMember, test |
import traceback | |
traceback.format_exc() |
setattr(cls, func.__name__, wrapper) |
name="my-env" | |
version="3.7" | |
# Create a new conda environment for the given Python version | |
conda create -y -n "$name" python="$version" | |
# Activate the environment | |
source /home/ec2-user/anaconda3/bin/activate "$name" | |
# Create a Jupyter kernel for your new environment |