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:

To run locally:

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.run(spec_a)
``

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.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

maple_spec-0.0.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maple_spec-0.0.1.tar.gz
  • Upload date:
  • Size: 8.4 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.1.tar.gz
Algorithm Hash digest
SHA256 0d42affaf6a9d8e45adaaef6896ee987299c22ed002fcdfa3521352544f3e914
MD5 7d20756835732d5e1fe3ca9f85add4ca
BLAKE2b-256 e85fb281d357448f28ce993ae5dcd75e351459fe4878744615e10c6f120a926e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maple_spec-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0358583805fef673acd6762963a11047c2cff22603cac6b665f33a1129ffb3a8
MD5 4d674f96512ea41f82ba5460963d3390
BLAKE2b-256 2fc72e7cd697d5a71bbae76ee043805b6474f0549cf64ae19de0725002ec04f6

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