A Python library for electronic formulas and signal processing
Project description
Voltops
Voltops is a Python library built for electronics and signal processing enthusiasts. Whether you're an engineer, student, or hobbyist, this package offers intuitive functions for working with electrical formulas and analyzing signals with ease.
Installation
pip install voltops
Quick Start
Basic Electronic Formulas
from voltops.formulas.basic import BasicFormulas
# Calculate voltage using Ohm's Law: V = I * R
voltage = BasicFormulas.ohms_law(current=2, resistance=5)
print(f"Voltage: {voltage} V") # Output: Voltage: 10 V
# Calculate power: P = V * I
power = BasicFormulas.power(voltage=10, current=2)
print(f"Power: {power} W") # Output: Power: 20 W
Frequency Spectrum Analysis
import numpy as np
from voltops.signal_processing.transforms import Transforms
# Generate a simple sine wave signal
t = np.linspace(0, 1, 1000, endpoint=False)
signal = np.sin(2 * np.pi * 10 * t)
# Get the frequency spectrum
freqs, amps = Transforms.frequency_spectrum(signal, sampling_rate=1000)
Filtering Signals
from voltops.signal_processing.filters import Filters
# Create a signal with multiple frequency components
t = np.linspace(0, 1, 1000, endpoint=False)
signal = np.sin(2 * np.pi * 10 * t) + 0.5 * np.sin(2 * np.pi * 20 * t)
# Apply a low-pass filter with a cutoff at 15 Hz
filtered_signal = Filters.low_pass_filter(signal, cutoff=15, sampling_rate=1000)
Features
- Electronic Formulas: Ohm's Law, power, and more.
- Signal Processing: FFT, DFT, filtering, and spectral analysis.
- Extensible API: Easy-to-use, modular design for seamless integration.
Contributing
Contributions are welcome!
If you'd like to report a bug, request a feature, or contribute code, feel free to open an issue or submit a pull request on GitHub.
Maintainers
This library is actively developed and maintained by Madhur Thareja.
📄 License
Licensed under the MIT License.
Feel free to use, modify, and distribute this library.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file voltops-0.1.0.tar.gz.
File metadata
- Download URL: voltops-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28103f2e26fa3e0e130dfa4bf59fbf8564455dd47a22e732c69b252a4ba791a5
|
|
| MD5 |
8fd6820ea3948c758e50ba589fd5b466
|
|
| BLAKE2b-256 |
e777a8211465339d30c2cba26625992f6c17718657552298b7a7b30928d86831
|
File details
Details for the file voltops-0.1.0-py3-none-any.whl.
File metadata
- Download URL: voltops-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fc031667589406aee2558d379b0ac78cfeb6e43d47cef6743798c7cf979b2a6
|
|
| MD5 |
9e68bec526882a78e20565fe47b1274e
|
|
| BLAKE2b-256 |
1e1797385c5ab00f2ffb13c2ac34e319e90237b8241e64d993b42aecdfd87c26
|