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.12.tar.gz (27.9 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.12-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thermo_calc-0.0.12.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for thermo_calc-0.0.12.tar.gz
Algorithm Hash digest
SHA256 b1c8b0f262087deae0bf4c7b86045aac17394f0a91a32df44788805760803d22
MD5 7ea29e09b3c2f2929f28f8f7d0ec10d5
BLAKE2b-256 949596e643267ad9a1901113f34cb2ef37cf49a0188d28d38fa3b2b869b3c385

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thermo_calc-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f723abe832aecc723a171131d3ab5c787657e6d539649ef20ac0d9a972119288
MD5 109978daddf3fa65491ea3c047654bda
BLAKE2b-256 69661cb15d98ca041b3384940dc7d69687684d1723e076696a3b1d80b6357bb2

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