Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

voltops-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

voltops-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file voltops-0.1.1.tar.gz.

File metadata

  • Download URL: voltops-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for voltops-0.1.1.tar.gz
Algorithm Hash digest
SHA256 03983da2cb8a6ec5022dd8d4cbd02d1b9c4e3a45f6f915ec790adb0efa96ad0b
MD5 fe73763026d5d5ad1a6efbd399e672a0
BLAKE2b-256 61cb6d8d2a812e10b83e11f9703140ff0f20731ad83c4fa88a3fc8800eb54537

See more details on using hashes here.

File details

Details for the file voltops-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: voltops-0.1.1-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.12.0

File hashes

Hashes for voltops-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e32a935af7897fe0b1dcf797e5c0e878601fc5be1fae67911f6ac6cf784d443
MD5 f31d9e77813a2195ef8db7e1345b97de
BLAKE2b-256 166f7a174903968ed0f7e15e8c05ed3db5689681e7f830690f26605522e65a82

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