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
  • Copy materials from other collections
  • Save materials to your own collection
  • 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

Installation

The python module is available with pip install pymats

Example

from pymats import Material`
material = Material(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.0.tar.gz (27.3 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.0-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymats-0.1.0.tar.gz
  • Upload date:
  • Size: 27.3 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.0.tar.gz
Algorithm Hash digest
SHA256 5320195eb47d0755031c141d3652b783fa64876a84a6c5b237468c4f9f1120d9
MD5 c458f06cb956a9830a817cc1500bbff9
BLAKE2b-256 4884f43d38e2cfa9053900b6740075dcc6a4accc31ffd19b074b5c8a7c229aa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymats-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03a69da99a1cf2491b1e07f07e1065a91e9d54d7f026ec382714e56a2a662fce
MD5 81a39d53b276a28e62a49fedfde0a40c
BLAKE2b-256 17ebfcd887b893850d724aabe704b70636a5fa017abc413e6ccd5646e58f4558

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