electrocute 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: electrocute
3
+ Version: 0.1.2
4
+ Summary: A Python library for electronic formulas and signal processing
5
+ Home-page: https://github.com/madhurthareja/electrocute
6
+ Author: Madhur Thareja
7
+ Author-email: madhurthareja1105@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.7
12
+ Description-Content-Type: text/markdown
13
+ Requires-Dist: numpy>=1.21.0
14
+ Requires-Dist: scipy>=1.7.0
15
+ Dynamic: author
16
+ Dynamic: author-email
17
+ Dynamic: classifier
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: home-page
21
+ Dynamic: requires-dist
22
+ Dynamic: requires-python
23
+ Dynamic: summary
24
+
25
+ # ⚡ Electrocute
26
+
27
+ **Electrocute** 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.
28
+
29
+ ---
30
+
31
+ ## 📦 Installation
32
+
33
+ ```bash
34
+ pip install electrocute
35
+ ```
36
+
37
+ ---
38
+
39
+ ## 🚀 Quick Start
40
+
41
+ ### Basic Electronic Formulas
42
+
43
+ ```python
44
+ from electrocute.formulas.basic import BasicFormulas
45
+
46
+ # Calculate voltage using Ohm's Law: V = I * R
47
+ voltage = BasicFormulas.ohms_law(current=2, resistance=5)
48
+ print(f"Voltage: {voltage} V") # Output: Voltage: 10 V
49
+
50
+ # Calculate power: P = V * I
51
+ power = BasicFormulas.power(voltage=10, current=2)
52
+ print(f"Power: {power} W") # Output: Power: 20 W
53
+ ```
54
+
55
+ ### Frequency Spectrum Analysis
56
+
57
+ ```python
58
+ import numpy as np
59
+ from electrocute.signal_processing.transforms import Transforms
60
+
61
+ # Generate a simple sine wave signal
62
+ t = np.linspace(0, 1, 1000, endpoint=False)
63
+ signal = np.sin(2 * np.pi * 10 * t)
64
+
65
+ # Get the frequency spectrum
66
+ freqs, amps = Transforms.frequency_spectrum(signal, sampling_rate=1000)
67
+ ```
68
+
69
+ ### Filtering Signals
70
+
71
+ ```python
72
+ from electrocute.signal_processing.filters import Filters
73
+
74
+ # Create a signal with multiple frequency components
75
+ t = np.linspace(0, 1, 1000, endpoint=False)
76
+ signal = np.sin(2 * np.pi * 10 * t) + 0.5 * np.sin(2 * np.pi * 20 * t)
77
+
78
+ # Apply a low-pass filter with a cutoff at 15 Hz
79
+ filtered_signal = Filters.low_pass_filter(signal, cutoff=15, sampling_rate=1000)
80
+ ```
81
+
82
+ ---
83
+
84
+ ## 🔧 Features
85
+
86
+ - 📐 **Electronic Formulas**: Ohm's Law, power, and more.
87
+ - 🎚️ **Signal Processing**: FFT, DFT, filtering, and spectral analysis.
88
+ - 📚 **Extensible API**: Easy-to-use, modular design for seamless integration.
89
+
90
+ ---
91
+
92
+ ## 🤝 Contributing
93
+
94
+ Contributions are welcome!
95
+ 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](https://github.com/madhurthareja/electrocute).
96
+
97
+ ---
98
+
99
+ ## 👨‍💻 Maintainers
100
+
101
+ This library is actively developed and maintained by **Madhur Thareja**.
102
+
103
+ ---
104
+
105
+ ## 📄 License
106
+
107
+ Licensed under the [MIT License](https://opensource.org/licenses/MIT).
108
+ Feel free to use, modify, and distribute this library.
@@ -5,7 +5,7 @@ electrocute/image_processing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
5
5
  electrocute/signal_processing/__init__.py,sha256=2eywFHQ2ExEMvrHKk7w6mx2HzBAN1bWCbpyb1hxAmiY,48
6
6
  electrocute/signal_processing/filters.py,sha256=RjMnV3KSka90Ul1GmE0-PJ6Dx-XRKEJmQWywcxKuX4A,1881
7
7
  electrocute/signal_processing/transforms.py,sha256=3lFXZVtMn0peMQh02E-Y6YI_VVgBS8Fe5tYWsCgi7Iw,1049
8
- electrocute-0.1.0.dist-info/METADATA,sha256=kePlAUzwoGbJ7vGVYKwp3qzmBTzRtHAQWnl3czfFRVs,1838
9
- electrocute-0.1.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
10
- electrocute-0.1.0.dist-info/top_level.txt,sha256=6zrEXBlVikHnAQRohTIBrXIhCrJnViyrzZtGRWbduZQ,12
11
- electrocute-0.1.0.dist-info/RECORD,,
8
+ electrocute-0.1.2.dist-info/METADATA,sha256=TUDWLfJ9cFfkFd6nPB4NY1wViNbpPfsNqvoEWextq2o,2951
9
+ electrocute-0.1.2.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
10
+ electrocute-0.1.2.dist-info/top_level.txt,sha256=6zrEXBlVikHnAQRohTIBrXIhCrJnViyrzZtGRWbduZQ,12
11
+ electrocute-0.1.2.dist-info/RECORD,,
@@ -1,69 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: electrocute
3
- Version: 0.1.0
4
- Summary: A Python library for electronic formulas and signal processing
5
- Home-page: https://github.com/madhurthareja/electrocute
6
- Author: Madhur Thareja
7
- Author-email: madhurthareja1105@gmail.com
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.7
12
- Description-Content-Type: text/markdown
13
- Requires-Dist: numpy>=1.21.0
14
- Requires-Dist: scipy>=1.7.0
15
- Dynamic: author
16
- Dynamic: author-email
17
- Dynamic: classifier
18
- Dynamic: description
19
- Dynamic: description-content-type
20
- Dynamic: home-page
21
- Dynamic: requires-dist
22
- Dynamic: requires-python
23
- Dynamic: summary
24
-
25
- # Electrocute
26
-
27
- **Electrocute** is a Python library designed for electronic formulas and signal processing. It provides easy-to-use functions for calculations like Ohm's Law, power, FFT, DFT, and filters, making it ideal for engineers, students, and hobbyists.
28
-
29
- ---
30
-
31
- ## Installation
32
-
33
- ```bash
34
- pip install electrocute
35
- ```
36
-
37
- ## Usage
38
-
39
- ```python
40
- from electrocute import Electrocute
41
-
42
- # Calculate voltage using Ohm's Law
43
- voltage = Electrocute.ohms_law(current=2, resistance=5)
44
- print(f"Voltage: {voltage} V") # Output: 10 V
45
-
46
- import numpy as np
47
- from electrocute import Electrocute
48
-
49
- t = np.linspace(0, 1, 1000, endpoint=False)
50
- signal = np.sin(2 * np.pi * 10 * t)
51
- freqs, amps = Electrocute.frequency_spectrum(signal, sampling_rate=1000)
52
- ```
53
-
54
- ## Features
55
-
56
- - Electronic formulas (Ohm's Law, power calculations, etc.)
57
- - Signal processing (FFT, DFT, frequency spectrum, filters)
58
- - Extensible and well-documented API
59
-
60
- ## Contributing
61
-
62
- Contributions are welcome! Please submit a pull request or open an issue on GitHub.
63
-
64
- ### Maintainers:
65
- This library is under development and is actively maintained by Madhur Thareja.
66
-
67
- ## License
68
-
69
- MIT License