Jonathon Broughton f3c56a48b5
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
Rule numbers and metdata validation (#51)
* Update Python version and clean up dependencies

- Bumped required Python version from 3.12 to 3.13.
- Removed the lock file for dependency management.
- Cleaned up unnecessary dependency groups in the configuration.

* Refine rule number processing and type conversion

- Updated rule number handling to preserve original identifiers.
- Improved logic for generating missing rule numbers.
- Changed duplicate handling to keep original values intact.
- Adjusted column type conversion to replace NaN with empty strings.

* Refactor message handling in rule processor

- Introduced a new function to format rule messages.
- Replaced direct access to the message with the new formatting function.
- Cleaned up metadata creation for better readability.

* Enhance metadata generation with JSON validation

- Added JSON serialisability check for generated metadata
- Included error handling to log issues during creation
- Updated docstring to clarify function purpose and arguments
2025-02-20 15:41:33 +00:00
2025-01-24 15:39:21 +00:00
2025-02-18 09:23:57 +00:00
2025-02-17 23:50:34 +00:00
2025-01-24 15:39:21 +00:00
2025-02-17 23:50:34 +00:00
2025-02-17 23:50:34 +00:00
2025-02-18 20:37:06 +00:00
2025-01-24 15:39:21 +00:00
2025-01-24 15:39:21 +00:00
2025-02-17 23:50:34 +00:00
2025-02-18 08:07:09 +00:00
2025-01-24 15:39:21 +00:00
2025-02-06 21:33:18 +00:00
2025-02-06 21:33:18 +00:00
2025-01-24 15:40:51 +00:00
2025-02-18 19:15:21 +00:00
2025-02-17 23:50:34 +00:00

Public Function: Checker

Validate Speckle objects against configurable rules using spreadsheet definitions.

Usage

  1. Access the template Google Sheet [link needed]
  2. Make a copy to your Google Drive using File > Make a copy
  3. Define your rules in your sheet
  4. Click "Speckle" menu > "Publish Rules" to get your TSV URL
  5. Create an Automation in Speckle Automate using the Checker function
  6. Paste your TSV URL into the function configuration
  7. Run your automation

Rule Types

  • Property existence
  • Value matching
  • Numeric comparisons
  • Range checks
  • List membership
  • Pattern matching
  • Boolean checks

Severity Levels

  • WARNING: Issues that should be reviewed
  • ERROR: Critical issues requiring attention

Example Rules

[Screenshot or example table to be added]

Support

For issues or questions, please open a GitHub issue.

S
Description
No description provided
Readme 552 KiB
Languages
Python 97.5%
Dockerfile 1.4%
Shell 1.1%