Skip to content

kompre/keecas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keecas

A module for performing symbolic and units-aware calculations in a jupyter notebook.

Introduction

keecas is a Python module designed to simplify symbolic and units-aware calculations. It leverages well-known Python modules such as sympy, pint, and pipe to provide a convenient and easy-to-use interface.

It's meant to be used in a interactive environment such as jupyter notebook. It produces latex amsmath code that can be rendered by the notebook, displaying nicely formatted math expression.

It's been developed to be used for Quarto rendered pdf documents, and it provides some specific features such as cross-reference support for equation.

Features

  • Symbolic expression and computation using sympy
  • Units-aware calculations using pint
  • pipe style functions with pipe

Examples

For a quick start, check out the hello_world.ipynb example, which demonstrates how to use keecas to calculate the maximum bending moment for a simple beam.

Installation

To install keecas, run the following command:

pip install keecas

or

uv add keecas

Dependencies

keecas depends on the following packages:

  • flatten-dict
  • ipython
  • pint
  • pipe
  • regex
  • ruamel-yaml
  • sympy

Testing

To run the tests, use the following command:

pytest

License

keecas is licensed under the MIT License.

Acknowledgments

keecas is built on top of the excellent work of the sympy, pint, and pipe communities. We would like to thank the authors and maintainers of these projects for their contributions to the scientific Python ecosystem.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages