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.2.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.2-py3-none-any.whl (73.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymats-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0ef652eb5d5f2438cfbd73596112600ee7efdb535de58d14ef65c15fe5d50e60
MD5 4ecb6836cba6a9c11ad7f3e3b487ac48
BLAKE2b-256 daeb9bb84f4fe35dc5717f6c185f9cdff8a172be2c5a9f8e519e4095fafa56fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymats-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 73.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9733142460e0a6d3f8e8ad90711d5c61d92e587b863e03b3cff285348bf3197d
MD5 6ced2e87d0bb59d706ac953db135fe5c
BLAKE2b-256 b82a4390daeb5855d2eb73451c36d30aa373763a3ebcc750149ef2e5d0c2b3a8

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