Skip to main content

Python wrapper for thermo-calc

Project description

pytest codecov

thermo-calc

Wrapper around Thermo-calc's TC-Python SDK

Logo

Getting Started

Installation

uv add thermo-calc

Install tc-python package (Assumes Thermo-Calc is installed in default location)

tcalc install

If .whl file for Thermo-Calc is elsewhere, provide path as input argument.

Agent

Claude Code

  1. Install MCP tools and Agent
  • Defaults to claude code
tcalc mcp install
  • If updating, you will need to remove the previously existing MCP tools
claude mcp remove tc

Troubleshooting

Traffic Control (tc)

If tc or tc --help outputs something like this:

(thermo-calc) ppak@MAIL-10:/mnt/am/ppak/GitHub/thermo-calc$ tc
Usage:  tc [ OPTIONS ] OBJECT { COMMAND | help }
        tc [-force] -batch filename
where  OBJECT := { qdisc | class | filter | chain |
                    action | monitor | exec }
       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[aw] |
                    -o[neline] | -j[son] | -p[retty] | -c[olor]
                    -b[atch] [filename] | -n[etns] name | -N[umeric] |
                     -nm | -nam[es] | { -cf | -conf } path
                     -br[ief] }

its calling Traffic Control and use tcalc instead of tc

Installing TC-Python

If you get something like this:

(thermo-calc) ppak@MAIL-10:/mnt/am/ppak/GitHub/thermo-calc$ uv add ~/Thermo-Calc/2025b/SDK/TC-Python/TC_Python-2025.2-30-py3-none-any.whl 
Resolved 65 packages in 191ms
Prepared 2 packages in 57ms
░░░░░░░░░░░░░░░░░░░░ [0/4] Installing wheels...                                                                                                                                                                                                                                                             
warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.
         If the cache and target directories are on different filesystems, hardlinking may not be supported.
         If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.
error: Failed to install: tc_python-2025.2-30-py3-none-any.whl (tc-python==2025.2 (from file:///home/ppak/Thermo-Calc/2025b/SDK/TC-Python/TC_Python-2025.2-30-py3-none-any.whl))
  Caused by: Wheel version does not match filename: 2025.2.30 != 2025.2

you need to change the - to a . by renaming TC_Python-2025.2-30-py3-none-any.whl to TC_Python-2025.2.30-py3-none-any.whl.

JAVA_HOME not found

You'll need to set this if you installed java via brew

echo export "JAVA_HOME=\$(/opt/homebrew/opt/openjdk)" >> ~/.zshrc

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

thermo_calc-0.0.11.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

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

thermo_calc-0.0.11-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file thermo_calc-0.0.11.tar.gz.

File metadata

  • Download URL: thermo_calc-0.0.11.tar.gz
  • Upload date:
  • Size: 27.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for thermo_calc-0.0.11.tar.gz
Algorithm Hash digest
SHA256 729586bbec3ae2ae96754f057ff2466e726adccbeef237c16db03ff2a6ed887e
MD5 0a8bb6d2278dfbfdcbe84d57e0ce85cf
BLAKE2b-256 3ee2edb105ca4fbf711db3e8ce306dba1f6b0322474292526d6ede0729ab8ee0

See more details on using hashes here.

File details

Details for the file thermo_calc-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: thermo_calc-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for thermo_calc-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 2431a6965c3200ad36efe839b673dfc9d0252bfe9d5ee3ed2a47a7c7cac02636
MD5 d5ea62499cfb263866de56c62c2136cf
BLAKE2b-256 26027a8a03ee8dd63673dad493921d145493dcf4c97761ef29eabd2fe4e89c33

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