hydroanomaly 0.1.0__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.
- hydroanomaly-0.1.0/LICENSE +21 -0
- hydroanomaly-0.1.0/PKG-INFO +60 -0
- hydroanomaly-0.1.0/README.md +32 -0
- hydroanomaly-0.1.0/hydroanomaly/__init__.py +15 -0
- hydroanomaly-0.1.0/hydroanomaly/hello.py +29 -0
- hydroanomaly-0.1.0/hydroanomaly/math_utils.py +50 -0
- hydroanomaly-0.1.0/hydroanomaly.egg-info/PKG-INFO +60 -0
- hydroanomaly-0.1.0/hydroanomaly.egg-info/SOURCES.txt +14 -0
- hydroanomaly-0.1.0/hydroanomaly.egg-info/dependency_links.txt +1 -0
- hydroanomaly-0.1.0/hydroanomaly.egg-info/requires.txt +6 -0
- hydroanomaly-0.1.0/hydroanomaly.egg-info/top_level.txt +1 -0
- hydroanomaly-0.1.0/pyproject.toml +42 -0
- hydroanomaly-0.1.0/setup.cfg +4 -0
- hydroanomaly-0.1.0/setup.py +23 -0
- hydroanomaly-0.1.0/tests/test_hello.py +32 -0
- hydroanomaly-0.1.0/tests/test_math_utils.py +42 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Your Name
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: hydroanomaly
|
3
|
+
Version: 0.1.0
|
4
|
+
Summary: A Python package for hydro anomaly detection
|
5
|
+
Home-page: https://github.com/yourusername/hydroanomaly
|
6
|
+
Author: Your Name
|
7
|
+
Author-email: Your Name <your.email@example.com>
|
8
|
+
License: MIT
|
9
|
+
Project-URL: Homepage, https://github.com/yourusername/hydroanomaly
|
10
|
+
Project-URL: Bug Reports, https://github.com/yourusername/hydroanomaly/issues
|
11
|
+
Project-URL: Source, https://github.com/yourusername/hydroanomaly
|
12
|
+
Keywords: python,package,hydro,anomaly,detection
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
15
|
+
Classifier: Operating System :: OS Independent
|
16
|
+
Requires-Python: >=3.6
|
17
|
+
Description-Content-Type: text/markdown
|
18
|
+
License-File: LICENSE
|
19
|
+
Provides-Extra: dev
|
20
|
+
Requires-Dist: pytest>=6.0; extra == "dev"
|
21
|
+
Requires-Dist: black>=21.0; extra == "dev"
|
22
|
+
Requires-Dist: flake8>=3.8; extra == "dev"
|
23
|
+
Requires-Dist: mypy>=0.800; extra == "dev"
|
24
|
+
Dynamic: author
|
25
|
+
Dynamic: home-page
|
26
|
+
Dynamic: license-file
|
27
|
+
Dynamic: requires-python
|
28
|
+
|
29
|
+
# HydroAnomaly
|
30
|
+
|
31
|
+
A Python package for hydro anomaly detection.
|
32
|
+
|
33
|
+
## Installation
|
34
|
+
|
35
|
+
```bash
|
36
|
+
pip install hydroanomaly
|
37
|
+
```
|
38
|
+
|
39
|
+
## Usage
|
40
|
+
|
41
|
+
```python
|
42
|
+
from hydroanomaly import hello
|
43
|
+
|
44
|
+
# Example usage
|
45
|
+
hello.greet("World")
|
46
|
+
```
|
47
|
+
|
48
|
+
## Features
|
49
|
+
|
50
|
+
- Feature 1
|
51
|
+
- Feature 2
|
52
|
+
- Feature 3
|
53
|
+
|
54
|
+
## Contributing
|
55
|
+
|
56
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
57
|
+
|
58
|
+
## License
|
59
|
+
|
60
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# HydroAnomaly
|
2
|
+
|
3
|
+
A Python package for hydro anomaly detection.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```bash
|
8
|
+
pip install hydroanomaly
|
9
|
+
```
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
```python
|
14
|
+
from hydroanomaly import hello
|
15
|
+
|
16
|
+
# Example usage
|
17
|
+
hello.greet("World")
|
18
|
+
```
|
19
|
+
|
20
|
+
## Features
|
21
|
+
|
22
|
+
- Feature 1
|
23
|
+
- Feature 2
|
24
|
+
- Feature 3
|
25
|
+
|
26
|
+
## Contributing
|
27
|
+
|
28
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
29
|
+
|
30
|
+
## License
|
31
|
+
|
32
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"""
|
2
|
+
HydroAnomaly
|
3
|
+
|
4
|
+
A Python package for hydro anomaly detection.
|
5
|
+
"""
|
6
|
+
|
7
|
+
__version__ = "0.1.0"
|
8
|
+
__author__ = "Your Name"
|
9
|
+
__email__ = "your.email@example.com"
|
10
|
+
|
11
|
+
# Import main modules for easy access
|
12
|
+
from .hello import greet
|
13
|
+
from .math_utils import add, multiply
|
14
|
+
|
15
|
+
__all__ = ["greet", "add", "multiply"]
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"""
|
2
|
+
Hello module - provides greeting functionality
|
3
|
+
"""
|
4
|
+
|
5
|
+
|
6
|
+
def greet(name="World"):
|
7
|
+
"""
|
8
|
+
Greet someone with a friendly message.
|
9
|
+
|
10
|
+
Args:
|
11
|
+
name (str): The name of the person to greet. Defaults to "World".
|
12
|
+
|
13
|
+
Returns:
|
14
|
+
str: A greeting message.
|
15
|
+
"""
|
16
|
+
return f"Hello, {name}!"
|
17
|
+
|
18
|
+
|
19
|
+
def say_goodbye(name="World"):
|
20
|
+
"""
|
21
|
+
Say goodbye to someone.
|
22
|
+
|
23
|
+
Args:
|
24
|
+
name (str): The name of the person to say goodbye to. Defaults to "World".
|
25
|
+
|
26
|
+
Returns:
|
27
|
+
str: A goodbye message.
|
28
|
+
"""
|
29
|
+
return f"Goodbye, {name}!"
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"""
|
2
|
+
Math utilities module - provides basic mathematical functions
|
3
|
+
"""
|
4
|
+
|
5
|
+
|
6
|
+
def add(a, b):
|
7
|
+
"""
|
8
|
+
Add two numbers together.
|
9
|
+
|
10
|
+
Args:
|
11
|
+
a (int/float): First number
|
12
|
+
b (int/float): Second number
|
13
|
+
|
14
|
+
Returns:
|
15
|
+
int/float: Sum of a and b
|
16
|
+
"""
|
17
|
+
return a + b
|
18
|
+
|
19
|
+
|
20
|
+
def multiply(a, b):
|
21
|
+
"""
|
22
|
+
Multiply two numbers together.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
a (int/float): First number
|
26
|
+
b (int/float): Second number
|
27
|
+
|
28
|
+
Returns:
|
29
|
+
int/float: Product of a and b
|
30
|
+
"""
|
31
|
+
return a * b
|
32
|
+
|
33
|
+
|
34
|
+
def divide(a, b):
|
35
|
+
"""
|
36
|
+
Divide two numbers.
|
37
|
+
|
38
|
+
Args:
|
39
|
+
a (int/float): Dividend
|
40
|
+
b (int/float): Divisor
|
41
|
+
|
42
|
+
Returns:
|
43
|
+
float: Result of a divided by b
|
44
|
+
|
45
|
+
Raises:
|
46
|
+
ValueError: If b is zero
|
47
|
+
"""
|
48
|
+
if b == 0:
|
49
|
+
raise ValueError("Cannot divide by zero")
|
50
|
+
return a / b
|
@@ -0,0 +1,60 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: hydroanomaly
|
3
|
+
Version: 0.1.0
|
4
|
+
Summary: A Python package for hydro anomaly detection
|
5
|
+
Home-page: https://github.com/yourusername/hydroanomaly
|
6
|
+
Author: Your Name
|
7
|
+
Author-email: Your Name <your.email@example.com>
|
8
|
+
License: MIT
|
9
|
+
Project-URL: Homepage, https://github.com/yourusername/hydroanomaly
|
10
|
+
Project-URL: Bug Reports, https://github.com/yourusername/hydroanomaly/issues
|
11
|
+
Project-URL: Source, https://github.com/yourusername/hydroanomaly
|
12
|
+
Keywords: python,package,hydro,anomaly,detection
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
15
|
+
Classifier: Operating System :: OS Independent
|
16
|
+
Requires-Python: >=3.6
|
17
|
+
Description-Content-Type: text/markdown
|
18
|
+
License-File: LICENSE
|
19
|
+
Provides-Extra: dev
|
20
|
+
Requires-Dist: pytest>=6.0; extra == "dev"
|
21
|
+
Requires-Dist: black>=21.0; extra == "dev"
|
22
|
+
Requires-Dist: flake8>=3.8; extra == "dev"
|
23
|
+
Requires-Dist: mypy>=0.800; extra == "dev"
|
24
|
+
Dynamic: author
|
25
|
+
Dynamic: home-page
|
26
|
+
Dynamic: license-file
|
27
|
+
Dynamic: requires-python
|
28
|
+
|
29
|
+
# HydroAnomaly
|
30
|
+
|
31
|
+
A Python package for hydro anomaly detection.
|
32
|
+
|
33
|
+
## Installation
|
34
|
+
|
35
|
+
```bash
|
36
|
+
pip install hydroanomaly
|
37
|
+
```
|
38
|
+
|
39
|
+
## Usage
|
40
|
+
|
41
|
+
```python
|
42
|
+
from hydroanomaly import hello
|
43
|
+
|
44
|
+
# Example usage
|
45
|
+
hello.greet("World")
|
46
|
+
```
|
47
|
+
|
48
|
+
## Features
|
49
|
+
|
50
|
+
- Feature 1
|
51
|
+
- Feature 2
|
52
|
+
- Feature 3
|
53
|
+
|
54
|
+
## Contributing
|
55
|
+
|
56
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
57
|
+
|
58
|
+
## License
|
59
|
+
|
60
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
LICENSE
|
2
|
+
README.md
|
3
|
+
pyproject.toml
|
4
|
+
setup.py
|
5
|
+
hydroanomaly/__init__.py
|
6
|
+
hydroanomaly/hello.py
|
7
|
+
hydroanomaly/math_utils.py
|
8
|
+
hydroanomaly.egg-info/PKG-INFO
|
9
|
+
hydroanomaly.egg-info/SOURCES.txt
|
10
|
+
hydroanomaly.egg-info/dependency_links.txt
|
11
|
+
hydroanomaly.egg-info/requires.txt
|
12
|
+
hydroanomaly.egg-info/top_level.txt
|
13
|
+
tests/test_hello.py
|
14
|
+
tests/test_math_utils.py
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
hydroanomaly
|
@@ -0,0 +1,42 @@
|
|
1
|
+
[build-system]
|
2
|
+
requires = ["setuptools>=45", "wheel"]
|
3
|
+
build-backend = "setuptools.build_meta"
|
4
|
+
|
5
|
+
[project]
|
6
|
+
name = "hydroanomaly"
|
7
|
+
version = "0.1.0"
|
8
|
+
authors = [
|
9
|
+
{name = "Your Name", email = "your.email@example.com"},
|
10
|
+
]
|
11
|
+
description = "A Python package for hydro anomaly detection"
|
12
|
+
readme = "README.md"
|
13
|
+
license = {text = "MIT"}
|
14
|
+
requires-python = ">=3.6"
|
15
|
+
classifiers = [
|
16
|
+
"Programming Language :: Python :: 3",
|
17
|
+
"License :: OSI Approved :: MIT License",
|
18
|
+
"Operating System :: OS Independent",
|
19
|
+
]
|
20
|
+
keywords = ["python", "package", "hydro", "anomaly", "detection"]
|
21
|
+
dependencies = [
|
22
|
+
# Add your package dependencies here
|
23
|
+
# "requests>=2.25.1",
|
24
|
+
]
|
25
|
+
|
26
|
+
[project.urls]
|
27
|
+
Homepage = "https://github.com/yourusername/hydroanomaly"
|
28
|
+
"Bug Reports" = "https://github.com/yourusername/hydroanomaly/issues"
|
29
|
+
"Source" = "https://github.com/yourusername/hydroanomaly"
|
30
|
+
|
31
|
+
[project.optional-dependencies]
|
32
|
+
dev = [
|
33
|
+
"pytest>=6.0",
|
34
|
+
"black>=21.0",
|
35
|
+
"flake8>=3.8",
|
36
|
+
"mypy>=0.800",
|
37
|
+
]
|
38
|
+
|
39
|
+
[tool.setuptools.packages.find]
|
40
|
+
where = ["."]
|
41
|
+
include = ["hydroanomaly*"]
|
42
|
+
exclude = ["tests*"]
|
@@ -0,0 +1,23 @@
|
|
1
|
+
from setuptools import setup, find_packages
|
2
|
+
|
3
|
+
setup(
|
4
|
+
name="hydroanomaly",
|
5
|
+
version="0.1.0",
|
6
|
+
author="Your Name",
|
7
|
+
author_email="your.email@example.com",
|
8
|
+
description="A Python package for hydro anomaly detection",
|
9
|
+
long_description=open("README.md").read(),
|
10
|
+
long_description_content_type="text/markdown",
|
11
|
+
url="https://github.com/yourusername/hydroanomaly",
|
12
|
+
packages=find_packages(),
|
13
|
+
classifiers=[
|
14
|
+
"Programming Language :: Python :: 3",
|
15
|
+
"License :: OSI Approved :: MIT License",
|
16
|
+
"Operating System :: OS Independent",
|
17
|
+
],
|
18
|
+
python_requires=">=3.6",
|
19
|
+
install_requires=[
|
20
|
+
# Add your package dependencies here
|
21
|
+
# "requests>=2.25.1",
|
22
|
+
],
|
23
|
+
)
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"""
|
2
|
+
Tests for the hello module
|
3
|
+
"""
|
4
|
+
import unittest
|
5
|
+
from hydroanomaly.hello import greet, say_goodbye
|
6
|
+
|
7
|
+
|
8
|
+
class TestHello(unittest.TestCase):
|
9
|
+
|
10
|
+
def test_greet_default(self):
|
11
|
+
"""Test greeting with default name"""
|
12
|
+
result = greet()
|
13
|
+
self.assertEqual(result, "Hello, World!")
|
14
|
+
|
15
|
+
def test_greet_with_name(self):
|
16
|
+
"""Test greeting with custom name"""
|
17
|
+
result = greet("Alice")
|
18
|
+
self.assertEqual(result, "Hello, Alice!")
|
19
|
+
|
20
|
+
def test_say_goodbye_default(self):
|
21
|
+
"""Test goodbye with default name"""
|
22
|
+
result = say_goodbye()
|
23
|
+
self.assertEqual(result, "Goodbye, World!")
|
24
|
+
|
25
|
+
def test_say_goodbye_with_name(self):
|
26
|
+
"""Test goodbye with custom name"""
|
27
|
+
result = say_goodbye("Bob")
|
28
|
+
self.assertEqual(result, "Goodbye, Bob!")
|
29
|
+
|
30
|
+
|
31
|
+
if __name__ == "__main__":
|
32
|
+
unittest.main()
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"""
|
2
|
+
Tests for the math_utils module
|
3
|
+
"""
|
4
|
+
import unittest
|
5
|
+
from hydroanomaly.math_utils import add, multiply, divide
|
6
|
+
|
7
|
+
|
8
|
+
class TestMathUtils(unittest.TestCase):
|
9
|
+
|
10
|
+
def test_add_positive_numbers(self):
|
11
|
+
"""Test addition of positive numbers"""
|
12
|
+
result = add(2, 3)
|
13
|
+
self.assertEqual(result, 5)
|
14
|
+
|
15
|
+
def test_add_negative_numbers(self):
|
16
|
+
"""Test addition of negative numbers"""
|
17
|
+
result = add(-2, -3)
|
18
|
+
self.assertEqual(result, -5)
|
19
|
+
|
20
|
+
def test_multiply_positive_numbers(self):
|
21
|
+
"""Test multiplication of positive numbers"""
|
22
|
+
result = multiply(3, 4)
|
23
|
+
self.assertEqual(result, 12)
|
24
|
+
|
25
|
+
def test_multiply_by_zero(self):
|
26
|
+
"""Test multiplication by zero"""
|
27
|
+
result = multiply(5, 0)
|
28
|
+
self.assertEqual(result, 0)
|
29
|
+
|
30
|
+
def test_divide_positive_numbers(self):
|
31
|
+
"""Test division of positive numbers"""
|
32
|
+
result = divide(10, 2)
|
33
|
+
self.assertEqual(result, 5.0)
|
34
|
+
|
35
|
+
def test_divide_by_zero_raises_error(self):
|
36
|
+
"""Test that division by zero raises ValueError"""
|
37
|
+
with self.assertRaises(ValueError):
|
38
|
+
divide(10, 0)
|
39
|
+
|
40
|
+
|
41
|
+
if __name__ == "__main__":
|
42
|
+
unittest.main()
|