Skip to main content

Moldflow API Library

Project description

Moldflow API

PyPI version Python versions License CI

Moldflow API is a Python wrapper library for the Synergy API, designed to simplify interactions with Autodesk Moldflow Synergy. This library provides a clean, pythonic interface to Moldflow's simulation capabilities, making it easier to integrate Moldflow functionality into your Python applications.

Prerequisites

Before you begin, ensure you have:

  • Windows 10/11
  • Python 3.10.x - 3.13.x
  • Autodesk Moldflow Synergy 2026.0.1 or later

Install

python -m pip install moldflow

Quick Start

from moldflow import Synergy

# Initialize the API
synergy = Synergy()

# Example: Get version information
version = synergy.version
print(f"Moldflow Synergy version: {version}")

See the full documentation for more in-depth examples.

For Development

1. Clone the Repository

git clone https://github.com/Autodesk/moldflow-api.git

2. Navigate to the Repository

cd moldflow-api

3. Set Up Development Environment

python -m pip install -r requirements.txt
pre-commit install

Usage

Building the Package

python run.py build

Building the Documentation

python run.py build-docs

Options:

  • --skip-build (-s): Skip building before generating docs

The documentation can be accessed locally by opening the index.html in the docs/build/html/ folder.

Running the Formatter

python run.py format

Options:

  • --check: Check the code formatting without making changes

Running Lint Checks

python run.py lint

Options:

  • --skip-build (-s): Skip building before linting

Running Tests

python run.py test
Option Alias Description
<tests>... - Test files/directories path
--marker -m Marker [unit, integration, core]
--skip-build -s Skip building before testing
--keep-files -k Don't remove the .coverage files after testing [for report generation]
--unit - Run Unit Tests
--core - Run Core Functionality Tests
--integration - Run Integration Tests
--quiet q Simple test output

Flag Combinations

Flag Combination Runs Unit Runs Core Runs Integration Runs Custom Marker
Default (no flags)
--unit
--core
--integration
--unit --core
--unit --integration
--core --integration
--unit --core --integration
--all
--marker foo ✅ (foo)
--unit --marker bar ✅ (bar)
--integration --marker baz ✅ (baz)

Running specific test files

python run.py test tests/api/unit_tests/test_unit_material_finder.py

API Documentation

For detailed API documentation, please visit our online documentation.

Key modules include:

  • synergy: Main interface to Moldflow Synergy
  • study_doc: Study document management
  • mesh_editor: Mesh manipulation and analysis
  • material_finder: Material database interactions
  • plot: Results visualization

Contributing

We welcome contributions! Please see our Contributing Guide for details on how to contribute to this project. Here's a quick overview:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (python run.py test)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Versioning

We use Semantic Versioning. For available versions, see the tags on this repository.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Support

Code of Conduct

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code.

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

moldflow-26.0.4.tar.gz (129.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moldflow-26.0.4-py3-none-any.whl (159.2 kB view details)

Uploaded Python 3

File details

Details for the file moldflow-26.0.4.tar.gz.

File metadata

  • Download URL: moldflow-26.0.4.tar.gz
  • Upload date:
  • Size: 129.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.9

File hashes

Hashes for moldflow-26.0.4.tar.gz
Algorithm Hash digest
SHA256 0564d45bfb46d78ae1c24849df286afe36b6edab42a47cf5c6a8b7e80f91b299
MD5 a8073b5f3b3c02c10ba5dda3d56fd8a6
BLAKE2b-256 0d39f5c52db3b7207f7fd73d3f2ab3b7bd258f48f38d71468c35d3a6e9c3d832

See more details on using hashes here.

File details

Details for the file moldflow-26.0.4-py3-none-any.whl.

File metadata

  • Download URL: moldflow-26.0.4-py3-none-any.whl
  • Upload date:
  • Size: 159.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.9

File hashes

Hashes for moldflow-26.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b41c6c8105a8086c7480ec45226e8c3ef7ed65047905f7443715ebe32ef029c9
MD5 797ecc6bfd19db42fe29a72801d1a6a9
BLAKE2b-256 17c9d496007a717c5ec445620fe4620018b1dbe5eb63eacee59b53a693519299

See more details on using hashes here.

Supported by

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