Skip to main content

A python module for handling materials

Project description

PyMats

PyMats is a material database app for Python. It is designed to help you manage and organize your materials and data. You can create, edit, and delete materials, as well as search for materials by name or ID. PyMats also allows you to copy materials from other collections and save them to your own collection. The api can be used to load material data to extternal applications, like excel. In additon the pymats module can be used in python directly to interact with the database.

Main Actions

  • Search for materials by name or ID
  • Load material data to external applications
  • Interact with the database using the pymats module
  • Get CAE Input Files for Ansys, LS-Dyna and Abaqus
  • Compare Materials and find equivalents
  • Generate Particular Material Apraisals (PMAs) automatically with custom requirements
  • Since Excel is widley used, you can create a customized excel data table with your materials
  • Future: "Engineering Data" for Ansys Workbench

The public collections and its materials are free to use. The material data is built from regression models and only approximate the data of the corresponding standards.

Getting started

Python Module

The package allows to load materials and determine properties at different design points.

Installation

The python module is available with pip install pymats

Example

from pymats import MaterialFactory`
material = MaterialFactory.from_config({"Idenitifier": "SA-723-2-2"})`

This will load the material via the api by default. See the configuration section for defining custom databases or data sources.

Using the API

The general endpoints /load_materials, /material/{mid}/ and /get_mids can just be used like any other api endpoints. Check the docu for information of returns. If an enpoint requires authentication, provide your personal remote token as ?user=<token>. The token can be placed in the env variable $REMOTE_TOKEN or your credentials are stored in ~/.pymats/credentials.json.

Using in Excel

With the token you have access to an excel addin based on OfficeJS. You can also use the token with a vba function. The addin can be downloaded via the download section

Using in Mathcad

With the token you can download a compiled dll you can include to your mathcad environment to get the related udf's.

Configuration

Environment Variables

$PYMATS_TOKEN: used for authentication

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

pymats-0.1.1.tar.gz (57.2 kB view details)

Uploaded Source

Built Distribution

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

pymats-0.1.1-py3-none-any.whl (72.9 kB view details)

Uploaded Python 3

File details

Details for the file pymats-0.1.1.tar.gz.

File metadata

  • Download URL: pymats-0.1.1.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for pymats-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fbc27423befb6ca55acd079d5d947956c9d1a82be1b18d407bc746444454865d
MD5 59c9500c85c34f866196cb46a847ac76
BLAKE2b-256 f5d7f590eed758fd4968388d371d3fa70db8087a87e788a111d0e357e19ffeb8

See more details on using hashes here.

File details

Details for the file pymats-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pymats-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 72.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for pymats-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f16cfd91460717f30f7efe480d3135e172fccfc3e3558ab537d44cdcec0f584
MD5 c69903f2976586f22eaf9199249eb625
BLAKE2b-256 ae98843f55de4c0ab28e3152204dfc3f24e32ec3fe1cde1c8fefe3bc8bc21493

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