Skip to main content

A user-friendly program for accelerating the calculation and analysis processes of transport, electronic, and thermoelectric properties of materials.

Project description

Tepkit

Python PyPI

Tepkit is a user-friendly program for accelerating the calculation and analysis processes of transport, electronic, and thermoelectric properties of materials.


Features

  • Calculate the root-mean-square (RMS) of interatomic force constants (IFCs)
  • Visualize the RMS of IFCs in real-space
  • Adjust the cutoff radius of the anharmonic IFCs calculations without repeated calculations
  • Detect the duplicated jobs generated by thirdorder/fourthorder and skip them
  • Calculate the DOS average effective mass from the BoltzTraP2 results
  • Calculate the carrier mobility and the relaxation time using deformation potential (DP) theory
  • Apply the effective thickness correction (ETC) to the properties of 2D materials
  • Plot the transport property figures from the output files of the DFT calculations
  • Plot the heatmap of the band structure (3D band structure) of the 2D materials
  • Get the layer group of 2D materials through Spglib and derive various symmetry information
  • Allow users to add custom functions into the command-line interface (CLI)

How To Cite

If you have used Tepkit in your work, please cite our paper which indeed helps the Tepkit project to continue:

  • S.-H. Cao, X.-R. Chen, Z.-Y. Zeng, H.-Y. Geng, Tepkit: A toolkit for measuring and visualizing interatomic force constants and accelerating transport-property calculations, Comput. Mater. Sci. 259 (2025) 114151, https://doi.org/10.1016/j.commatsci.2025.114151.

✏️ Examples described in the paper are available in the examples/paper_examples directory.

Requirements

As of now, this package is only supported on Python >= 3.11.

The following libraries are required to run basic functions and will be installed automatically:

  • typer & docstring_parser for Command-Line Interface (CLI)
  • loguru & tqdmfor Logging
  • toml for Configuration File
  • numpy & scipy for Mathmatical Calculations
  • pandas for Table Data Handling
  • matplotlib for Plotting

How to Install

Step 1 — Prepare the Environment

Method A: In conda environment (Recommended)

You can use conda to create a virtual environment with Python 3.11 for Tepkit.

conda create --name tepkit python=3.11
conda activate tepkit

If you have not installed it, check one of the following:

Method B: In native environment

Cheak if you have installed Python, and check if the version is at least 3.11 by:

python --version
# Python 3.11.x

Step 2 — Install Tepkit

Method A: Form PyPI (Recommended)

pip install tepkit

Method B: From GitHub

pip install git+https://github.com/TepLabCode/Tepkit.git

Method C: From Releases

  1. Download:
    Go to the releases page, and download the latest released package:
    tepkit-<version>.tar.gz
  2. Extract:
    Extract the package by command or any other tool you like.
    ( Example command: tar -xvf tepkit-*.tar.gz )
  3. Install: Go to the extracted directory and install the package:
    cd tepkit-*
    pip install .
    

(Optional) Install All Dependencies

By default, Tepkit will only install the basic dependencies,
so you may meet ModuleNotFoundError when running some commands or using some functions.

If you want to install all dependencies at once,
you can add the [all] option to the installation command, like:

pip install tepkit[all]

Step 3 — Test

A. As a Command-line Interface (CLI)

You can test if Tepkit is installed correctly by running the tepkit command in the console.

> tepkit

If you installed Tepkit in conda, you need to activate the environment before running the command:

> conda activate tepkit
> tepkit

B. As a Python Module

You can test if Tepkit can be imported correctly by the following code in Python:

import tepkit

About Name

Tepkit is a python package to assist with the first principles calculations.

  • It is a Transport and Electronic Properties Toolkit.

  • It is also a ThermoElectric Properties Toolkit.

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

tepkit-0.2.1.tar.gz (95.8 kB view details)

Uploaded Source

Built Distribution

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

tepkit-0.2.1-py3-none-any.whl (123.5 kB view details)

Uploaded Python 3

File details

Details for the file tepkit-0.2.1.tar.gz.

File metadata

  • Download URL: tepkit-0.2.1.tar.gz
  • Upload date:
  • Size: 95.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for tepkit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a330f54429270f4bc0e3749142b7671eca3d194061ed2e12657e071d413219cb
MD5 be73994da4c3cb12a12fedffe13632aa
BLAKE2b-256 7927e32aee3534a1d9b1c285a5b50a70688f364b4d419e641b47cd2d5c871c67

See more details on using hashes here.

File details

Details for the file tepkit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tepkit-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 123.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for tepkit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e1aba131776e60fbddf902e60bfb47088a8eaa8448fa1051012fba4df329d4d
MD5 a94da3cde06d07af4e3b66faa83e5776
BLAKE2b-256 3223297b4d46b4b21f3f60857e44268d68915f21b7c232dd64afd06d3ef41746

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