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
# Características: | |
# Cada nodo tiene un ID único --LISTO | |
# Mantiene una lista de vecinos (otros nodos) --LISTO | |
# Tiene un log interno de eventos y estados --LSITO | |
# - Puede proponer un estado y buscar consenso a través de un algoritmo simplificado | |
# - Puede simular particiones de red y fallos --LISTO | |
# - Puede registrar todos los mensajes y transiciones de estado LSITO | |
class Node | |
attr_reader :id, :log |
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 gspread | |
from google.oauth2.service_account import Credentials | |
SCOPES = [ | |
"https://www.googleapis.com/auth/spreadsheets", | |
"https://www.googleapis.com/auth/drive", | |
] | |
SERVICE_ACCOUNT_FILE = ( | |
"/Users/cristopher/Desktop/gsheet_api/gentle-dominion-453920-r8-f2a7cc04be1f.json" |