A Python-based library designed for the development and integration of satellite applications with the B-Fabric Laboratory Information Management System (LIMS).
Explore the documentation »
View Demo
·
Report Bug
·
Request Feature
- About The Project
- Quickstart
- What Is B-Fabric?
- What Is B-FabricPy?
- What Is Dash?
- Roadmap
- Contributing
- License
- Contact
- Acknowledgments
The bfabric_web_apps is a Python library designed to simplify the creation of web applications that interact with B-Fabric. The library streamlines the development of B-Fabric satellite applications by standardizing common patterns and providing developers with a simpler and more efficient code base. B-Fabric Web Apps are modular satellite applications that extend the functionality of the B-Fabric Laboratory Information Management System (LIMS).
- Token Management – Securely handle authentication tokens for API access.
- Entity Data Handling – Retrieve, modify, and update B-Fabric entities dynamically.
- Logger – Integrated logging for API calls, events, and errors.
- Layouts and UI Components – Utilize predefined structures to streamline app design.
You can install the bfabric_web_apps module via pip:
pip install bfabric_web_appsAfter installation, you can create a simple Dash-based web application using bfabric_web_apps like this:
# Import necessary modules
from dash import html
from bfabric_web_apps import(
create_app,
get_static_layout,
HOST,
PORT,
)
# Initialize the Dash application
app = create_app()
# Define application title
app_title = "My B-Fabric App"
# Define the main layout content
app_specific_layout = html.Div([
html.H1("Welcome to My B-Fabric App"),
html.P("This is a quickstart example using bfabric_web_apps.")
])
# Optionally define documentation content
documentation_content = [
html.H2("Documentation"),
html.P("Describe your app's features here.")
]
# Set up the application layout
app.layout = get_static_layout(
app_title, # Title shown in the browser tab
app_specific_layout, # Main application content
documentation_content # Documentation section
)
# Run the application
if __name__ == "__main__":
app.run(debug=False, port=PORT, host=HOST)This example sets up a minimal web application using bfabric_web_apps, providing a structured layout with configurable content.
To explore the usage of the bfabric_web_apps library in greater detail, refer to the bfabric-web-app-template repository. This template demonstrates how to:
- Set up a project using
bfabric_web_apps. - Create visual dashboards with Dash.
- Interact with the B-Fabric LIMS through the Python library.
B-Fabric is a Laboratory Information Management System (LIMS) used for managing scientific experiments and their associated data in laboratories. It provides a platform for tracking samples, analyzing results, and organizing workflows efficiently.
For more details, visit the B-Fabric official website.
BfabricPy is a Python library that provides a programmatic interface to interact with the Bfabric SOAP WebService. It allows developers to integrate B-Fabric functionalities into custom Python applications. This library simplifies tasks like querying samples, uploading results, and interacting with the LIMS programmatically.
BfabricPy is a dependency of this project and is fetched directly from its GitHub repository during installation.
For more details, visit the bfabricPy official Git repository or the library's official documentation.
Dash is a Python framework for building interactive web applications. It combines the power of Plotly for data visualization and Flask for backend support, making it ideal for scientific and analytical dashboards.
For more details, visit the Dash official documentation.
See the open issues for a full list of planned features and known issues.
bfabric_web_apps is an open-source project, and therefore any contributions you make are greatly appreciated. If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
- Make your changes and commit them:
git commit -m "Add feature: YourFeature" - Push to your branch:
git push origin feature/YourFeature
- Open a Pull Request.
Distributed under the MIT License. See LICENSE for more details.
GWC GmbH - GitHub - LinkedIn
Griffin White - GitHub - LinkedIn
Marc Zuber - GitHub - LinkedIn