Geode Common Module

33.21.3 · active · verified Fri Apr 17

geode-common is the foundational Python module for Geode-solutions' licensed computational geometry and meshing libraries. It provides core utilities, license management, and environment initialization for the entire Geode-solutions ecosystem. It is a wrapper around a C++ library using Pybind11. The current version is 33.21.3, with frequent updates aligning with Geode-solutions' development.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to initialize the geode-common module, set an (optional) license key, and prepare the environment for other Geode-solutions modules. The `initialize_geode_solutions()` call is crucial.

import os
import geode_common

# The Geode-solutions ecosystem typically requires a license key.
# It's best practice to provide this via an environment variable.
license_key = os.environ.get("GEODE_LICENSE_KEY", "")
geode_common.set_license(license_key)

# Initialize the Geode-solutions environment, which is mandatory
# before using any other Geode-solutions modules.
geode_common.initialize_geode_solutions()

# You can check the version or other common properties after initialization.
print(f"Geode-solutions common module initialized. Version: {geode_common.VERSION}")
print(f"Logger enabled: {geode_common.Logger.is_enabled()}")

# At this point, you would typically import and use other specific
# Geode-solutions modules (e.g., geode_mesh, geode_implicit).

view raw JSON →