diff --git a/README.md b/README.md index a6e006d..de3ded8 100644 --- a/README.md +++ b/README.md @@ -1 +1,40 @@ -# Go Automate Go \ No newline at end of file +# 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 + +1. [Create](https://automate.speckle.dev/) a new Speckle Automation. +1. Select your Speckle Project and Speckle Model. +1. Select the existing Speckle Function named [`Random comment on IFC beam`](https://automate.speckle.dev/functions/e110be8fad). +1. Enter a phrase to use in the comment. +1. Click `Create Automation`. + +## Getting Started with creating your own Speckle Function + +1. [Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo) this repository. +1. [Clone](https://docs.github.com/en/get-started/quickstart/fork-a-repo#cloning-your-forked-repository) your forked repository to your development environment, or use [GitHub CodeSpaces](https://github.com/features/codespaces). +1. [Register](https://automate.speckle.dev/) your Function with [Speckle Automate](https://automate.speckle.dev/). +1. After completing the registration of the Function you will be shown a Function Publish Token and a Function ID. You will need these later. +1. Save your Function Publish Token as a [GitHub Action Secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `SPECKLE_AUTOMATE_FUNCTION_PUBLISH_TOKEN`. +1. Save your Function ID as a [GitHub Action Secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `SPECKLE_AUTOMATE_FUNCTION_ID`. +1. Make changes to your Function in `main.py`. See below for the Developer Requirements, and instructions on how to test. +1. Every commit to `main` branch will create a new version of your Speckle Function. + +## Developer Requirements + + + +## Building and Testing + + + +## Resources + +- [Learn](https://speckle.guide/dev/python.html) more about SpecklePy, and interacting with Speckle from Python.