nikil-test-math 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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Nikil Edwin
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,4 @@
1
+ include LICENSE
2
+ include README.md
3
+ include pyproject.toml
4
+ include pytest.ini
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: nikil_test_math
3
+ Version: 0.1.0
4
+ Summary: A small math utility package
5
+ Home-page: https://github.com/Nikilej/sample_packages/tree/Feature_package
6
+ Author: Nikil Edwin
7
+ Author-email: nikil.edwin@zeb.co
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: license-file
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ A small math utility package
@@ -0,0 +1,33 @@
1
+ # nikil_test_math
2
+
3
+ A simple Python package providing basic mathematical operations.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install nikil_test_math
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from nikil_test_math import nikil_test_math
15
+
16
+ # Adding two numbers
17
+ result = nikil_test_math.add(5, 3) # Returns 8
18
+
19
+ # Subtracting three numbers
20
+ result = nikil_test_math.subtract(10, 5, 2) # Returns 3
21
+
22
+ # Multiplying two numbers
23
+ result = nikil_test_math.multiply(4, 7) # Returns 28
24
+ ```
25
+
26
+ ## Features
27
+
28
+ - Addition of two values
29
+ - Subtraction of three values
30
+ - Multiplication of two values
31
+
32
+ ## License
33
+ This project is licensed under the MIT License - see the LICENSE file for details.
@@ -0,0 +1,3 @@
1
+ from .math import nikil_test_math
2
+
3
+ __all__ = ['nikil_test_math']
@@ -0,0 +1,15 @@
1
+ class nikil_test_math:
2
+ @staticmethod
3
+ def add(a, b):
4
+ """Add two values."""
5
+ return a + b
6
+
7
+ @staticmethod
8
+ def subtract(a, b, c):
9
+ """Subtract three values (a - b - c)."""
10
+ return a - b - c
11
+
12
+ @staticmethod
13
+ def multiply(a, b):
14
+ """Multiply two values."""
15
+ return a * b
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: nikil_test_math
3
+ Version: 0.1.0
4
+ Summary: A small math utility package
5
+ Home-page: https://github.com/Nikilej/sample_packages/tree/Feature_package
6
+ Author: Nikil Edwin
7
+ Author-email: nikil.edwin@zeb.co
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: license-file
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ A small math utility package
@@ -0,0 +1,14 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ pytest.ini
6
+ setup.cfg
7
+ setup.py
8
+ nikil_test_math/__init__.py
9
+ nikil_test_math/math.py
10
+ nikil_test_math.egg-info/PKG-INFO
11
+ nikil_test_math.egg-info/SOURCES.txt
12
+ nikil_test_math.egg-info/dependency_links.txt
13
+ nikil_test_math.egg-info/top_level.txt
14
+ tests/test_math.py
@@ -0,0 +1 @@
1
+ nikil_test_math
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=42", "wheel"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,2 @@
1
+ [pytest]
2
+ testpaths = tests
@@ -0,0 +1,26 @@
1
+ [metadata]
2
+ name = nikil_test_math
3
+ version = 0.1.0
4
+ author = Nikil Edwin
5
+ author_email = nikil.edwin@zeb.co
6
+ description = A small math utility package
7
+ long_description = file: README.md
8
+ long_description_content_type = text/markdown
9
+ url = https://github.com/Nikilej/sample_packages/tree/Feature_package
10
+ classifiers =
11
+ Programming Language :: Python :: 3
12
+ License :: OSI Approved :: MIT License
13
+ Operating System :: OS Independent
14
+
15
+ [options]
16
+ packages = find:
17
+ python_requires = >=3.6
18
+
19
+ [options.packages.find]
20
+ exclude =
21
+ tests
22
+
23
+ [egg_info]
24
+ tag_build =
25
+ tag_date = 0
26
+
@@ -0,0 +1,22 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ with open("README.md", "r", encoding="utf-8") as fh:
4
+ long_description = fh.read()
5
+
6
+ setup(
7
+ name="nikil_test_math",
8
+ version="0.1.0",
9
+ author="Nikil Edwin",
10
+ author_email="nikil.edwin@zeb.co", # Replace with your email
11
+ description="A small math utility package",
12
+ long_description="A small math utility package",
13
+ long_description_content_type="text/markdown",
14
+ url="https://github.com/Nikilej/sample_packages/tree/Feature_package", # Replace with your GitHub repo
15
+ packages=find_packages(),
16
+ classifiers=[
17
+ "Programming Language :: Python :: 3",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Operating System :: OS Independent",
20
+ ],
21
+ python_requires=">=3.6",
22
+ )
@@ -0,0 +1,21 @@
1
+ import unittest
2
+ from nikil_test_math import nikil_test_math
3
+
4
+ class TestMath(unittest.TestCase):
5
+ def test_add(self):
6
+ self.assertEqual(nikil_test_math.add(5, 3), 8)
7
+ self.assertEqual(nikil_test_math.add(-1, 1), 0)
8
+ self.assertEqual(nikil_test_math.add(0, 0), 0)
9
+
10
+ def test_subtract(self):
11
+ self.assertEqual(nikil_test_math.subtract(10, 5, 2), 3)
12
+ self.assertEqual(nikil_test_math.subtract(0, 0, 0), 0)
13
+ self.assertEqual(nikil_test_math.subtract(5, 10, -5), 0)
14
+
15
+ def test_multiply(self):
16
+ self.assertEqual(nikil_test_math.multiply(4, 5), 20)
17
+ self.assertEqual(nikil_test_math.multiply(0, 100), 0)
18
+ self.assertEqual(nikil_test_math.multiply(-2, 3), -6)
19
+
20
+ if __name__ == '__main__':
21
+ unittest.main()