Python library for working with braids
Project description
BraidPy
A Python library for working with braids.
Features
- Representation of braids
- Braid operations and manipulations
- Visualization capabilities
- Mathematical properties and computations
- [] unreduced Burau matrix representation
- [] reduced Burau matrix representation
- [] Alexaner polynomial
Usage
from braidpy import Braid
# Create a braid
b = Braid([1, 2, -1])
# Perform operations
result = b * b.inverse()
🛠️ Installation
You can download the code directly from GitHub or using git:
git clone git@github.com:baptistelabat/braidpy.git
To install the required dependencies, follow the steps below:
- Install
uvby following the official installation guide. - Alternatively, run the command from root of repository:
cd braidpy make install-uv
Test
To launch the complete suite of tests, launch the following command:
uv run pytest tests
Alternatively, if you have make install, just run:
make test
📜 Documentation
Documentation is available at: https://braidpy.readthedocs.io/en/latest/
Project Team:
Human:
Bot: chatgpt windsurf
🤝 Contributions
Contributions are welcome! Please open an issue or submit a pull request to suggest changes, report bugs, or propose new features.
Here are a few code guidelines:
- We use english for code and comments.
- We use google style docstring.
- We use type hinting.
Please be sure to install the pre-commit tool in order to check your code while commiting in order to keep a clean project history.
pre-commit install
Please have a look to makefile to find helpful commands.
📜 License
This project is licensed under the Mozilla Public License 2.0 - see the LICENSE file for details.
🖇️ References
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file braidpy-0.1.0.tar.gz.
File metadata
- Download URL: braidpy-0.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
619b1ac018529462f6d85e55b05a84eaee90e79ffa08b8878b7543302cb8a6a8
|
|
| MD5 |
54c5533874192432f4ab6f6d6c58abe8
|
|
| BLAKE2b-256 |
2570d8594636b50f8eac4a72d01187aa97a558358a7b9f6de95c90a6fcabafa4
|
File details
Details for the file braidpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: braidpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1211e1be54aa0193481b5f444e7c0c12badbcf25a52a0303b33646f6a9c34cc8
|
|
| MD5 |
4e099c946e6adf11f4b872417d2035f4
|
|
| BLAKE2b-256 |
7647ce057eb985156dda673fa240e4cbc200f577fe8cee72ddeefb66d0aa612b
|