Skip to main content

A testing library for Speckle models

Project description

Maple

Automate your model Quality Check with Speckle and Maple

About

Maple is a library designed to write simple code that can check different attributes of a Model in Speckle.

Using Maple you can write test specs that check any parameter or quantity inside the project model.

Maple can be integrated into Speckle Automate to run the quality check tests on a continuous integration and ensure project standards.

Get started

Simple case:

import maple as mp

def spec_a():
    mp.it("checks window height is greater than 2600 mm")

    mp.get('category', 'Windows')\
        .where('speckle_type',
               'Objects.Other.Instance:Objects.Other.Revit.RevitInstance')\
        .its('Height')\
        .should('be.greater', 2600)


mp.stream("streamid")
mp.run(spec_a)

To run the examples locally, install the current package:

pip install .
python examples/specs.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maple_spec-0.0.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

maple_spec-0.0.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file maple_spec-0.0.2.tar.gz.

File metadata

  • Download URL: maple_spec-0.0.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for maple_spec-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b890a3a9965d6cdaf585bb0bca51313a40850fd4f904748b1a90ab85bc0240fd
MD5 dbe74bb5b2b435c69e4e31e4c2b6fe36
BLAKE2b-256 0814b79b16f30906bfcd306567a8401b8aa9da35d0bef8936b16516926530b03

See more details on using hashes here.

File details

Details for the file maple_spec-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: maple_spec-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for maple_spec-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 818cfdf6b3595df062d0c2d6f1363103969a2f90dd8d7112870cd031df9750d3
MD5 09024d548a59c2780a2b76311a07d251
BLAKE2b-256 c74b88cd41dc6fe63f8dc9d9ed9e7b34128bd2b9db0eaefc47fdb769f5e3974e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page