Skip to main content

Density, magnetic permeability etc. for a range of materials.

Project description

Build Status codecov PyPi Version GitHub stars

materials is a database of physical and chemical data, possibly with temperature dependence, of various more or less common materials. All data are given in SI units.

For example, to plot the density of various materials between 274 and 370 K you can do

import materials
import matplotlib.pyplot as plt
import numpy

T = numpy.linspace(274.0, 370.0, num=100)

rho_air = materials.air.density(T)
rho_argon = materials.argon.density(T)
rho_copper = materials.copper.density(T)
rho_water = materials.water.density(T)

plt.semilogy(T, rho_copper, label='copper')
plt.semilogy(T, rho_water, label='water')
plt.semilogy(T, rho_argon, label='argon')
plt.semilogy(T, rho_air, label='air')

plt.xlabel('temperature (K)')
plt.ylabel('density (kg/m^3)')


materials is available from the Python Package Index, so simply type

pip install -U materials

to install or upgrade.


To run the materials unit tests, check out this repository and type



To create a new release

  1. bump the __version__ number,

  2. publish to PyPi and GitHub:

    make publish


materials is published under the MIT license.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for materials, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size materials-0.1.5-py2.py3-none-any.whl (15.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page