Hi everyone, I been trying to usa streamlit with Python to create a way to upload multiple files to speckle, as well as larger files.
But I’ve been experiencing this error and can’t find a way to fix it.
You are probably using old code with the new SpecklePY SDK.
The streams are renamed to projects
The branches are renamed to models
and the commits are renamed to versions.
See more info here:
The new SpecklePy works like this:
projects = client.active_user.get_projects()
for proj in projects.items:
print(proj.id)
models_response = client.project.get_with_models(project_id="8be1007be1") #Replace here with your model id
for model in models_response.models.items:
print(model.id)
versions = client.model.get_with_versions(model_id="7c7151f48d", project_id="8be1007be1") #Replace here with your model and project id
for ver in versions.versions.items:
print(ver.id)
You can always downgrade to an older version and the code should work fine.
But is not recommended.
@Gustavo_Zanluchi In addition to @Nikos help here, we are rapidly catching up on our documentation with the newly released v3 SDK. I’ll report back here as soon as we have first phase published