steer-materials
Material definitions for the STEER (Storage Technology for Energy and Economic Research) simulation framework. This package provides base classes for representing physical materials — metals, solvents, and other substances — with built-in unit conversion, validation, and cost tracking.
steer-materials is a support package within the broader STEER ecosystem.
Installation
pip install steer-materials
For development:
git clone https://github.com/stanford-developers/steer-materials.git
cd steer-materials
pip install -e ".[dev]"
Quick Start
from steer_materials.Base import Metal, Solvent
# Create a metal material (density in g/cm³, cost in $/kg)
aluminum = Metal(name="Aluminum", density=2.7, specific_cost=2.50, color="silver")
print(aluminum.density) # 2.7 g/cm³
print(aluminum.specific_cost) # 2.50 $/kg
# Create a solvent
water = Solvent(name="Water", density=1.0, specific_cost=0.01, color="clear")
Testing
pip install -e ".[test]"
pytest
With coverage:
pytest --cov=steer_materials
Documentation
Full documentation for this package is available at stanford-developers.github.io/steer-materials.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Citation
If you use this software in your research, please cite it using the metadata in CITATION.cff.
License
This project is dual-licensed:
- Open source — GNU Affero General Public License v3.0 (AGPL-3.0-or-later)
- Commercial — A separate commercial license is available for use without AGPL-3.0 copyleft requirements. Contact nsiemons@stanford.edu for details.
See LICENSE for full terms.
Metadata
Release files for steer-materials 0.1.49
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| steer_materials-0.1.49.tar.gz | 22.2 kB | Without provenance | Details for steer_materials-0.1.49.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| steer_materials-0.1.49-py3-none-any.whl | Python 3 | none | any | Details for steer_materials-0.1.49-py3-none-any.whl |
Total release size: 41.7 kB
Release files / steer_materials-0.1.49.tar.gz
| Download URL | steer_materials-0.1.49.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78eac4800e8c841e3ab7f02b43be875e0ae09f0f4755fb1ad1f177d8c93719d7
|
|
BLAKE2b-256 checksum How to use checksums |
cae851fc86eb4de5e0b1a7aec17bb6b3851cd1c574055e6bdac630c7ed39b9dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Release files / steer_materials-0.1.49-py3-none-any.whl
| Download URL | steer_materials-0.1.49-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b1ae59331cfe51969881aa78f227abb96dc0a6337d780a1b97e4ad73bf263fa
|
|
BLAKE2b-256 checksum How to use checksums |
f81132e9be68658866acbaa6130e5e15f39ec2358e9ebad77759f54516069cf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Security for steer-materials 0.1.49
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.