eventbot.models package¶
Submodules¶
eventbot.models.event module¶
-
class
eventbot.models.event.AttendeeMap(**attributes)¶ Bases:
pynamodb.attributes.MapAttribute-
attendee¶ A unicode attribute
-
-
class
eventbot.models.event.Event(hash_key=None, range_key=None, **attributes)¶ Bases:
pynamodb.models.Model-
exception
DoesNotExist(msg=None, cause=None)¶ Bases:
pynamodb.exceptions.DoesNotExist
-
class
Meta¶ Bases:
object-
aws_access_key_id= None¶
-
aws_secret_access_key= None¶
-
base_backoff_ms= 25¶
-
host= None¶
-
max_retry_attempts= 3¶
-
region= 'us-east-1'¶
-
request_timeout_seconds= 60¶
-
session_cls¶ alias of
botocore.vendored.requests.sessions.Session
-
table_name= ''¶
-
-
STATUS_OPEN= 'open'¶
-
add_attendee(user_id: str) → None¶
-
attendees¶
-
cost¶ A number attribute
-
cost_per_attendee¶
-
created_date¶ An attribute for storing a UTC Datetime
-
creator¶ A unicode attribute
-
description¶ A unicode attribute
-
end_date¶ An attribute for storing a UTC Datetime
-
event_id¶ A unicode attribute
-
event_status_index= <eventbot.models.event.EventStatusIndex object>¶
-
extra_attendees¶ A number attribute
-
classmethod
format_last_evaluated_key(event_id: Optional[str]) → Optional[dict]¶
-
classmethod
get_all_paged(next_page: Optional[str] = None, limit: Optional[int] = None) → Iterator[eventbot.models.event.Event]¶
-
modified_date¶ An attribute for storing a UTC Datetime
-
name¶ A unicode attribute
-
remove_attendee(user_id: str) → None¶
-
save(*args, **kwargs) → Dict[str, Any]¶ Save this object to dynamodb
-
start_date¶ An attribute for storing a UTC Datetime
-
status¶ A unicode attribute
-
total_attendees¶
-
user_is_attendee(user_id: str) → bool¶
-
exception
-
class
eventbot.models.event.EventStatusIndex¶ Bases:
pynamodb.indexes.GlobalSecondaryIndex-
class
Meta¶ Bases:
object-
attributes= None¶
-
index_name= ''¶
-
projection= <pynamodb.indexes.AllProjection object>¶
-
read_capacity_units= 10¶
-
write_capacity_units= 10¶
-
-
event_id¶ A unicode attribute
-
status¶ An attribute for storing a UTC Datetime
-
class
eventbot.models.user module¶
-
class
eventbot.models.user.User(hash_key=None, range_key=None, **attributes)¶ Bases:
pynamodb.models.Model-
exception
DoesNotExist(msg=None, cause=None)¶ Bases:
pynamodb.exceptions.DoesNotExist
-
class
Meta¶ Bases:
object-
aws_access_key_id= None¶
-
aws_secret_access_key= None¶
-
base_backoff_ms= 25¶
-
host= None¶
-
max_retry_attempts= 3¶
-
region= 'us-east-1'¶
-
request_timeout_seconds= 60¶
-
session_cls¶ alias of
botocore.vendored.requests.sessions.Session
-
table_name= ''¶
-
-
created_date¶ An attribute for storing a UTC Datetime
-
classmethod
format_last_evaluated_key(user_id: Optional[str]) → Optional[dict]¶
-
classmethod
get_all_paged(next_page: Optional[str] = None, limit: Optional[int] = None) → Iterator[eventbot.models.user.User]¶
-
modified_date¶ An attribute for storing a UTC Datetime
-
save(*args, **kwargs) → Dict[str, Any]¶ Save this object to dynamodb
-
user_id¶ A unicode attribute
-
venmo_handle¶ A unicode attribute
-
exception