Skip to main content

EdgeBridge: Lightweight AI Model Conversion, Quantization, Pruning & Deployment Toolkit

Project description

EdgeBridge

EdgeBridge is a comprehensive Python library designed to streamline AI, Machine Learning, and edge computing workflows. It provides a modular framework for model handling, data processing, optimization, deployment, and automation, making it easy for developers to integrate advanced functionalities into Python projects efficiently.

Table of Contents

  1. Project Overview
  2. Features
  3. Capabilities
  4. Installation
  5. Requirements
  6. Setup
  7. Folder Structure
  8. Modules & Usage
  9. Examples
  10. Testing
  11. GUI
  12. Contributing
  13. License

Project Overview

EdgeBridge bridges the gap between traditional Python scripting and scalable AI/ML solutions. With modularity at its core, developers can pick and use only the components they need. It provides tools for handling complex ML workflows, preprocessing datasets, optimizing models, converting data formats, running CLI commands, and deploying to edge devices.

Features

  • AI & ML Integration: Simplified APIs to integrate pre-trained or custom ML models.
  • Edge Deployment Ready: Utilities for deploying AI models on Raspberry Pi, Jetson devices, or other edge hardware.
  • Data Handling: Cleaning, preprocessing, normalization, feature extraction, and transformation utilities.
  • CLI Support: Command-line tools to automate tasks, run workflows, and execute scripts.
  • Modular Structure: Independent modules to prevent unnecessary bloat.
  • Optimizer Utilities: Hyperparameter tuning, model pruning, and performance improvement tools.
  • Converters: Seamless conversion between CSV, JSON, Excel, and other formats.
  • Extensible: Easily extendable architecture for adding new modules or modifying existing ones.
  • Testing & GUI Support: Built-in testing framework, GUI components, and visualization utilities.

Capabilities

EdgeBridge can perform a wide range of tasks, including but not limited to:

  1. Data Processing & Transformation

    • Loading datasets from multiple formats (CSV, JSON, Excel).
    • Cleaning missing or inconsistent data.
    • Normalizing, scaling, and encoding features.
    • Splitting datasets for training, validation, and testing.
    • Feature engineering and extraction for ML models.
  2. Machine Learning Integration

    • Loading and training ML models with minimal setup.
    • Support for scikit-learn, PyTorch, TensorFlow, or custom models.
    • Easy model evaluation and performance tracking.
    • Saving and loading trained models.
  3. Model Optimization & Automation

    • Hyperparameter tuning for better performance.
    • Automated model pruning to reduce size.
    • Batch processing and pipeline automation.
    • Multi-step task runners for complex workflows.
  4. Converters & Interoperability

    • Convert datasets between CSV, JSON, Excel, and other formats.
    • Handle encoding and format inconsistencies.
    • Ready-made utilities for common data conversions.
  5. CLI Tools

    • Run tasks from the command line without opening Python scripts.
    • Execute data processing, training, or optimization tasks.
    • Integrate into automation pipelines and scripts.
  6. GUI & Visualization

    • GUI components to visualize datasets, model performance, and results.
    • Interactive graphs and plots for insights.
    • Simple dashboards to monitor workflows.
  7. Testing & Reliability

    • Built-in unit testing framework to verify modules.
    • Ensures reliability and correctness across all components.
  8. Edge Deployment

    • Tools to deploy models on low-resource devices.
    • Optimized code paths for efficient inference.
    • Ready-to-use deployment scripts for common edge devices.

Installation

Install via PyPI:

pip install edgebridge

Or clone the repository:

git clone https://github.com/<your-username>/EdgeBridge.git
cd EdgeBridge
python -m pip install .

Requirements

  • Python 3.8 or higher
  • Dependencies (install via pip or requirements.txt): numpy, pandas, scikit-learn, matplotlib, torch (optional for deep learning)

Setup

  1. Clone repository
  2. Install requirements
  3. Build package (optional)
  4. Install locally (optional)

Folder Structure

EdgeBridge/ ├── edgebridge/ (core package) ├── utils.py ├── try.py ├── setup.py ├── runners.py ├── pyproject.toml ├── optimizer.py ├── core.py ├── converters.py ├── cli.py ├── tests/ ├── gui/ ├── examples/ ├── .github/ ├── egg-info/ ├── README.md ├── LICENSE ├── .gitignore

Modules & Usage

Core

Handles dataset processing, ML integration, and central pipeline management.

from edgebridge.core import Core
core = Core()
core.load_data("dataset.csv")
core.process_data()

Utils

Provides helper functions for data manipulation, logging, and general utilities.

from utils import helper_function
result = helper_function(data)

Optimizer

Optimizes models, hyperparameters, and pipelines.

from optimizer import Optimizer
opt = Optimizer(model)
opt.tune_parameters()

Converters

Converts between file formats and handles data interoperability.

from converters import convert_csv_to_json
convert_csv_to_json("data.csv", "data.json")

CLI

Run scripts, automate tasks, and execute workflows from the terminal.

python cli.py --run example

Runners

Automates multi-step workflows, batch processing, and task orchestration.

from runners import Runner
runner = Runner(task="train")
runner.execute()

Examples

Run examples in examples/ folder:

python examples/data_processing_example.py
python examples/model_training_example.py
python examples/cli_example.py

Testing

python -m unittest discover -s tests
pytest tests/

GUI

Run GUI examples:

python gui/main.py

Contributing

  1. Fork repository
  2. Create branch
  3. Commit changes
  4. Push branch
  5. Open Pull Request

License

MIT License

Contact

Open GitHub issues or contact author directly.

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

edgebridge-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edgebridge-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file edgebridge-0.1.0.tar.gz.

File metadata

  • Download URL: edgebridge-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for edgebridge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 de996e183825732eadfdc988ece5e62c059ad648b142b72571bbe312e4970772
MD5 d0cee705330a97b8ac978bde4e623dbc
BLAKE2b-256 249aa5bae971b69a5bff3992cfe441385590237d0e15a25c040cc8e7f8537b0b

See more details on using hashes here.

File details

Details for the file edgebridge-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: edgebridge-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for edgebridge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2672ed3627746dff803597029aac8540950321220092b9aa21167744ebbf4b4
MD5 151e3b7b61a80a1f796a54c90108ce27
BLAKE2b-256 d1b3de0ca279a2120acc3f0e8d87a9baf644b63ae48df5793de300faa40bd3dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page