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.

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.10.tar.gz (26.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.10-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for thermo_calc-0.0.10.tar.gz
Algorithm Hash digest
SHA256 0c68bb5f59a5cf2db2b1d8317bd358e07ac1fbea95637adbd5e0fc59191ee177
MD5 027f90cffea9b1a88cfb04063c657d11
BLAKE2b-256 dea1fbcd42fd155733108c8d29c9290796b5fa0c5ce39396c7534595d86fef98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thermo_calc-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c6ad7611e8fe2f292af44a4e1d82338bdae074e1914599f8b39b930000a50253
MD5 72226f7a64ff03a701693f85f253533f
BLAKE2b-256 1855beb6ffacb3b651261ab40a1f3e443bad358ed8a1bba5ecc79f323bbc3862

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