4da42c35e3475e8cad2b6e9f887588477b76f72b
- add Getting Started documentation.
Speckle Automate - Python Example
This is a simple example of how to use the Speckle Automate Python package to automate the creation of a Speckle stream.
What this Speckle Function does
This Speckle Function creates a new comment in a Speckle Model. The phrase used in the comment is configured when the Speckle Automation is created; the Speckle Automation links a Speckle Function to a Speckle Model.
The comment is attributed to the user who registered the Function with Speckle Automate.
Using this Speckle Function
- Create a new Speckle Automation.
- Select your Speckle Project and Speckle Model.
- Select the existing Speckle Function named
Random comment on IFC beam. - Enter a phrase to use in the comment.
- Click
Create Automation.
Getting Started with creating your own Speckle Function
- Fork this repository.
- Clone your forked repository to your development environment, or use GitHub CodeSpaces.
- Register your Function with Speckle Automate.
- After completing the registration of the Function you will be shown a Function Publish Token and a Function ID. You will need these later.
- Save your Function Publish Token as a GitHub Action Secret named
SPECKLE_AUTOMATE_FUNCTION_PUBLISH_TOKEN. - Save your Function ID as a GitHub Action Secret named
SPECKLE_AUTOMATE_FUNCTION_ID. - Make changes to your Function in
main.py. See below for the Developer Requirements, and instructions on how to test. - Every commit to
mainbranch will create a new version of your Speckle Function.
Developer Requirements
Building and Testing
Resources
- Learn more about SpecklePy, and interacting with Speckle from Python.
Description
Languages
Python
87.4%
Dockerfile
12.6%