Electrical-Engineering-for-Python
Python Libraries with functions and constants related to electrical engineering.
The functions and constants that make up these modules represent a library of material compiled with the intent of being used primarily for research, development, education, and exploration in the realm of electrical engineering.
Check out our full documentation: https://electricpy.readthedocs.io/en/latest/
Documentation has recently been updated to use ReadTheDocs
GitHub Pages are still active, and will continue to be for the forseeable future, but they're intended for developmental updates rather than primary documentation.
Phasor Plot | Power Triangle | Induction Motor Circle |
---|---|---|
RLC Frequency Response | Receiving Power Circle | |
---|---|---|
pip
. For most
common users, use the following command to install ElectricPy with pip
pip install electricpy[full]
import electricpy
electricpy._version_
>>> import electricpy as ep
>>> voltage = ep.phasor(67, 120) # 67 volts at angle 120 degrees
>>> voltage
(-33.499999999999986+58.02370205355739j)
>>> ep.cprint(voltage)
67.0 ∠ 120.0°
If you're looking to get the "latest and greatest" from electricpy, you'll want
to install directly from GitHub, you can do that one of two ways, the easiest of
which is to simply issue the following command for pip
pip install git+https://github.com/engineerjoe440/ElectricPy.git
Alternatively, you can do it the "old fashioned way" by cloning the repository and installing locally.
cd
Commands:
cd <path\to\containing\folder>\electricpy
setup.py
:
pip install .
For numerical analysis (install with pip install electricpy[numerical]
):
For fault analysis (install with pip install electricpy[fault]
)
If you're interested in contributing, we'd love to see your support in a number of ways!
Check out the contribution guide
and
For more information regarding this resource, please contact Joe Stanley
ElectricPy is licensed under the standard MIT license, and as such, you are permitted to use this resource as you see fit. Please feel free to ask questions, suggest edits and report bugs or other issues.