electrocute 0.1.0__tar.gz → 0.1.1__tar.gz

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.1
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/your-repo/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.
@@ -0,0 +1,84 @@
1
+ # ⚡ Electrocute
2
+
3
+ **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.
4
+
5
+ ---
6
+
7
+ ## 📦 Installation
8
+
9
+ ```bash
10
+ pip install electrocute
11
+ ```
12
+
13
+ ---
14
+
15
+ ## 🚀 Quick Start
16
+
17
+ ### Basic Electronic Formulas
18
+
19
+ ```python
20
+ from electrocute.formulas.basic import BasicFormulas
21
+
22
+ # Calculate voltage using Ohm's Law: V = I * R
23
+ voltage = BasicFormulas.ohms_law(current=2, resistance=5)
24
+ print(f"Voltage: {voltage} V") # Output: Voltage: 10 V
25
+
26
+ # Calculate power: P = V * I
27
+ power = BasicFormulas.power(voltage=10, current=2)
28
+ print(f"Power: {power} W") # Output: Power: 20 W
29
+ ```
30
+
31
+ ### Frequency Spectrum Analysis
32
+
33
+ ```python
34
+ import numpy as np
35
+ from electrocute.signal_processing.transforms import Transforms
36
+
37
+ # Generate a simple sine wave signal
38
+ t = np.linspace(0, 1, 1000, endpoint=False)
39
+ signal = np.sin(2 * np.pi * 10 * t)
40
+
41
+ # Get the frequency spectrum
42
+ freqs, amps = Transforms.frequency_spectrum(signal, sampling_rate=1000)
43
+ ```
44
+
45
+ ### Filtering Signals
46
+
47
+ ```python
48
+ from electrocute.signal_processing.filters import Filters
49
+
50
+ # Create a signal with multiple frequency components
51
+ t = np.linspace(0, 1, 1000, endpoint=False)
52
+ signal = np.sin(2 * np.pi * 10 * t) + 0.5 * np.sin(2 * np.pi * 20 * t)
53
+
54
+ # Apply a low-pass filter with a cutoff at 15 Hz
55
+ filtered_signal = Filters.low_pass_filter(signal, cutoff=15, sampling_rate=1000)
56
+ ```
57
+
58
+ ---
59
+
60
+ ## 🔧 Features
61
+
62
+ - 📐 **Electronic Formulas**: Ohm's Law, power, and more.
63
+ - 🎚️ **Signal Processing**: FFT, DFT, filtering, and spectral analysis.
64
+ - 📚 **Extensible API**: Easy-to-use, modular design for seamless integration.
65
+
66
+ ---
67
+
68
+ ## 🤝 Contributing
69
+
70
+ Contributions are welcome!
71
+ 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/your-repo/electrocute).
72
+
73
+ ---
74
+
75
+ ## 👨‍💻 Maintainers
76
+
77
+ This library is actively developed and maintained by **Madhur Thareja**.
78
+
79
+ ---
80
+
81
+ ## 📄 License
82
+
83
+ Licensed under the [MIT License](https://opensource.org/licenses/MIT).
84
+ Feel free to use, modify, and distribute this library.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: electrocute
3
+ Version: 0.1.1
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/your-repo/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.
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="electrocute",
5
- version="0.1.0",
5
+ version="0.1.1",
6
6
  author="Madhur Thareja",
7
7
  author_email="madhurthareja1105@gmail.com",
8
8
  description="A Python library for electronic formulas and signal processing",
@@ -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
@@ -1,45 +0,0 @@
1
- # Electrocute
2
-
3
- **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.
4
-
5
- ---
6
-
7
- ## Installation
8
-
9
- ```bash
10
- pip install electrocute
11
- ```
12
-
13
- ## Usage
14
-
15
- ```python
16
- from electrocute import Electrocute
17
-
18
- # Calculate voltage using Ohm's Law
19
- voltage = Electrocute.ohms_law(current=2, resistance=5)
20
- print(f"Voltage: {voltage} V") # Output: 10 V
21
-
22
- import numpy as np
23
- from electrocute import Electrocute
24
-
25
- t = np.linspace(0, 1, 1000, endpoint=False)
26
- signal = np.sin(2 * np.pi * 10 * t)
27
- freqs, amps = Electrocute.frequency_spectrum(signal, sampling_rate=1000)
28
- ```
29
-
30
- ## Features
31
-
32
- - Electronic formulas (Ohm's Law, power calculations, etc.)
33
- - Signal processing (FFT, DFT, frequency spectrum, filters)
34
- - Extensible and well-documented API
35
-
36
- ## Contributing
37
-
38
- Contributions are welcome! Please submit a pull request or open an issue on GitHub.
39
-
40
- ### Maintainers:
41
- This library is under development and is actively maintained by Madhur Thareja.
42
-
43
- ## License
44
-
45
- MIT License
@@ -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
File without changes