8000 GitHub - haydenburrows30/qmlElectrical: A comprehensive electrical engineering calculator suite built with Python and QML that provides tools for cable sizing, voltage drop calculations, vector and phase visualisation, basic electrical calculations and more.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A comprehensive electrical engineering calculator suite built with Python and QML that provides tools for cable sizing, voltage drop calculations, vector and phase visualisation, basic electrical calculations and more.

License

Notifications You must be signed in to change notification settings

haydenburrows30/qmlElectrical

Repository files navigation

Electrical Calculator

The goal for this application is:

  • Learn Python, QML & SQL
  • Make a nice looking application without going overboard
  • Able to run from Linux & Windows (runs much better in Linux)
  • Package it for usage in Windows & Linux (.exe & .pkg)

This application was developed in Linux, but checks were made in Windows (bare metal).

Maybe I will port backend to C++ at a later date, but will mean learning C++. I'm sure this will speed up the application immensely using Qt framework. This was what drew me to QML as I can develop the frontend and replace the backend if necessary. I have tried to decouple QML from Python as much as I can and just let QML display visuals.

Features

Core Calculations

  • Cable sizing and selection
  • Voltage drop analysis
  • Vector and phase visualisations
  • Basic electrical calculations

Image Image Image Image Image

Getting Started

Prerequisites

  • Python 3.8 or later
  • PySide6
  • reportlab
  • numpy

Basic Installation

  1. Clone the repository:
git clone https://github.com/yourusername/electrical-calculator.git
cd electrical-calculator
  1. Install virtual environment via virtualenv:
virtualenv venv or python3.12 -m venv venv
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Generate resources:
pyside6-rcc resources.qrc -o data/rc_resources.py
  1. Run the application:
python main.py

Building From Source

Windows Build

  1. Install build requirements:
pip install -r build_requirements.txt
  1. Run the build script:
python scripts/windows_build.py
  1. Create installer (requires NSIS):

The executable will be in the dist folder, and the installer will be created as ElectricalCalculator_Setup.exe.

Build Requirements

  • Python 3.8 or later
  • PyInstaller
  • PySide6
  • NSIS (for creating installer)

Development

Project Structure

electrical-calculator/
├── qml/components/         # Reusable QML components
├── qml/components/menus/   # Define all menus here
├── qml/pages/              # Main application pages
├── qml/calculators/        # Calculators
├── data/                   # Data files and resources
├── icons/                  # Application icons
├── docs/                   # Documentation
└── scripts/                # Build automation scripts

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A comprehensive electrical engineering calculator suite built with Python and QML that provides tools for cable sizing, voltage drop calculations, vector and phase visualisation, basic electrical calculations and more.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0