gokermu
(Mucahit Bilal GOKER)
3
with input:
st.subheader("Inputs...")
#3 columns for 3 inputs
serverCol, tokenCol, streamCol = st.columns(3)
#input variables
speckleServer = serverCol.text_input("Speckle server URL", "speckle.xyz")
speckleToken = tokenCol.text_input("Speckle token 16 digit", "087fea753d12f91a6f692c8ea087c1bf4112e93ed7")
streamId = streamCol.text_input("Speckle Stream ID", "43d7583f20")
#--------------
#Speckle Client
client = SpeckleClient(host=speckleServer)
#get account from token
account = get_account_from_token(speckleToken, speckleServer)
#authenticate using the account
client.authenticate_with_account(account)
#-------------
#get commits from Stream
commits = client.commit.list(streamId)
#convert commits list to Pandas Dataframe
commitDF = pd.DataFrame.from_records(c.dict() for c in commits)```