A sample Python library from the FABRIC Testbed project.
pip install git+https://github.com/fabric-testbed/fabric-project-demo.gitOr clone and install locally:
git clone https://github.com/fabric-testbed/fabric-project-demo.git
cd fabric-project-demo
pip install .from fabric_demo import greet, add, slugify, truncate
# Core functions
print(greet("World")) # "Hello, World! Welcome to FABRIC Demo."
print(add(2, 3)) # 5
# Utility functions
print(slugify("Hello World")) # "hello-world"
print(truncate("A long string", 10)) # "A long..."python -m pytest tests/This project is licensed under the MIT License — see the LICENSE file for details.