hoops_ai

HOOPS AI - Machine Learning Framework for CAD Data Analysis

HOOPS AI is a comprehensive machine learning framework specifically designed for Computer-Aided Design (CAD) data analysis and processing. It provides a complete toolkit for working with CAD models, from data access and encoding to machine learning workflows and interactive visualization.

Core Modules

The framework is organized into specialized modules, each with dedicated programming guides:

Modules

cadaccess

CAD Access Module

cadencoder

CAD Encoding Module

dataset

Dataset Management Module

flowmanager

Data Flow Management Module

insights

Data Analysis and Visualization Module

ml

Machine Learning Module

storage

Data Storage Module

Functions

get_license_info()

Get current license configuration status (masked for security).

set_license(license_key[, validate])

Set the HOOPS AI license key with validation.

hoops_ai.get_license_info()

Get current license configuration status (masked for security).

Returns:

Dictionary with license status

Return type:

dict

Example

>>> info = hoops_ai.get_license_info()
>>> print(info)
{
    'license': 'ABCD1234***',
    'configured': True,
    'valid': True,
    'is_test_license': False
}
hoops_ai.set_license(license_key, validate=True)

Set the HOOPS AI license key with validation.

⚠️ REQUIRED: You must call this function before using any HOOPS functionality.

By default, this function validates the license to ensure it works correctly with all HOOPS AI components.

Parameters:
  • license_key (str) – Your HOOPS license key as a string

  • validate (bool) – Whether to validate the license immediately (default: True)

Returns:

None (raises RuntimeError if validation fails)

Raises:

Example

>>> import hoops_ai
>>> import os
>>>
>>> # Use test license for evaluation
>>> hoops_ai.set_license(hoops_ai.use_test_license())
>>>
>>> # Set and validate your own license (recommended)
>>> hoops_ai.set_license(os.getenv("HOOPS_LICENSE"))
>>>
>>> # Set without validation (not recommended)
>>> hoops_ai.set_license("my-license", validate=False)