Skip to main content

treillis

Read the Docs License Pypi status

Lattices generation and simulation

treillis (/tʁɛji/, French for truss) is a Python library built to help researchers and whoever is interested in microlattices. It provides tools to modelize 2D and 3D microlattices, to compute their elastic properties as well as calculate stresses, strains and elastic constants. It was written by experimental physicists with the language that they know, and may need some optimization work, but aims at being as easy to use and iterate on as possible.

treillis offers tools to

  • generate lattices from different periodic or random base meshes
  • modify lattice structures by playing with the connectivity, the element shape, the node position...
  • display lattices in paper-quality figures or in interactive 3D figures
  • apply solid mechanics models to the lattices by treating them as basic meshes

Install

Ideally, if we had time and more experience with Python and building packages in general, the requirements would be much lighter. As is, treillis requires:

Install from the source as editable

Clone the repository.

Using Pixi

Install the latest version of Pixi, open a command terminal in the folder root and input pixi shell.

Using conda

Because treillis uses Datoviz for 3D interactive plotting, which does not yet have a conda release, you need to create the environment before being able to install

  • Open a conda command terminal in the folder root.
  • Create the treillis environment from environment.yml with

conda env create --name <YOUR ENVT NAME> --file=environment.yml

  • activate the environment conda activate <YOUR ENVT NAME>
  • install treillis in the environment as editable with
conda install conda-build
conda develop .

OR install treillis with conda install treillis

Pypi

Because the mechanics module of treillis is based on scikit-sparse, it has the same issues with pip install: SuiteSparse needs to be setup first before building the package. Hence, the next paragraph is copied from the scikit-sparse documentation:

To install scikit-sparse, you need to have the SuiteSparse library installed on your system.

It is recommended that you install SuiteSparse and the scikit-sparse dependencies in a virtual environment, to avoid conflicts with other packages. We recommend using Anaconda:

  $ conda create -n scikit-sparse python>=3.10 suitesparse
  $ conda activate scikit-sparse

If you are not using Anaconda, you can install SuiteSparse using your preferred package manager.

On MacOS, you can use Homebrew:

  $ brew install suite-sparse

On Debian/Ubuntu systems, use the following command:

  $ sudo apt-get install python-scipy libsuitesparse-dev

On Arch Linux, run:

  $ sudo pacman -S suitesparse

Documentation

Find the treillis documentation here.

License

treillis is under a GNU lesser general public license v3.0. See LICENSE.

Citation

If you use this library, please kindly cite us! See the CITATION file.

Metadata

Release files for treillis 1.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for treillis 1.4.4
File Size Uploaded Provenance Actions
treillis-1.4.4.tar.gz 44.2 MB With provenance Details for treillis-1.4.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for treillis 1.4.4
File Interpreter ABI Platform Actions
treillis-1.4.4-py3-none-any.whl Python 3 none any Details for treillis-1.4.4-py3-none-any.whl

Total release size: 88.9 MB

Release files / treillis-1.4.4.tar.gz

Download URL treillis-1.4.4.tar.gz
Size 44.2 MB
Tags Source
SHA-256 checksum
How to use checksums
442310ad9f42d2f5fd4fe2b8e340bffc2be5f97fb9f120f92e3fef63d4fd527b
BLAKE2b-256 checksum
How to use checksums
1d7157f9ff64e53450087606eac34a7b5ba4071eb5090ac04b1313b8aa37c9a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / treillis-1.4.4-py3-none-any.whl

Download URL treillis-1.4.4-py3-none-any.whl
Size 44.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ec948615817fe1e3eb9acbc266f269d238ddca92650c3e8b63aa048007700c7d
BLAKE2b-256 checksum
How to use checksums
86415fb54006df8b2dde40d038edcd4741e101f3bb2ceaf9254bee35cc8188d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for treillis 1.4.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for treillis-1.4.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page