# Polymers Modeling Library
[](https://sandialabs.github.io/Polymers)
[](https://mybinder.org/v2/gh/sandialabs/Polymers/main)
[](https://discord.gg/9gy8tTktD5)
[](https://www.codefactor.io/repository/github/sandialabs/polymers)
The library is implemented entirely in Rust, including the Python API. The Julia API calls the Rust library.
## Python
[](https://polymers.readthedocs.io/en/stable)
[](https://polymers.readthedocs.io/en/latest)
[](https://pypi.org/project/polymers)
[](https://anaconda.org/mrbuche/polymers/)
The library can be installed as a Python package using
```shell
pip install polymers
```
or as Python package within a Conda environment using
```shell
conda install --channel mrbuche polymers
```
If Rust is installed, the latest edition of the library can be installed from the main branch of the GitHub repository:
```shell
git clone git@github.com:sandialabs/Polymers.git
cd Polymers/
pip install maturin
maturin build --features python
pip install target/wheels/*.whl
```
## Julia
[](https://sandialabs.github.io/Polymers/julia/docs/stable/polymers)
[](https://sandialabs.github.io/Polymers/julia/docs/latest/polymers)
[](https://anaconda.org/mrbuche/polymers/)
The latest edition of the library can be installed as a Julia package using
```julia
using Pkg
Pkg.add(url="https://github.com/sandialabs/Polymers")
Pkg.build("Polymers")
```
or as Julia package within a Conda environment using
```shell
conda install --channel mrbuche polymers
```
## Rust
[](https://docs.rs/crate/polymers)
[](https://sandialabs.github.io/Polymers/rust/docs/latest/polymers)
[](https://crates.io/crates/polymers)
The library can be used in an existing Rust project by adding the `polymers` crate as a dependency in Cargo.toml:
```toml
[dependencies]
polymers = "*"
```
The asterisk `*` represents the newest released version of the crate, and should be changed to a specific version.
To use the latest edition of the library, add the main branch of the GitHub repository to Cargo.toml:
```toml
[dependencies]
regex = { git = "https://github.com/sandialabs/polymers" }
```
## Citation
[](https://doi.org/10.5281/zenodo.7041983)
Michael R. Buche. Polymers Modeling Library. [Zenodo (2023)](https://doi.org/10.5281/zenodo.7041983).
## Copyright
[](https://github.com/sandialabs/polymers/blob/main/LICENSE)
Copyright 2022 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software.